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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 625 jeremybenn
# From configure.ac Id: configure.ac 1581 2011-06-07 09:35:32Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 625 jeremybenn
# Generated by GNU Autoconf 2.68 for or1ksim 2011-08-15.
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
test \$(( 1 + 1 )) = 2 || exit 1"
199
  if (eval "$as_required") 2>/dev/null; then :
200
  as_have_required=yes
201 19 jeremybenn
else
202 346 jeremybenn
  as_have_required=no
203 19 jeremybenn
fi
204 346 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205 19 jeremybenn
 
206
else
207 346 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208
as_found=false
209 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210
do
211
  IFS=$as_save_IFS
212
  test -z "$as_dir" && as_dir=.
213 346 jeremybenn
  as_found=:
214
  case $as_dir in #(
215 19 jeremybenn
         /*)
216
           for as_base in sh bash ksh sh5; do
217 346 jeremybenn
             # Try only shells that exist, to save several forks.
218
             as_shell=$as_dir/$as_base
219
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221
  CONFIG_SHELL=$as_shell as_have_required=yes
222
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
223
  break 2
224
fi
225
fi
226 19 jeremybenn
           done;;
227
       esac
228 346 jeremybenn
  as_found=false
229 19 jeremybenn
done
230 346 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232
  CONFIG_SHELL=$SHELL as_have_required=yes
233
fi; }
234 19 jeremybenn
IFS=$as_save_IFS
235
 
236
 
237 346 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
238
  # We cannot yet assume a decent shell, so we have to provide a
239
        # neutralization value for shells without unset; and this also
240
        # works around shells that cannot unset nonexistent variables.
241 625 jeremybenn
        # Preserve -v and -x to the replacement shell.
242 346 jeremybenn
        BASH_ENV=/dev/null
243
        ENV=/dev/null
244
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
245
        export CONFIG_SHELL
246 625 jeremybenn
        case $- in # ((((
247
          *v*x* | *x*v* ) as_opts=-vx ;;
248
          *v* ) as_opts=-v ;;
249
          *x* ) as_opts=-x ;;
250
          * ) as_opts= ;;
251
        esac
252
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
253 19 jeremybenn
fi
254
 
255 346 jeremybenn
    if test x$as_have_required = xno; then :
256
  $as_echo "$0: This script requires a shell more modern than all"
257
  $as_echo "$0: the shells that I found on your system."
258
  if test x${ZSH_VERSION+set} = xset ; then
259
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
260
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
261
  else
262
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
263
$0: openrisc@opencores.org about your system, including any
264
$0: error possibly output before this message. Then install
265
$0: a modern shell, or manually run the script under such a
266
$0: shell if you do have one."
267
  fi
268
  exit 1
269 19 jeremybenn
fi
270
fi
271
fi
272 346 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
273
export SHELL
274
# Unset more variables known to interfere with behavior of common tools.
275
CLICOLOR_FORCE= GREP_OPTIONS=
276
unset CLICOLOR_FORCE GREP_OPTIONS
277 19 jeremybenn
 
278 346 jeremybenn
## --------------------- ##
279
## M4sh Shell Functions. ##
280
## --------------------- ##
281
# as_fn_unset VAR
282
# ---------------
283
# Portably unset VAR.
284
as_fn_unset ()
285
{
286
  { eval $1=; unset $1;}
287
}
288
as_unset=as_fn_unset
289 19 jeremybenn
 
290 346 jeremybenn
# as_fn_set_status STATUS
291
# -----------------------
292
# Set $? to STATUS, without forking.
293
as_fn_set_status ()
294
{
295
  return $1
296
} # as_fn_set_status
297 19 jeremybenn
 
298 346 jeremybenn
# as_fn_exit STATUS
299
# -----------------
300
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
301
as_fn_exit ()
302
{
303
  set +e
304
  as_fn_set_status $1
305
  exit $1
306
} # as_fn_exit
307 19 jeremybenn
 
308 346 jeremybenn
# as_fn_mkdir_p
309
# -------------
310
# Create "$as_dir" as a directory, including parents if necessary.
311
as_fn_mkdir_p ()
312
{
313 19 jeremybenn
 
314 346 jeremybenn
  case $as_dir in #(
315
  -*) as_dir=./$as_dir;;
316
  esac
317
  test -d "$as_dir" || eval $as_mkdir_p || {
318
    as_dirs=
319
    while :; do
320
      case $as_dir in #(
321
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
322
      *) as_qdir=$as_dir;;
323
      esac
324
      as_dirs="'$as_qdir' $as_dirs"
325
      as_dir=`$as_dirname -- "$as_dir" ||
326
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
327
         X"$as_dir" : 'X\(//\)[^/]' \| \
328
         X"$as_dir" : 'X\(//\)$' \| \
329
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
330
$as_echo X"$as_dir" |
331
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332
            s//\1/
333
            q
334
          }
335
          /^X\(\/\/\)[^/].*/{
336
            s//\1/
337
            q
338
          }
339
          /^X\(\/\/\)$/{
340
            s//\1/
341
            q
342
          }
343
          /^X\(\/\).*/{
344
            s//\1/
345
            q
346
          }
347
          s/.*/./; q'`
348
      test -d "$as_dir" && break
349
    done
350
    test -z "$as_dirs" || eval "mkdir $as_dirs"
351 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
352 19 jeremybenn
 
353
 
354 346 jeremybenn
} # as_fn_mkdir_p
355
# as_fn_append VAR VALUE
356
# ----------------------
357
# Append the text in VALUE to the end of the definition contained in VAR. Take
358
# advantage of any shell optimizations that allow amortized linear growth over
359
# repeated appends, instead of the typical quadratic growth present in naive
360
# implementations.
361
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
362
  eval 'as_fn_append ()
363
  {
364
    eval $1+=\$2
365
  }'
366
else
367
  as_fn_append ()
368
  {
369
    eval $1=\$$1\$2
370
  }
371
fi # as_fn_append
372 19 jeremybenn
 
373 346 jeremybenn
# as_fn_arith ARG...
374
# ------------------
375
# Perform arithmetic evaluation on the ARGs, and store the result in the
376
# global $as_val. Take advantage of shells that can avoid forks. The arguments
377
# must be portable across $(()) and expr.
378
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
379
  eval 'as_fn_arith ()
380
  {
381
    as_val=$(( $* ))
382
  }'
383
else
384
  as_fn_arith ()
385
  {
386
    as_val=`expr "$@" || test $? -eq 1`
387
  }
388
fi # as_fn_arith
389 19 jeremybenn
 
390
 
391 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
392
# ----------------------------------------
393 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
394
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
395 625 jeremybenn
# script with STATUS, using 1 if that was 0.
396 346 jeremybenn
as_fn_error ()
397
{
398 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
399
  if test "$4"; then
400
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
401
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
402 346 jeremybenn
  fi
403 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
404 346 jeremybenn
  as_fn_exit $as_status
405
} # as_fn_error
406 19 jeremybenn
 
407 346 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
408
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
409
  as_expr=expr
410 19 jeremybenn
else
411 346 jeremybenn
  as_expr=false
412 19 jeremybenn
fi
413
 
414 346 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
415
  as_basename=basename
416 19 jeremybenn
else
417 346 jeremybenn
  as_basename=false
418 19 jeremybenn
fi
419
 
420 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
421
  as_dirname=dirname
422 19 jeremybenn
else
423 346 jeremybenn
  as_dirname=false
424 19 jeremybenn
fi
425
 
426 346 jeremybenn
as_me=`$as_basename -- "$0" ||
427
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
428
         X"$0" : 'X\(//\)$' \| \
429
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
430
$as_echo X/"$0" |
431
    sed '/^.*\/\([^/][^/]*\)\/*$/{
432
            s//\1/
433
            q
434
          }
435
          /^X\/\(\/\/\)$/{
436
            s//\1/
437
            q
438
          }
439
          /^X\/\(\/\).*/{
440
            s//\1/
441
            q
442
          }
443
          s/.*/./; q'`
444 19 jeremybenn
 
445 346 jeremybenn
# Avoid depending upon Character Ranges.
446
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
447
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
448
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
449
as_cr_digits='0123456789'
450
as_cr_alnum=$as_cr_Letters$as_cr_digits
451 19 jeremybenn
 
452
 
453 346 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
454
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
455
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
456
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
457
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
458 19 jeremybenn
  sed -n '
459
    p
460
    /[$]LINENO/=
461
  ' <$as_myself |
462
    sed '
463
      s/[$]LINENO.*/&-/
464
      t lineno
465
      b
466
      :lineno
467
      N
468
      :loop
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470
      t loop
471
      s/-\n.*//
472
    ' >$as_me.lineno &&
473
  chmod +x "$as_me.lineno" ||
474 346 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 19 jeremybenn
 
476
  # Don't try to exec as it changes $[0], causing all sort of problems
477
  # (the dirname of $[0] is not the place where we might find the
478
  # original and so on.  Autoconf is especially sensitive to this).
479
  . "./$as_me.lineno"
480
  # Exit status is that of the last command.
481
  exit
482
}
483
 
484
ECHO_C= ECHO_N= ECHO_T=
485 346 jeremybenn
case `echo -n x` in #(((((
486 19 jeremybenn
-n*)
487 346 jeremybenn
  case `echo 'xy\c'` in
488 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
489 346 jeremybenn
  xy)  ECHO_C='\c';;
490
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
491
       ECHO_T=' ';;
492 19 jeremybenn
  esac;;
493
*)
494
  ECHO_N='-n';;
495
esac
496
 
497
rm -f conf$$ conf$$.exe conf$$.file
498
if test -d conf$$.dir; then
499
  rm -f conf$$.dir/conf$$.file
500
else
501
  rm -f conf$$.dir
502 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
503 19 jeremybenn
fi
504 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
505
  if ln -s conf$$.file conf$$ 2>/dev/null; then
506
    as_ln_s='ln -s'
507
    # ... but there are two gotchas:
508
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
509
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
510
    # In both cases, we have to default to `cp -p'.
511
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
512
      as_ln_s='cp -p'
513
  elif ln conf$$.file conf$$ 2>/dev/null; then
514
    as_ln_s=ln
515
  else
516 19 jeremybenn
    as_ln_s='cp -p'
517 82 jeremybenn
  fi
518 19 jeremybenn
else
519
  as_ln_s='cp -p'
520
fi
521
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
522
rmdir conf$$.dir 2>/dev/null
523
 
524
if mkdir -p . 2>/dev/null; then
525 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
526 19 jeremybenn
else
527
  test -d ./-p && rmdir ./-p
528
  as_mkdir_p=false
529
fi
530
 
531
if test -x / >/dev/null 2>&1; then
532
  as_test_x='test -x'
533
else
534
  if ls -dL / >/dev/null 2>&1; then
535
    as_ls_L_option=L
536
  else
537
    as_ls_L_option=
538
  fi
539
  as_test_x='
540
    eval sh -c '\''
541
      if test -d "$1"; then
542 82 jeremybenn
        test -d "$1/.";
543 19 jeremybenn
      else
544 346 jeremybenn
        case $1 in #(
545 82 jeremybenn
        -*)set "./$1";;
546 19 jeremybenn
        esac;
547 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
548 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
549
    '\'' sh
550
  '
551
fi
552
as_executable_p=$as_test_x
553
 
554
# Sed expression to map a string onto a valid CPP name.
555
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
 
557
# Sed expression to map a string onto a valid variable name.
558
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
 
560
 
561
 
562
# Check that we are running under the correct shell.
563
SHELL=${CONFIG_SHELL-/bin/sh}
564
 
565 82 jeremybenn
case X$lt_ECHO in
566 19 jeremybenn
X*--fallback-echo)
567
  # Remove one level of quotation (which was required for Make).
568 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
569 19 jeremybenn
  ;;
570
esac
571
 
572 82 jeremybenn
ECHO=${lt_ECHO-echo}
573 19 jeremybenn
if test "X$1" = X--no-reexec; then
574
  # Discard the --no-reexec flag, and continue.
575
  shift
576
elif test "X$1" = X--fallback-echo; then
577
  # Avoid inline document here, it may be left over
578
  :
579 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
580
  # Yippee, $ECHO works!
581 19 jeremybenn
  :
582
else
583
  # Restart under the correct shell.
584
  exec $SHELL "$0" --no-reexec ${1+"$@"}
585
fi
586
 
587
if test "X$1" = X--fallback-echo; then
588
  # used as fallback echo
589
  shift
590 82 jeremybenn
  cat <<_LT_EOF
591 19 jeremybenn
$*
592 82 jeremybenn
_LT_EOF
593 19 jeremybenn
  exit 0
594
fi
595
 
596
# The HP-UX ksh and POSIX shell print the target directory to stdout
597
# if CDPATH is set.
598
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
599
 
600 82 jeremybenn
if test -z "$lt_ECHO"; then
601
  if test "X${echo_test_string+set}" != Xset; then
602
    # find a string as large as possible, as long as the shell can cope with it
603
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
604
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
605
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
606
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
607
      then
608
        break
609
      fi
610
    done
611
  fi
612 19 jeremybenn
 
613 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
614
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
615
     test "X$echo_testing_string" = "X$echo_test_string"; then
616
    :
617
  else
618
    # The Solaris, AIX, and Digital Unix default echo programs unquote
619
    # backslashes.  This makes it impossible to quote backslashes using
620
    #   echo "$something" | sed 's/\\/\\\\/g'
621
    #
622
    # So, first we look for a working echo in the user's PATH.
623 19 jeremybenn
 
624 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625
    for dir in $PATH /usr/ucb; do
626
      IFS="$lt_save_ifs"
627
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630
         test "X$echo_testing_string" = "X$echo_test_string"; then
631
        ECHO="$dir/echo"
632
        break
633
      fi
634
    done
635 19 jeremybenn
    IFS="$lt_save_ifs"
636
 
637 82 jeremybenn
    if test "X$ECHO" = Xecho; then
638
      # We didn't find a better echo, so look for alternatives.
639
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
640
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
641
         test "X$echo_testing_string" = "X$echo_test_string"; then
642
        # This shell has a builtin print -r that does the trick.
643
        ECHO='print -r'
644
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
645
           test "X$CONFIG_SHELL" != X/bin/ksh; then
646
        # If we have ksh, try running configure again with it.
647
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648
        export ORIGINAL_CONFIG_SHELL
649
        CONFIG_SHELL=/bin/ksh
650
        export CONFIG_SHELL
651
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652
      else
653
        # Try using printf.
654
        ECHO='printf %s\n'
655
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
656
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
657 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
658 82 jeremybenn
          # Cool, printf works
659
          :
660
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661
             test "X$echo_testing_string" = 'X\t' &&
662
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663
             test "X$echo_testing_string" = "X$echo_test_string"; then
664
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665
          export CONFIG_SHELL
666
          SHELL="$CONFIG_SHELL"
667
          export SHELL
668
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
669
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670
             test "X$echo_testing_string" = 'X\t' &&
671
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672
             test "X$echo_testing_string" = "X$echo_test_string"; then
673
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
674
        else
675
          # maybe with a smaller string...
676
          prev=:
677 19 jeremybenn
 
678 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
680
            then
681
              break
682
            fi
683
            prev="$cmd"
684
          done
685
 
686
          if test "$prev" != 'sed 50q "$0"'; then
687
            echo_test_string=`eval $prev`
688
            export echo_test_string
689
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690
          else
691
            # Oops.  We lost completely, so just stick with echo.
692
            ECHO=echo
693 19 jeremybenn
          fi
694 82 jeremybenn
        fi
695 19 jeremybenn
      fi
696
    fi
697
  fi
698
fi
699
 
700
# Copy echo and quote the copy suitably for passing to libtool from
701
# the Makefile, instead of quoting the original, which is used later.
702 82 jeremybenn
lt_ECHO=$ECHO
703
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 19 jeremybenn
fi
706
 
707
 
708
 
709
 
710 625 jeremybenn
test -n "$DJDIR" || exec 7<&0 
711
exec 6>&1
712 19 jeremybenn
 
713
# Name of the host.
714 625 jeremybenn
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
715 19 jeremybenn
# so uname gets run too.
716
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
 
718
#
719
# Initializations.
720
#
721
ac_default_prefix=/usr/local
722
ac_clean_files=
723
ac_config_libobj_dir=.
724
LIBOBJS=
725
cross_compiling=no
726
subdirs=
727
MFLAGS=
728
MAKEFLAGS=
729
 
730
# Identity of this package.
731
PACKAGE_NAME='or1ksim'
732
PACKAGE_TARNAME='or1ksim'
733 625 jeremybenn
PACKAGE_VERSION='2011-08-15'
734
PACKAGE_STRING='or1ksim 2011-08-15'
735 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
736 346 jeremybenn
PACKAGE_URL=''
737 19 jeremybenn
 
738
# Factoring default headers for most tests.
739
ac_includes_default="\
740
#include 
741
#ifdef HAVE_SYS_TYPES_H
742
# include 
743
#endif
744
#ifdef HAVE_SYS_STAT_H
745
# include 
746
#endif
747
#ifdef STDC_HEADERS
748
# include 
749
# include 
750
#else
751
# ifdef HAVE_STDLIB_H
752
#  include 
753
# endif
754
#endif
755
#ifdef HAVE_STRING_H
756
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757
#  include 
758
# endif
759
# include 
760
#endif
761
#ifdef HAVE_STRINGS_H
762
# include 
763
#endif
764
#ifdef HAVE_INTTYPES_H
765
# include 
766
#endif
767
#ifdef HAVE_STDINT_H
768
# include 
769
#endif
770
#ifdef HAVE_UNISTD_H
771
# include 
772
#endif"
773
 
774 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
775
enable_option_checking=no
776 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
777
am__EXEEXT_TRUE
778
LTLIBOBJS
779
INCLUDES
780
TERMCAP_LIB
781
SUMVERSION
782
ARFLAGS
783
LOCAL_DEFS
784
LOCAL_LDFLAGS
785
LOCAL_CFLAGS
786
BUILD_DIR
787 96 jeremybenn
RUNTESTDEFAULTFLAGS
788 90 jeremybenn
DEJAGNU
789 82 jeremybenn
GENERATE_NEEDED_FALSE
790
GENERATE_NEEDED_TRUE
791
DEBUGFLAGS
792
USE_ARGDATE_FALSE
793
USE_ARGDATE_TRUE
794
USE_ARGREX_FALSE
795
USE_ARGREX_TRUE
796
USE_SYS_GETOPTLONG_FALSE
797
USE_SYS_GETOPTLONG_TRUE
798
POW_LIB
799
LIBOBJS
800
am__fastdepCCAS_FALSE
801
am__fastdepCCAS_TRUE
802
CCASDEPMODE
803
CCASFLAGS
804
CCAS
805
CPU_ARCH
806 625 jeremybenn
AM_BACKSLASH
807
AM_DEFAULT_VERBOSITY
808 82 jeremybenn
am__fastdepCC_FALSE
809
am__fastdepCC_TRUE
810
CCDEPMODE
811
AMDEPBACKSLASH
812
AMDEP_FALSE
813
AMDEP_TRUE
814
am__quote
815
am__include
816
DEPDIR
817
am__untar
818
am__tar
819
AMTAR
820
am__leading_dot
821
SET_MAKE
822
AWK
823
mkdir_p
824
MKDIR_P
825
INSTALL_STRIP_PROGRAM
826
install_sh
827
MAKEINFO
828
AUTOHEADER
829
AUTOMAKE
830
AUTOCONF
831
ACLOCAL
832
VERSION
833
PACKAGE
834
CYGPATH_W
835
am__isrc
836
INSTALL_DATA
837
INSTALL_SCRIPT
838
INSTALL_PROGRAM
839
OTOOL64
840
OTOOL
841
LIPO
842
NMEDIT
843
DSYMUTIL
844
lt_ECHO
845 19 jeremybenn
RANLIB
846
STRIP
847 82 jeremybenn
AR
848
OBJDUMP
849
LN_S
850
NM
851
ac_ct_DUMPBIN
852
DUMPBIN
853
LD
854
FGREP
855
SED
856 19 jeremybenn
LIBTOOL
857 82 jeremybenn
target_os
858
target_vendor
859
target_cpu
860
target
861
host_os
862
host_vendor
863
host_cpu
864
host
865
build_os
866
build_vendor
867
build_cpu
868
build
869
subdirs
870 91 jeremybenn
EGREP
871
GREP
872
CPP
873
OBJEXT
874
EXEEXT
875
ac_ct_CC
876
CPPFLAGS
877
LDFLAGS
878
CFLAGS
879
CC
880 82 jeremybenn
target_alias
881
host_alias
882
build_alias
883
LIBS
884
ECHO_T
885
ECHO_N
886
ECHO_C
887
DEFS
888
mandir
889
localedir
890
libdir
891
psdir
892
pdfdir
893
dvidir
894
htmldir
895
infodir
896
docdir
897
oldincludedir
898
includedir
899
localstatedir
900
sharedstatedir
901
sysconfdir
902
datadir
903
datarootdir
904
libexecdir
905
sbindir
906
bindir
907
program_transform_name
908
prefix
909
exec_prefix
910 346 jeremybenn
PACKAGE_URL
911 82 jeremybenn
PACKAGE_BUGREPORT
912
PACKAGE_STRING
913
PACKAGE_VERSION
914
PACKAGE_TARNAME
915
PACKAGE_NAME
916
PATH_SEPARATOR
917
SHELL'
918 19 jeremybenn
ac_subst_files=''
919 82 jeremybenn
ac_user_opts='
920
enable_option_checking
921
enable_shared
922
enable_static
923
with_pic
924
enable_fast_install
925
with_gnu_ld
926
enable_libtool_lock
927
enable_dependency_tracking
928 625 jeremybenn
enable_silent_rules
929 82 jeremybenn
enable_profiling
930
enable_execution
931
enable_ethphy
932 127 jeremybenn
enable_unsigned_xori
933 82 jeremybenn
enable_range_stats
934
enable_debug
935
'
936 19 jeremybenn
      ac_precious_vars='build_alias
937
host_alias
938
target_alias
939
CC
940
CFLAGS
941
LDFLAGS
942
LIBS
943
CPPFLAGS
944
CPP
945 82 jeremybenn
CCAS
946
CCASFLAGS'
947 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
948 19 jeremybenn
 
949
# Initialize some variables set by options.
950
ac_init_help=
951
ac_init_version=false
952 82 jeremybenn
ac_unrecognized_opts=
953
ac_unrecognized_sep=
954 19 jeremybenn
# The variables have the same names as the options, with
955
# dashes changed to underlines.
956
cache_file=/dev/null
957
exec_prefix=NONE
958
no_create=
959
no_recursion=
960
prefix=NONE
961
program_prefix=NONE
962
program_suffix=NONE
963
program_transform_name=s,x,x,
964
silent=
965
site=
966
srcdir=
967
verbose=
968
x_includes=NONE
969
x_libraries=NONE
970
 
971
# Installation directory options.
972
# These are left unexpanded so users can "make install exec_prefix=/foo"
973
# and all the variables that are supposed to be based on exec_prefix
974
# by default will actually change.
975
# Use braces instead of parens because sh, perl, etc. also accept them.
976
# (The list follows the same order as the GNU Coding Standards.)
977
bindir='${exec_prefix}/bin'
978
sbindir='${exec_prefix}/sbin'
979
libexecdir='${exec_prefix}/libexec'
980
datarootdir='${prefix}/share'
981
datadir='${datarootdir}'
982
sysconfdir='${prefix}/etc'
983
sharedstatedir='${prefix}/com'
984
localstatedir='${prefix}/var'
985
includedir='${prefix}/include'
986
oldincludedir='/usr/include'
987
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988
infodir='${datarootdir}/info'
989
htmldir='${docdir}'
990
dvidir='${docdir}'
991
pdfdir='${docdir}'
992
psdir='${docdir}'
993
libdir='${exec_prefix}/lib'
994
localedir='${datarootdir}/locale'
995
mandir='${datarootdir}/man'
996
 
997
ac_prev=
998
ac_dashdash=
999
for ac_option
1000
do
1001
  # If the previous option needs an argument, assign it.
1002
  if test -n "$ac_prev"; then
1003
    eval $ac_prev=\$ac_option
1004
    ac_prev=
1005
    continue
1006
  fi
1007
 
1008
  case $ac_option in
1009 625 jeremybenn
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010
  *=)   ac_optarg= ;;
1011
  *)    ac_optarg=yes ;;
1012 19 jeremybenn
  esac
1013
 
1014
  # Accept the important Cygnus configure options, so we can diagnose typos.
1015
 
1016
  case $ac_dashdash$ac_option in
1017
  --)
1018
    ac_dashdash=yes ;;
1019
 
1020
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021
    ac_prev=bindir ;;
1022
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023
    bindir=$ac_optarg ;;
1024
 
1025
  -build | --build | --buil | --bui | --bu)
1026
    ac_prev=build_alias ;;
1027
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028
    build_alias=$ac_optarg ;;
1029
 
1030
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1031
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032
    ac_prev=cache_file ;;
1033
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035
    cache_file=$ac_optarg ;;
1036
 
1037
  --config-cache | -C)
1038
    cache_file=config.cache ;;
1039
 
1040
  -datadir | --datadir | --datadi | --datad)
1041
    ac_prev=datadir ;;
1042
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043
    datadir=$ac_optarg ;;
1044
 
1045
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046
  | --dataroo | --dataro | --datar)
1047
    ac_prev=datarootdir ;;
1048
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050
    datarootdir=$ac_optarg ;;
1051
 
1052
  -disable-* | --disable-*)
1053 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 19 jeremybenn
    # Reject names that are not valid shell variable names.
1055 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
1057 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1058
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059
    case $ac_user_opts in
1060
      *"
1061
"enable_$ac_useropt"
1062
"*) ;;
1063
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064
         ac_unrecognized_sep=', ';;
1065
    esac
1066
    eval enable_$ac_useropt=no ;;
1067 19 jeremybenn
 
1068
  -docdir | --docdir | --docdi | --doc | --do)
1069
    ac_prev=docdir ;;
1070
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071
    docdir=$ac_optarg ;;
1072
 
1073
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074
    ac_prev=dvidir ;;
1075
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076
    dvidir=$ac_optarg ;;
1077
 
1078
  -enable-* | --enable-*)
1079 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 19 jeremybenn
    # Reject names that are not valid shell variable names.
1081 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 625 jeremybenn
      as_fn_error $? "invalid feature name: $ac_useropt"
1083 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1084
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085
    case $ac_user_opts in
1086
      *"
1087
"enable_$ac_useropt"
1088
"*) ;;
1089
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090
         ac_unrecognized_sep=', ';;
1091
    esac
1092
    eval enable_$ac_useropt=\$ac_optarg ;;
1093 19 jeremybenn
 
1094
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096
  | --exec | --exe | --ex)
1097
    ac_prev=exec_prefix ;;
1098
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100
  | --exec=* | --exe=* | --ex=*)
1101
    exec_prefix=$ac_optarg ;;
1102
 
1103
  -gas | --gas | --ga | --g)
1104
    # Obsolete; use --with-gas.
1105
    with_gas=yes ;;
1106
 
1107
  -help | --help | --hel | --he | -h)
1108
    ac_init_help=long ;;
1109
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110
    ac_init_help=recursive ;;
1111
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112
    ac_init_help=short ;;
1113
 
1114
  -host | --host | --hos | --ho)
1115
    ac_prev=host_alias ;;
1116
  -host=* | --host=* | --hos=* | --ho=*)
1117
    host_alias=$ac_optarg ;;
1118
 
1119
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120
    ac_prev=htmldir ;;
1121
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122
  | --ht=*)
1123
    htmldir=$ac_optarg ;;
1124
 
1125
  -includedir | --includedir | --includedi | --included | --include \
1126
  | --includ | --inclu | --incl | --inc)
1127
    ac_prev=includedir ;;
1128
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1130
    includedir=$ac_optarg ;;
1131
 
1132
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1133
    ac_prev=infodir ;;
1134
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135
    infodir=$ac_optarg ;;
1136
 
1137
  -libdir | --libdir | --libdi | --libd)
1138
    ac_prev=libdir ;;
1139
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140
    libdir=$ac_optarg ;;
1141
 
1142
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143
  | --libexe | --libex | --libe)
1144
    ac_prev=libexecdir ;;
1145
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146
  | --libexe=* | --libex=* | --libe=*)
1147
    libexecdir=$ac_optarg ;;
1148
 
1149
  -localedir | --localedir | --localedi | --localed | --locale)
1150
    ac_prev=localedir ;;
1151
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152
    localedir=$ac_optarg ;;
1153
 
1154
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1155
  | --localstate | --localstat | --localsta | --localst | --locals)
1156
    ac_prev=localstatedir ;;
1157
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159
    localstatedir=$ac_optarg ;;
1160
 
1161
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162
    ac_prev=mandir ;;
1163
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164
    mandir=$ac_optarg ;;
1165
 
1166
  -nfp | --nfp | --nf)
1167
    # Obsolete; use --without-fp.
1168
    with_fp=no ;;
1169
 
1170
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171
  | --no-cr | --no-c | -n)
1172
    no_create=yes ;;
1173
 
1174
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176
    no_recursion=yes ;;
1177
 
1178
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180
  | --oldin | --oldi | --old | --ol | --o)
1181
    ac_prev=oldincludedir ;;
1182
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185
    oldincludedir=$ac_optarg ;;
1186
 
1187
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188
    ac_prev=prefix ;;
1189
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190
    prefix=$ac_optarg ;;
1191
 
1192
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193
  | --program-pre | --program-pr | --program-p)
1194
    ac_prev=program_prefix ;;
1195
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197
    program_prefix=$ac_optarg ;;
1198
 
1199
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200
  | --program-suf | --program-su | --program-s)
1201
    ac_prev=program_suffix ;;
1202
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204
    program_suffix=$ac_optarg ;;
1205
 
1206
  -program-transform-name | --program-transform-name \
1207
  | --program-transform-nam | --program-transform-na \
1208
  | --program-transform-n | --program-transform- \
1209
  | --program-transform | --program-transfor \
1210
  | --program-transfo | --program-transf \
1211
  | --program-trans | --program-tran \
1212
  | --progr-tra | --program-tr | --program-t)
1213
    ac_prev=program_transform_name ;;
1214
  -program-transform-name=* | --program-transform-name=* \
1215
  | --program-transform-nam=* | --program-transform-na=* \
1216
  | --program-transform-n=* | --program-transform-=* \
1217
  | --program-transform=* | --program-transfor=* \
1218
  | --program-transfo=* | --program-transf=* \
1219
  | --program-trans=* | --program-tran=* \
1220
  | --progr-tra=* | --program-tr=* | --program-t=*)
1221
    program_transform_name=$ac_optarg ;;
1222
 
1223
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224
    ac_prev=pdfdir ;;
1225
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226
    pdfdir=$ac_optarg ;;
1227
 
1228
  -psdir | --psdir | --psdi | --psd | --ps)
1229
    ac_prev=psdir ;;
1230
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231
    psdir=$ac_optarg ;;
1232
 
1233
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234
  | -silent | --silent | --silen | --sile | --sil)
1235
    silent=yes ;;
1236
 
1237
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238
    ac_prev=sbindir ;;
1239
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240
  | --sbi=* | --sb=*)
1241
    sbindir=$ac_optarg ;;
1242
 
1243
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245
  | --sharedst | --shareds | --shared | --share | --shar \
1246
  | --sha | --sh)
1247
    ac_prev=sharedstatedir ;;
1248
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251
  | --sha=* | --sh=*)
1252
    sharedstatedir=$ac_optarg ;;
1253
 
1254
  -site | --site | --sit)
1255
    ac_prev=site ;;
1256
  -site=* | --site=* | --sit=*)
1257
    site=$ac_optarg ;;
1258
 
1259
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260
    ac_prev=srcdir ;;
1261
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262
    srcdir=$ac_optarg ;;
1263
 
1264
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265
  | --syscon | --sysco | --sysc | --sys | --sy)
1266
    ac_prev=sysconfdir ;;
1267
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269
    sysconfdir=$ac_optarg ;;
1270
 
1271
  -target | --target | --targe | --targ | --tar | --ta | --t)
1272
    ac_prev=target_alias ;;
1273
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274
    target_alias=$ac_optarg ;;
1275
 
1276
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277
    verbose=yes ;;
1278
 
1279
  -version | --version | --versio | --versi | --vers | -V)
1280
    ac_init_version=: ;;
1281
 
1282
  -with-* | --with-*)
1283 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 19 jeremybenn
    # Reject names that are not valid shell variable names.
1285 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1287 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1288
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289
    case $ac_user_opts in
1290
      *"
1291
"with_$ac_useropt"
1292
"*) ;;
1293
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294
         ac_unrecognized_sep=', ';;
1295
    esac
1296
    eval with_$ac_useropt=\$ac_optarg ;;
1297 19 jeremybenn
 
1298
  -without-* | --without-*)
1299 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 19 jeremybenn
    # Reject names that are not valid shell variable names.
1301 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 625 jeremybenn
      as_fn_error $? "invalid package name: $ac_useropt"
1303 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1304
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305
    case $ac_user_opts in
1306
      *"
1307
"with_$ac_useropt"
1308
"*) ;;
1309
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310
         ac_unrecognized_sep=', ';;
1311
    esac
1312
    eval with_$ac_useropt=no ;;
1313 19 jeremybenn
 
1314
  --x)
1315
    # Obsolete; use --with-x.
1316
    with_x=yes ;;
1317
 
1318
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319
  | --x-incl | --x-inc | --x-in | --x-i)
1320
    ac_prev=x_includes ;;
1321
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323
    x_includes=$ac_optarg ;;
1324
 
1325
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327
    ac_prev=x_libraries ;;
1328
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330
    x_libraries=$ac_optarg ;;
1331
 
1332 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333
Try \`$0 --help' for more information"
1334 19 jeremybenn
    ;;
1335
 
1336
  *=*)
1337
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338
    # Reject names that are not valid shell variable names.
1339 346 jeremybenn
    case $ac_envvar in #(
1340
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 625 jeremybenn
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1342 346 jeremybenn
    esac
1343 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1344
    export $ac_envvar ;;
1345
 
1346
  *)
1347
    # FIXME: should be removed in autoconf 3.0.
1348 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 625 jeremybenn
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1352 19 jeremybenn
    ;;
1353
 
1354
  esac
1355
done
1356
 
1357
if test -n "$ac_prev"; then
1358
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 625 jeremybenn
  as_fn_error $? "missing argument to $ac_option"
1360 19 jeremybenn
fi
1361
 
1362 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1363
  case $enable_option_checking in
1364
    no) ;;
1365 625 jeremybenn
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367
  esac
1368
fi
1369
 
1370
# Check all directory arguments for consistency.
1371 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372
                datadir sysconfdir sharedstatedir localstatedir includedir \
1373
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374
                libdir localedir mandir
1375
do
1376
  eval ac_val=\$$ac_var
1377 82 jeremybenn
  # Remove trailing slashes.
1378 19 jeremybenn
  case $ac_val in
1379 82 jeremybenn
    */ )
1380
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381
      eval $ac_var=\$ac_val;;
1382
  esac
1383
  # Be sure to have absolute directory names.
1384
  case $ac_val in
1385 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1386
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387
  esac
1388 625 jeremybenn
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1389 19 jeremybenn
done
1390
 
1391
# There might be people who depend on the old broken behavior: `$host'
1392
# used to hold the argument of --host etc.
1393
# FIXME: To remove some day.
1394
build=$build_alias
1395
host=$host_alias
1396
target=$target_alias
1397
 
1398
# FIXME: To remove some day.
1399
if test "x$host_alias" != x; then
1400
  if test "x$build_alias" = x; then
1401
    cross_compiling=maybe
1402 625 jeremybenn
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1403
    If a cross compiler is detected then cross compile mode will be used" >&2
1404 19 jeremybenn
  elif test "x$build_alias" != "x$host_alias"; then
1405
    cross_compiling=yes
1406
  fi
1407
fi
1408
 
1409
ac_tool_prefix=
1410
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411
 
1412
test "$silent" = yes && exec 6>/dev/null
1413
 
1414
 
1415
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416
ac_ls_di=`ls -di .` &&
1417
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 625 jeremybenn
  as_fn_error $? "working directory cannot be determined"
1419 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 625 jeremybenn
  as_fn_error $? "pwd does not report name of working directory"
1421 19 jeremybenn
 
1422
 
1423
# Find the source files, if location was not specified.
1424
if test -z "$srcdir"; then
1425
  ac_srcdir_defaulted=yes
1426
  # Try the directory containing this script, then the parent directory.
1427 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1428
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429
         X"$as_myself" : 'X\(//\)[^/]' \| \
1430
         X"$as_myself" : 'X\(//\)$' \| \
1431
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432
$as_echo X"$as_myself" |
1433 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434
            s//\1/
1435
            q
1436
          }
1437
          /^X\(\/\/\)[^/].*/{
1438
            s//\1/
1439
            q
1440
          }
1441
          /^X\(\/\/\)$/{
1442
            s//\1/
1443
            q
1444
          }
1445
          /^X\(\/\).*/{
1446
            s//\1/
1447
            q
1448
          }
1449
          s/.*/./; q'`
1450
  srcdir=$ac_confdir
1451
  if test ! -r "$srcdir/$ac_unique_file"; then
1452
    srcdir=..
1453
  fi
1454
else
1455
  ac_srcdir_defaulted=no
1456
fi
1457
if test ! -r "$srcdir/$ac_unique_file"; then
1458
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 625 jeremybenn
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 19 jeremybenn
fi
1461
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462
ac_abs_confdir=`(
1463 625 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464 19 jeremybenn
        pwd)`
1465
# When building in place, set srcdir=.
1466
if test "$ac_abs_confdir" = "$ac_pwd"; then
1467
  srcdir=.
1468
fi
1469
# Remove unnecessary trailing slashes from srcdir.
1470
# Double slashes in file names in object file debugging info
1471
# mess up M-x gdb in Emacs.
1472
case $srcdir in
1473
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474
esac
1475
for ac_var in $ac_precious_vars; do
1476
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477
  eval ac_env_${ac_var}_value=\$${ac_var}
1478
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480
done
1481
 
1482
#
1483
# Report the --help message.
1484
#
1485
if test "$ac_init_help" = "long"; then
1486
  # Omit some internal or obsolete options to make the list less imposing.
1487
  # This message is too long to be a string in the A/UX 3.1 sh.
1488
  cat <<_ACEOF
1489 625 jeremybenn
\`configure' configures or1ksim 2011-08-15 to adapt to many kinds of systems.
1490 19 jeremybenn
 
1491
Usage: $0 [OPTION]... [VAR=VALUE]...
1492
 
1493
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494
VAR=VALUE.  See below for descriptions of some of the useful variables.
1495
 
1496
Defaults for the options are specified in brackets.
1497
 
1498
Configuration:
1499
  -h, --help              display this help and exit
1500
      --help=short        display options specific to this package
1501
      --help=recursive    display the short help of all the included packages
1502
  -V, --version           display version information and exit
1503 625 jeremybenn
  -q, --quiet, --silent   do not print \`checking ...' messages
1504 19 jeremybenn
      --cache-file=FILE   cache test results in FILE [disabled]
1505
  -C, --config-cache      alias for \`--cache-file=config.cache'
1506
  -n, --no-create         do not create output files
1507
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1508
 
1509
Installation directories:
1510
  --prefix=PREFIX         install architecture-independent files in PREFIX
1511 82 jeremybenn
                          [$ac_default_prefix]
1512 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1513 82 jeremybenn
                          [PREFIX]
1514 19 jeremybenn
 
1515
By default, \`make install' will install all the files in
1516
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1517
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518
for instance \`--prefix=\$HOME'.
1519
 
1520
For better control, use the options below.
1521
 
1522
Fine tuning of the installation directories:
1523 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1524
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1525
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1526
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1527
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1528
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1529
  --libdir=DIR            object code libraries [EPREFIX/lib]
1530
  --includedir=DIR        C header files [PREFIX/include]
1531
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1532
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1533
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1534
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1535
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1536
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1537
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1538
  --htmldir=DIR           html documentation [DOCDIR]
1539
  --dvidir=DIR            dvi documentation [DOCDIR]
1540
  --pdfdir=DIR            pdf documentation [DOCDIR]
1541
  --psdir=DIR             ps documentation [DOCDIR]
1542 19 jeremybenn
_ACEOF
1543
 
1544
  cat <<\_ACEOF
1545
 
1546
Program names:
1547
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1548
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1549
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1550
 
1551
System types:
1552
  --build=BUILD     configure for building on BUILD [guessed]
1553
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1554
  --target=TARGET   configure for building compilers for TARGET [HOST]
1555
_ACEOF
1556
fi
1557
 
1558
if test -n "$ac_init_help"; then
1559
  case $ac_init_help in
1560 625 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2011-08-15:";;
1561 19 jeremybenn
   esac
1562
  cat <<\_ACEOF
1563
 
1564
Optional Features:
1565 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1566 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1569
  --enable-static[=PKGS]  build static libraries [default=yes]
1570
  --enable-fast-install[=PKGS]
1571
                          optimize for fast installation [default=yes]
1572
  --disable-libtool-lock  avoid locking (might break parallel builds)
1573
  --disable-dependency-tracking  speeds up one-time build
1574
  --enable-dependency-tracking   do not reject slow dependency extractors
1575 625 jeremybenn
  --enable-silent-rules          less verbose build output (undo: `make V=1')
1576
  --disable-silent-rules         verbose build output (undo: `make V=0')
1577 19 jeremybenn
  --enable-profiling      generate profiling code
1578 552 julius
  --enable-execution Execution style to use (simple/complex)
1579 19 jeremybenn
  --enable-ethphy    compiles sim with ethernet phy support
1580 127 jeremybenn
  --enable-unsigned-xori    l.xori immediate operand treated as unsigned
1581 19 jeremybenn
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1582
  --enable-debug          enable library debugging symbols
1583
 
1584
Optional Packages:
1585
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1586
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1587
  --with-pic              try to use only PIC/non-PIC objects [default=use
1588
                          both]
1589 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1590 19 jeremybenn
 
1591
Some influential environment variables:
1592
  CC          C compiler command
1593
  CFLAGS      C compiler flags
1594
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1595
              nonstandard directory 
1596
  LIBS        libraries to pass to the linker, e.g. -l
1597 625 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1598 19 jeremybenn
              you have headers in a nonstandard directory 
1599
  CPP         C preprocessor
1600 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1601
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1602 19 jeremybenn
 
1603
Use these variables to override the choices made by `configure' or to help
1604
it to find libraries and programs with nonstandard names/locations.
1605
 
1606
Report bugs to .
1607
_ACEOF
1608
ac_status=$?
1609
fi
1610
 
1611
if test "$ac_init_help" = "recursive"; then
1612
  # If there are subdirs, report their specific --help.
1613
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 82 jeremybenn
    test -d "$ac_dir" ||
1615
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616
      continue
1617 19 jeremybenn
    ac_builddir=.
1618
 
1619
case "$ac_dir" in
1620
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621
*)
1622 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1624 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 19 jeremybenn
  case $ac_top_builddir_sub in
1626
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628
  esac ;;
1629
esac
1630
ac_abs_top_builddir=$ac_pwd
1631
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632
# for backward compatibility:
1633
ac_top_builddir=$ac_top_build_prefix
1634
 
1635
case $srcdir in
1636
  .)  # We are building in place.
1637
    ac_srcdir=.
1638
    ac_top_srcdir=$ac_top_builddir_sub
1639
    ac_abs_top_srcdir=$ac_pwd ;;
1640
  [\\/]* | ?:[\\/]* )  # Absolute name.
1641
    ac_srcdir=$srcdir$ac_dir_suffix;
1642
    ac_top_srcdir=$srcdir
1643
    ac_abs_top_srcdir=$srcdir ;;
1644
  *) # Relative name.
1645
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1647
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648
esac
1649
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
 
1651
    cd "$ac_dir" || { ac_status=$?; continue; }
1652
    # Check for guested configure.
1653
    if test -f "$ac_srcdir/configure.gnu"; then
1654
      echo &&
1655
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656
    elif test -f "$ac_srcdir/configure"; then
1657
      echo &&
1658
      $SHELL "$ac_srcdir/configure" --help=recursive
1659
    else
1660 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 19 jeremybenn
    fi || ac_status=$?
1662
    cd "$ac_pwd" || { ac_status=$?; break; }
1663
  done
1664
fi
1665
 
1666
test -n "$ac_init_help" && exit $ac_status
1667
if $ac_init_version; then
1668
  cat <<\_ACEOF
1669 625 jeremybenn
or1ksim configure 2011-08-15
1670
generated by GNU Autoconf 2.68
1671 19 jeremybenn
 
1672 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
1673 19 jeremybenn
This configure script is free software; the Free Software Foundation
1674
gives unlimited permission to copy, distribute and modify it.
1675 82 jeremybenn
 
1676
Copyright (C) 1999-2008 OpenCores
1677
Copyright (C) 2008, 2010 Embecosm Limited
1678
 
1679
Contributor Jeremy Bennett 
1680
 
1681
This file is part of OpenRISC 1000 Architectural Simulator.
1682
 
1683
This program is free software; you can redistribute it and/or modify it
1684
under the terms of the GNU General Public License as published by the Free
1685
Software Foundation; either version 3 of the License, or (at your option)
1686
any later version.
1687
 
1688
This program is distributed in the hope that it will be useful, but WITHOUT
1689
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1690
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1691
more details.
1692
 
1693
You should have received a copy of the GNU General Public License along
1694
with this program.  If not, see .
1695 19 jeremybenn
_ACEOF
1696
  exit
1697
fi
1698 346 jeremybenn
 
1699
## ------------------------ ##
1700
## Autoconf initialization. ##
1701
## ------------------------ ##
1702
 
1703
# ac_fn_c_try_compile LINENO
1704
# --------------------------
1705
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706
ac_fn_c_try_compile ()
1707
{
1708
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709
  rm -f conftest.$ac_objext
1710
  if { { ac_try="$ac_compile"
1711
case "(($ac_try" in
1712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713
  *) ac_try_echo=$ac_try;;
1714
esac
1715
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716
$as_echo "$ac_try_echo"; } >&5
1717
  (eval "$ac_compile") 2>conftest.err
1718
  ac_status=$?
1719
  if test -s conftest.err; then
1720
    grep -v '^ *+' conftest.err >conftest.er1
1721
    cat conftest.er1 >&5
1722
    mv -f conftest.er1 conftest.err
1723
  fi
1724
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725
  test $ac_status = 0; } && {
1726
         test -z "$ac_c_werror_flag" ||
1727
         test ! -s conftest.err
1728
       } && test -s conftest.$ac_objext; then :
1729
  ac_retval=0
1730
else
1731
  $as_echo "$as_me: failed program was:" >&5
1732
sed 's/^/| /' conftest.$ac_ext >&5
1733
 
1734
        ac_retval=1
1735
fi
1736 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
  as_fn_set_status $ac_retval
1738 346 jeremybenn
 
1739
} # ac_fn_c_try_compile
1740
 
1741
# ac_fn_c_try_cpp LINENO
1742
# ----------------------
1743
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744
ac_fn_c_try_cpp ()
1745
{
1746
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1748
case "(($ac_try" in
1749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750
  *) ac_try_echo=$ac_try;;
1751
esac
1752
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753
$as_echo "$ac_try_echo"; } >&5
1754
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755
  ac_status=$?
1756
  if test -s conftest.err; then
1757
    grep -v '^ *+' conftest.err >conftest.er1
1758
    cat conftest.er1 >&5
1759
    mv -f conftest.er1 conftest.err
1760
  fi
1761
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 625 jeremybenn
  test $ac_status = 0; } > conftest.i && {
1763 346 jeremybenn
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764
         test ! -s conftest.err
1765
       }; then :
1766
  ac_retval=0
1767
else
1768
  $as_echo "$as_me: failed program was:" >&5
1769
sed 's/^/| /' conftest.$ac_ext >&5
1770
 
1771
    ac_retval=1
1772
fi
1773 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
  as_fn_set_status $ac_retval
1775 346 jeremybenn
 
1776
} # ac_fn_c_try_cpp
1777
 
1778
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779
# -------------------------------------------------------
1780
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781
# the include files in INCLUDES and setting the cache variable VAR
1782
# accordingly.
1783
ac_fn_c_check_header_mongrel ()
1784
{
1785
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 625 jeremybenn
  if eval \${$3+:} false; then :
1787 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788
$as_echo_n "checking for $2... " >&6; }
1789 625 jeremybenn
if eval \${$3+:} false; then :
1790 346 jeremybenn
  $as_echo_n "(cached) " >&6
1791
fi
1792
eval ac_res=\$$3
1793
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794
$as_echo "$ac_res" >&6; }
1795
else
1796
  # Is the header compilable?
1797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798
$as_echo_n "checking $2 usability... " >&6; }
1799
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800
/* end confdefs.h.  */
1801
$4
1802
#include <$2>
1803
_ACEOF
1804
if ac_fn_c_try_compile "$LINENO"; then :
1805
  ac_header_compiler=yes
1806
else
1807
  ac_header_compiler=no
1808
fi
1809
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811
$as_echo "$ac_header_compiler" >&6; }
1812
 
1813
# Is the header present?
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815
$as_echo_n "checking $2 presence... " >&6; }
1816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817
/* end confdefs.h.  */
1818
#include <$2>
1819
_ACEOF
1820
if ac_fn_c_try_cpp "$LINENO"; then :
1821
  ac_header_preproc=yes
1822
else
1823
  ac_header_preproc=no
1824
fi
1825 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
1826 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827
$as_echo "$ac_header_preproc" >&6; }
1828
 
1829
# So?  What about this header?
1830
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831
  yes:no: )
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836
    ;;
1837
  no:yes:* )
1838
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1841
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1842
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1845
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1846
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 625 jeremybenn
( $as_echo "## ------------------------------------- ##
1849 346 jeremybenn
## Report this to openrisc@opencores.org ##
1850 625 jeremybenn
## ------------------------------------- ##"
1851 346 jeremybenn
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1852
    ;;
1853
esac
1854
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855
$as_echo_n "checking for $2... " >&6; }
1856 625 jeremybenn
if eval \${$3+:} false; then :
1857 346 jeremybenn
  $as_echo_n "(cached) " >&6
1858
else
1859
  eval "$3=\$ac_header_compiler"
1860
fi
1861
eval ac_res=\$$3
1862
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863
$as_echo "$ac_res" >&6; }
1864
fi
1865 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 346 jeremybenn
 
1867
} # ac_fn_c_check_header_mongrel
1868
 
1869
# ac_fn_c_try_run LINENO
1870
# ----------------------
1871
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872
# that executables *can* be run.
1873
ac_fn_c_try_run ()
1874
{
1875
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876
  if { { ac_try="$ac_link"
1877
case "(($ac_try" in
1878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879
  *) ac_try_echo=$ac_try;;
1880
esac
1881
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882
$as_echo "$ac_try_echo"; } >&5
1883
  (eval "$ac_link") 2>&5
1884
  ac_status=$?
1885
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887
  { { case "(($ac_try" in
1888
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889
  *) ac_try_echo=$ac_try;;
1890
esac
1891
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892
$as_echo "$ac_try_echo"; } >&5
1893
  (eval "$ac_try") 2>&5
1894
  ac_status=$?
1895
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896
  test $ac_status = 0; }; }; then :
1897
  ac_retval=0
1898
else
1899
  $as_echo "$as_me: program exited with status $ac_status" >&5
1900
       $as_echo "$as_me: failed program was:" >&5
1901
sed 's/^/| /' conftest.$ac_ext >&5
1902
 
1903
       ac_retval=$ac_status
1904
fi
1905
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
  as_fn_set_status $ac_retval
1908 346 jeremybenn
 
1909
} # ac_fn_c_try_run
1910
 
1911
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912
# -------------------------------------------------------
1913
# Tests whether HEADER exists and can be compiled using the include files in
1914
# INCLUDES, setting the cache variable VAR accordingly.
1915
ac_fn_c_check_header_compile ()
1916
{
1917
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919
$as_echo_n "checking for $2... " >&6; }
1920 625 jeremybenn
if eval \${$3+:} false; then :
1921 346 jeremybenn
  $as_echo_n "(cached) " >&6
1922
else
1923
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924
/* end confdefs.h.  */
1925
$4
1926
#include <$2>
1927
_ACEOF
1928
if ac_fn_c_try_compile "$LINENO"; then :
1929
  eval "$3=yes"
1930
else
1931
  eval "$3=no"
1932
fi
1933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934
fi
1935
eval ac_res=\$$3
1936
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937
$as_echo "$ac_res" >&6; }
1938 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 346 jeremybenn
 
1940
} # ac_fn_c_check_header_compile
1941
 
1942
# ac_fn_c_try_link LINENO
1943
# -----------------------
1944
# Try to link conftest.$ac_ext, and return whether this succeeded.
1945
ac_fn_c_try_link ()
1946
{
1947
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948
  rm -f conftest.$ac_objext conftest$ac_exeext
1949
  if { { ac_try="$ac_link"
1950
case "(($ac_try" in
1951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952
  *) ac_try_echo=$ac_try;;
1953
esac
1954
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955
$as_echo "$ac_try_echo"; } >&5
1956
  (eval "$ac_link") 2>conftest.err
1957
  ac_status=$?
1958
  if test -s conftest.err; then
1959
    grep -v '^ *+' conftest.err >conftest.er1
1960
    cat conftest.er1 >&5
1961
    mv -f conftest.er1 conftest.err
1962
  fi
1963
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964
  test $ac_status = 0; } && {
1965
         test -z "$ac_c_werror_flag" ||
1966
         test ! -s conftest.err
1967
       } && test -s conftest$ac_exeext && {
1968
         test "$cross_compiling" = yes ||
1969
         $as_test_x conftest$ac_exeext
1970
       }; then :
1971
  ac_retval=0
1972
else
1973
  $as_echo "$as_me: failed program was:" >&5
1974
sed 's/^/| /' conftest.$ac_ext >&5
1975
 
1976
        ac_retval=1
1977
fi
1978
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1979
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1980
  # interfere with the next link command; also delete a directory that is
1981
  # left behind by Apple's compiler.  We do this before executing the actions.
1982
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1983 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
  as_fn_set_status $ac_retval
1985 346 jeremybenn
 
1986
} # ac_fn_c_try_link
1987
 
1988
# ac_fn_c_check_func LINENO FUNC VAR
1989
# ----------------------------------
1990
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1991
ac_fn_c_check_func ()
1992
{
1993
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995
$as_echo_n "checking for $2... " >&6; }
1996 625 jeremybenn
if eval \${$3+:} false; then :
1997 346 jeremybenn
  $as_echo_n "(cached) " >&6
1998
else
1999
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000
/* end confdefs.h.  */
2001
/* Define $2 to an innocuous variant, in case  declares $2.
2002
   For example, HP-UX 11i  declares gettimeofday.  */
2003
#define $2 innocuous_$2
2004
 
2005
/* System header to define __stub macros and hopefully few prototypes,
2006
    which can conflict with char $2 (); below.
2007
    Prefer  to  if __STDC__ is defined, since
2008
     exists even on freestanding compilers.  */
2009
 
2010
#ifdef __STDC__
2011
# include 
2012
#else
2013
# include 
2014
#endif
2015
 
2016
#undef $2
2017
 
2018
/* Override any GCC internal prototype to avoid an error.
2019
   Use char because int might match the return type of a GCC
2020
   builtin and then its argument prototype would still apply.  */
2021
#ifdef __cplusplus
2022
extern "C"
2023
#endif
2024
char $2 ();
2025
/* The GNU C library defines this for functions which it implements
2026
    to always fail with ENOSYS.  Some functions are actually named
2027
    something starting with __ and the normal name is an alias.  */
2028
#if defined __stub_$2 || defined __stub___$2
2029
choke me
2030
#endif
2031
 
2032
int
2033
main ()
2034
{
2035
return $2 ();
2036
  ;
2037
  return 0;
2038
}
2039
_ACEOF
2040
if ac_fn_c_try_link "$LINENO"; then :
2041
  eval "$3=yes"
2042
else
2043
  eval "$3=no"
2044
fi
2045
rm -f core conftest.err conftest.$ac_objext \
2046
    conftest$ac_exeext conftest.$ac_ext
2047
fi
2048
eval ac_res=\$$3
2049
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050
$as_echo "$ac_res" >&6; }
2051 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 346 jeremybenn
 
2053
} # ac_fn_c_check_func
2054
 
2055 625 jeremybenn
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2056
# ---------------------------------------------
2057
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2058
# accordingly.
2059 346 jeremybenn
ac_fn_c_check_decl ()
2060
{
2061
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 625 jeremybenn
  as_decl_name=`echo $2|sed 's/ *(.*//'`
2063
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2064
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2065
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2066
if eval \${$3+:} false; then :
2067 346 jeremybenn
  $as_echo_n "(cached) " >&6
2068
else
2069
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070
/* end confdefs.h.  */
2071
$4
2072
int
2073
main ()
2074
{
2075 625 jeremybenn
#ifndef $as_decl_name
2076
#ifdef __cplusplus
2077
  (void) $as_decl_use;
2078
#else
2079
  (void) $as_decl_name;
2080 346 jeremybenn
#endif
2081 625 jeremybenn
#endif
2082 346 jeremybenn
 
2083
  ;
2084
  return 0;
2085
}
2086
_ACEOF
2087
if ac_fn_c_try_compile "$LINENO"; then :
2088
  eval "$3=yes"
2089
else
2090
  eval "$3=no"
2091
fi
2092
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093
fi
2094
eval ac_res=\$$3
2095
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096
$as_echo "$ac_res" >&6; }
2097 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 346 jeremybenn
 
2099
} # ac_fn_c_check_decl
2100
 
2101
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2102
# -------------------------------------------
2103
# Tests whether TYPE exists after having included INCLUDES, setting cache
2104
# variable VAR accordingly.
2105
ac_fn_c_check_type ()
2106
{
2107
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109
$as_echo_n "checking for $2... " >&6; }
2110 625 jeremybenn
if eval \${$3+:} false; then :
2111 346 jeremybenn
  $as_echo_n "(cached) " >&6
2112
else
2113
  eval "$3=no"
2114
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115
/* end confdefs.h.  */
2116
$4
2117
int
2118
main ()
2119
{
2120
if (sizeof ($2))
2121
         return 0;
2122
  ;
2123
  return 0;
2124
}
2125
_ACEOF
2126
if ac_fn_c_try_compile "$LINENO"; then :
2127
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128
/* end confdefs.h.  */
2129
$4
2130
int
2131
main ()
2132
{
2133
if (sizeof (($2)))
2134
            return 0;
2135
  ;
2136
  return 0;
2137
}
2138
_ACEOF
2139
if ac_fn_c_try_compile "$LINENO"; then :
2140
 
2141
else
2142
  eval "$3=yes"
2143
fi
2144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145
fi
2146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147
fi
2148
eval ac_res=\$$3
2149
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150
$as_echo "$ac_res" >&6; }
2151 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 346 jeremybenn
 
2153
} # ac_fn_c_check_type
2154
 
2155
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2156
# --------------------------------------------
2157
# Tries to find the compile-time value of EXPR in a program that includes
2158
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2159
# computed
2160
ac_fn_c_compute_int ()
2161
{
2162
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163
  if test "$cross_compiling" = yes; then
2164
    # Depending upon the size, compute the lo and hi bounds.
2165
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166
/* end confdefs.h.  */
2167
$4
2168
int
2169
main ()
2170
{
2171
static int test_array [1 - 2 * !(($2) >= 0)];
2172
test_array [0] = 0
2173
 
2174
  ;
2175
  return 0;
2176
}
2177
_ACEOF
2178
if ac_fn_c_try_compile "$LINENO"; then :
2179
  ac_lo=0 ac_mid=0
2180
  while :; do
2181
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182
/* end confdefs.h.  */
2183
$4
2184
int
2185
main ()
2186
{
2187
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188
test_array [0] = 0
2189
 
2190
  ;
2191
  return 0;
2192
}
2193
_ACEOF
2194
if ac_fn_c_try_compile "$LINENO"; then :
2195
  ac_hi=$ac_mid; break
2196
else
2197
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198
                        if test $ac_lo -le $ac_mid; then
2199
                          ac_lo= ac_hi=
2200
                          break
2201
                        fi
2202
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2203
fi
2204
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205
  done
2206
else
2207
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208
/* end confdefs.h.  */
2209
$4
2210
int
2211
main ()
2212
{
2213
static int test_array [1 - 2 * !(($2) < 0)];
2214
test_array [0] = 0
2215
 
2216
  ;
2217
  return 0;
2218
}
2219
_ACEOF
2220
if ac_fn_c_try_compile "$LINENO"; then :
2221
  ac_hi=-1 ac_mid=-1
2222
  while :; do
2223
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224
/* end confdefs.h.  */
2225
$4
2226
int
2227
main ()
2228
{
2229
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230
test_array [0] = 0
2231
 
2232
  ;
2233
  return 0;
2234
}
2235
_ACEOF
2236
if ac_fn_c_try_compile "$LINENO"; then :
2237
  ac_lo=$ac_mid; break
2238
else
2239
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240
                        if test $ac_mid -le $ac_hi; then
2241
                          ac_lo= ac_hi=
2242
                          break
2243
                        fi
2244
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245
fi
2246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247
  done
2248
else
2249
  ac_lo= ac_hi=
2250
fi
2251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252
fi
2253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254
# Binary search between lo and hi bounds.
2255
while test "x$ac_lo" != "x$ac_hi"; do
2256
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258
/* end confdefs.h.  */
2259
$4
2260
int
2261
main ()
2262
{
2263
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264
test_array [0] = 0
2265
 
2266
  ;
2267
  return 0;
2268
}
2269
_ACEOF
2270
if ac_fn_c_try_compile "$LINENO"; then :
2271
  ac_hi=$ac_mid
2272
else
2273
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2274
fi
2275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276
done
2277
case $ac_lo in #((
2278
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2279
'') ac_retval=1 ;;
2280
esac
2281
  else
2282
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283
/* end confdefs.h.  */
2284
$4
2285
static long int longval () { return $2; }
2286
static unsigned long int ulongval () { return $2; }
2287
#include 
2288
#include 
2289
int
2290
main ()
2291
{
2292
 
2293
  FILE *f = fopen ("conftest.val", "w");
2294
  if (! f)
2295
    return 1;
2296
  if (($2) < 0)
2297
    {
2298
      long int i = longval ();
2299
      if (i != ($2))
2300
        return 1;
2301
      fprintf (f, "%ld", i);
2302
    }
2303
  else
2304
    {
2305
      unsigned long int i = ulongval ();
2306
      if (i != ($2))
2307
        return 1;
2308
      fprintf (f, "%lu", i);
2309
    }
2310
  /* Do not output a trailing newline, as this causes \r\n confusion
2311
     on some platforms.  */
2312
  return ferror (f) || fclose (f) != 0;
2313
 
2314
  ;
2315
  return 0;
2316
}
2317
_ACEOF
2318
if ac_fn_c_try_run "$LINENO"; then :
2319
  echo >>conftest.val; read $3 
2320
else
2321
  ac_retval=1
2322
fi
2323
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2325
rm -f conftest.val
2326
 
2327
  fi
2328 625 jeremybenn
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
  as_fn_set_status $ac_retval
2330 346 jeremybenn
 
2331
} # ac_fn_c_compute_int
2332 19 jeremybenn
cat >config.log <<_ACEOF
2333
This file contains any messages produced by compilers while
2334
running configure, to aid debugging if configure makes a mistake.
2335
 
2336 625 jeremybenn
It was created by or1ksim $as_me 2011-08-15, which was
2337
generated by GNU Autoconf 2.68.  Invocation command line was
2338 19 jeremybenn
 
2339
  $ $0 $@
2340
 
2341
_ACEOF
2342
exec 5>>config.log
2343
{
2344
cat <<_ASUNAME
2345
## --------- ##
2346
## Platform. ##
2347
## --------- ##
2348
 
2349
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2354
 
2355
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2357
 
2358
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2359
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2360
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2362
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2363
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2364
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2365
 
2366
_ASUNAME
2367
 
2368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369
for as_dir in $PATH
2370
do
2371
  IFS=$as_save_IFS
2372
  test -z "$as_dir" && as_dir=.
2373 346 jeremybenn
    $as_echo "PATH: $as_dir"
2374
  done
2375 19 jeremybenn
IFS=$as_save_IFS
2376
 
2377
} >&5
2378
 
2379
cat >&5 <<_ACEOF
2380
 
2381
 
2382
## ----------- ##
2383
## Core tests. ##
2384
## ----------- ##
2385
 
2386
_ACEOF
2387
 
2388
 
2389
# Keep a trace of the command line.
2390
# Strip out --no-create and --no-recursion so they do not pile up.
2391
# Strip out --silent because we don't want to record it for future runs.
2392
# Also quote any args containing shell meta-characters.
2393
# Make two passes to allow for proper duplicate-argument suppression.
2394
ac_configure_args=
2395
ac_configure_args0=
2396
ac_configure_args1=
2397
ac_must_keep_next=false
2398
for ac_pass in 1 2
2399
do
2400
  for ac_arg
2401
  do
2402
    case $ac_arg in
2403
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405
    | -silent | --silent | --silen | --sile | --sil)
2406
      continue ;;
2407
    *\'*)
2408 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 19 jeremybenn
    esac
2410
    case $ac_pass in
2411 346 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 19 jeremybenn
    2)
2413 346 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2414 19 jeremybenn
      if test $ac_must_keep_next = true; then
2415
        ac_must_keep_next=false # Got value, back to normal.
2416
      else
2417
        case $ac_arg in
2418
          *=* | --config-cache | -C | -disable-* | --disable-* \
2419
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421
          | -with-* | --with-* | -without-* | --without-* | --x)
2422
            case "$ac_configure_args0 " in
2423
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424
            esac
2425
            ;;
2426
          -* ) ac_must_keep_next=true ;;
2427
        esac
2428
      fi
2429 346 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2430 19 jeremybenn
      ;;
2431
    esac
2432
  done
2433
done
2434 346 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2435
{ ac_configure_args1=; unset ac_configure_args1;}
2436 19 jeremybenn
 
2437
# When interrupted or exit'd, cleanup temporary files, and complete
2438
# config.log.  We remove comments because anyway the quotes in there
2439
# would cause problems or look ugly.
2440
# WARNING: Use '\'' to represent an apostrophe within the trap.
2441
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442
trap 'exit_status=$?
2443
  # Save into config.log some information that might help in debugging.
2444
  {
2445
    echo
2446
 
2447 625 jeremybenn
    $as_echo "## ---------------- ##
2448 19 jeremybenn
## Cache variables. ##
2449 625 jeremybenn
## ---------------- ##"
2450 19 jeremybenn
    echo
2451
    # The following way of writing the cache mishandles newlines in values,
2452
(
2453
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454
    eval ac_val=\$$ac_var
2455
    case $ac_val in #(
2456
    *${as_nl}*)
2457
      case $ac_var in #(
2458 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460 19 jeremybenn
      esac
2461
      case $ac_var in #(
2462
      _ | IFS | as_nl) ;; #(
2463 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2465 19 jeremybenn
      esac ;;
2466
    esac
2467
  done
2468
  (set) 2>&1 |
2469
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470
    *${as_nl}ac_space=\ *)
2471
      sed -n \
2472
        "s/'\''/'\''\\\\'\'''\''/g;
2473
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474
      ;; #(
2475
    *)
2476
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477
      ;;
2478
    esac |
2479
    sort
2480
)
2481
    echo
2482
 
2483 625 jeremybenn
    $as_echo "## ----------------- ##
2484 19 jeremybenn
## Output variables. ##
2485 625 jeremybenn
## ----------------- ##"
2486 19 jeremybenn
    echo
2487
    for ac_var in $ac_subst_vars
2488
    do
2489
      eval ac_val=\$$ac_var
2490
      case $ac_val in
2491 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 19 jeremybenn
      esac
2493 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2494 19 jeremybenn
    done | sort
2495
    echo
2496
 
2497
    if test -n "$ac_subst_files"; then
2498 625 jeremybenn
      $as_echo "## ------------------- ##
2499 19 jeremybenn
## File substitutions. ##
2500 625 jeremybenn
## ------------------- ##"
2501 19 jeremybenn
      echo
2502
      for ac_var in $ac_subst_files
2503
      do
2504
        eval ac_val=\$$ac_var
2505
        case $ac_val in
2506 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 19 jeremybenn
        esac
2508 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2509 19 jeremybenn
      done | sort
2510
      echo
2511
    fi
2512
 
2513
    if test -s confdefs.h; then
2514 625 jeremybenn
      $as_echo "## ----------- ##
2515 19 jeremybenn
## confdefs.h. ##
2516 625 jeremybenn
## ----------- ##"
2517 19 jeremybenn
      echo
2518
      cat confdefs.h
2519
      echo
2520
    fi
2521
    test "$ac_signal" != 0 &&
2522 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2523
    $as_echo "$as_me: exit $exit_status"
2524 19 jeremybenn
  } >&5
2525
  rm -f core *.core core.conftest.* &&
2526
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527
    exit $exit_status
2528
' 0
2529
for ac_signal in 1 2 13 15; do
2530 346 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531 19 jeremybenn
done
2532
ac_signal=0
2533
 
2534
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2535
rm -f -r conftest* confdefs.h
2536
 
2537 346 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2538
 
2539 19 jeremybenn
# Predefined preprocessor variables.
2540
 
2541
cat >>confdefs.h <<_ACEOF
2542
#define PACKAGE_NAME "$PACKAGE_NAME"
2543
_ACEOF
2544
 
2545
cat >>confdefs.h <<_ACEOF
2546
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547
_ACEOF
2548
 
2549
cat >>confdefs.h <<_ACEOF
2550
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2551
_ACEOF
2552
 
2553
cat >>confdefs.h <<_ACEOF
2554
#define PACKAGE_STRING "$PACKAGE_STRING"
2555
_ACEOF
2556
 
2557
cat >>confdefs.h <<_ACEOF
2558
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559
_ACEOF
2560
 
2561 346 jeremybenn
cat >>confdefs.h <<_ACEOF
2562
#define PACKAGE_URL "$PACKAGE_URL"
2563
_ACEOF
2564 19 jeremybenn
 
2565 346 jeremybenn
 
2566 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2567 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2568
ac_site_file1=NONE
2569
ac_site_file2=NONE
2570 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2571 625 jeremybenn
  # We do not want a PATH search for config.site.
2572
  case $CONFIG_SITE in #((
2573
    -*)  ac_site_file1=./$CONFIG_SITE;;
2574
    */*) ac_site_file1=$CONFIG_SITE;;
2575
    *)   ac_site_file1=./$CONFIG_SITE;;
2576
  esac
2577 19 jeremybenn
elif test "x$prefix" != xNONE; then
2578 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2579
  ac_site_file2=$prefix/etc/config.site
2580 19 jeremybenn
else
2581 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2582
  ac_site_file2=$ac_default_prefix/etc/config.site
2583 19 jeremybenn
fi
2584 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585 19 jeremybenn
do
2586 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2587 625 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2591 625 jeremybenn
    . "$ac_site_file" \
2592
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594
as_fn_error $? "failed to load site script $ac_site_file
2595
See \`config.log' for more details" "$LINENO" 5; }
2596 19 jeremybenn
  fi
2597
done
2598
 
2599
if test -r "$cache_file"; then
2600 625 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2601
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2602
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2605 19 jeremybenn
    case $cache_file in
2606
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607
      *)                      . "./$cache_file";;
2608
    esac
2609
  fi
2610
else
2611 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2613 19 jeremybenn
  >$cache_file
2614
fi
2615
 
2616
# Check that the precious variables saved in the cache have kept the same
2617
# value.
2618
ac_cache_corrupted=false
2619
for ac_var in $ac_precious_vars; do
2620
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621
  eval ac_new_set=\$ac_env_${ac_var}_set
2622
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623
  eval ac_new_val=\$ac_env_${ac_var}_value
2624
  case $ac_old_set,$ac_new_set in
2625
    set,)
2626 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628 19 jeremybenn
      ac_cache_corrupted=: ;;
2629
    ,set)
2630 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632 19 jeremybenn
      ac_cache_corrupted=: ;;
2633
    ,);;
2634
    *)
2635
      if test "x$ac_old_val" != "x$ac_new_val"; then
2636 82 jeremybenn
        # differences in whitespace do not lead to failure.
2637
        ac_old_val_w=`echo x $ac_old_val`
2638
        ac_new_val_w=`echo x $ac_new_val`
2639
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642
          ac_cache_corrupted=:
2643
        else
2644 346 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646
          eval $ac_var=\$ac_old_val
2647
        fi
2648 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2649 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2650 346 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2651 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2652 19 jeremybenn
      fi;;
2653
  esac
2654
  # Pass precious variables to config.status.
2655
  if test "$ac_new_set" = set; then
2656
    case $ac_new_val in
2657 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2659
    esac
2660
    case " $ac_configure_args " in
2661
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2662 346 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663 19 jeremybenn
    esac
2664
  fi
2665
done
2666
if $ac_cache_corrupted; then
2667 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671 625 jeremybenn
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672 19 jeremybenn
fi
2673 346 jeremybenn
## -------------------- ##
2674
## Main body of script. ##
2675
## -------------------- ##
2676 19 jeremybenn
 
2677
ac_ext=c
2678
ac_cpp='$CPP $CPPFLAGS'
2679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
 
2683
 
2684
 
2685 82 jeremybenn
 
2686 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2687 19 jeremybenn
ac_ext=c
2688
ac_cpp='$CPP $CPPFLAGS'
2689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
if test -n "$ac_tool_prefix"; then
2693
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2694
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2695 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2697 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2698 82 jeremybenn
  $as_echo_n "(cached) " >&6
2699 19 jeremybenn
else
2700
  if test -n "$CC"; then
2701
  ac_cv_prog_CC="$CC" # Let the user override the test.
2702
else
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
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2711 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 19 jeremybenn
    break 2
2713
  fi
2714
done
2715 346 jeremybenn
  done
2716 19 jeremybenn
IFS=$as_save_IFS
2717
 
2718
fi
2719
fi
2720
CC=$ac_cv_prog_CC
2721
if test -n "$CC"; then
2722 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2723 82 jeremybenn
$as_echo "$CC" >&6; }
2724 19 jeremybenn
else
2725 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 82 jeremybenn
$as_echo "no" >&6; }
2727 19 jeremybenn
fi
2728
 
2729
 
2730
fi
2731
if test -z "$ac_cv_prog_CC"; then
2732
  ac_ct_CC=$CC
2733
  # Extract the first word of "gcc", so it can be a program name with args.
2734
set dummy gcc; ac_word=$2
2735 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2737 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2738 82 jeremybenn
  $as_echo_n "(cached) " >&6
2739 19 jeremybenn
else
2740
  if test -n "$ac_ct_CC"; then
2741
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742
else
2743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744
for as_dir in $PATH
2745
do
2746
  IFS=$as_save_IFS
2747
  test -z "$as_dir" && as_dir=.
2748 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2749 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750
    ac_cv_prog_ac_ct_CC="gcc"
2751 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 19 jeremybenn
    break 2
2753
  fi
2754
done
2755 346 jeremybenn
  done
2756 19 jeremybenn
IFS=$as_save_IFS
2757
 
2758
fi
2759
fi
2760
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2761
if test -n "$ac_ct_CC"; then
2762 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2763 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2764 19 jeremybenn
else
2765 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 82 jeremybenn
$as_echo "no" >&6; }
2767 19 jeremybenn
fi
2768
 
2769
  if test "x$ac_ct_CC" = x; then
2770
    CC=""
2771
  else
2772
    case $cross_compiling:$ac_tool_warned in
2773
yes:)
2774 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 19 jeremybenn
ac_tool_warned=yes ;;
2777
esac
2778
    CC=$ac_ct_CC
2779
  fi
2780
else
2781
  CC="$ac_cv_prog_CC"
2782
fi
2783
 
2784
if test -z "$CC"; then
2785
          if test -n "$ac_tool_prefix"; then
2786
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2787
set dummy ${ac_tool_prefix}cc; ac_word=$2
2788 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2790 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2791 82 jeremybenn
  $as_echo_n "(cached) " >&6
2792 19 jeremybenn
else
2793
  if test -n "$CC"; then
2794
  ac_cv_prog_CC="$CC" # Let the user override the test.
2795
else
2796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797
for as_dir in $PATH
2798
do
2799
  IFS=$as_save_IFS
2800
  test -z "$as_dir" && as_dir=.
2801 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2802 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2804 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 19 jeremybenn
    break 2
2806
  fi
2807
done
2808 346 jeremybenn
  done
2809 19 jeremybenn
IFS=$as_save_IFS
2810
 
2811
fi
2812
fi
2813
CC=$ac_cv_prog_CC
2814
if test -n "$CC"; then
2815 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2816 82 jeremybenn
$as_echo "$CC" >&6; }
2817 19 jeremybenn
else
2818 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 82 jeremybenn
$as_echo "no" >&6; }
2820 19 jeremybenn
fi
2821
 
2822
 
2823
  fi
2824
fi
2825
if test -z "$CC"; then
2826
  # Extract the first word of "cc", so it can be a program name with args.
2827
set dummy cc; ac_word=$2
2828 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2829 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2830 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2831 82 jeremybenn
  $as_echo_n "(cached) " >&6
2832 19 jeremybenn
else
2833
  if test -n "$CC"; then
2834
  ac_cv_prog_CC="$CC" # Let the user override the test.
2835
else
2836
  ac_prog_rejected=no
2837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838
for as_dir in $PATH
2839
do
2840
  IFS=$as_save_IFS
2841
  test -z "$as_dir" && as_dir=.
2842 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2843 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2845
       ac_prog_rejected=yes
2846
       continue
2847
     fi
2848
    ac_cv_prog_CC="cc"
2849 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 19 jeremybenn
    break 2
2851
  fi
2852
done
2853 346 jeremybenn
  done
2854 19 jeremybenn
IFS=$as_save_IFS
2855
 
2856
if test $ac_prog_rejected = yes; then
2857
  # We found a bogon in the path, so make sure we never use it.
2858
  set dummy $ac_cv_prog_CC
2859
  shift
2860
  if test $# != 0; then
2861
    # We chose a different compiler from the bogus one.
2862
    # However, it has the same basename, so the bogon will be chosen
2863
    # first if we set CC to just the basename; use the full file name.
2864
    shift
2865
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2866
  fi
2867
fi
2868
fi
2869
fi
2870
CC=$ac_cv_prog_CC
2871
if test -n "$CC"; then
2872 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 82 jeremybenn
$as_echo "$CC" >&6; }
2874 19 jeremybenn
else
2875 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 82 jeremybenn
$as_echo "no" >&6; }
2877 19 jeremybenn
fi
2878
 
2879
 
2880
fi
2881
if test -z "$CC"; then
2882
  if test -n "$ac_tool_prefix"; then
2883
  for ac_prog in cl.exe
2884
  do
2885
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2889 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
2890 82 jeremybenn
  $as_echo_n "(cached) " >&6
2891 19 jeremybenn
else
2892
  if test -n "$CC"; then
2893
  ac_cv_prog_CC="$CC" # Let the user override the test.
2894
else
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896
for as_dir in $PATH
2897
do
2898
  IFS=$as_save_IFS
2899
  test -z "$as_dir" && as_dir=.
2900 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2901 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2903 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 19 jeremybenn
    break 2
2905
  fi
2906
done
2907 346 jeremybenn
  done
2908 19 jeremybenn
IFS=$as_save_IFS
2909
 
2910
fi
2911
fi
2912
CC=$ac_cv_prog_CC
2913
if test -n "$CC"; then
2914 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2915 82 jeremybenn
$as_echo "$CC" >&6; }
2916 19 jeremybenn
else
2917 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 82 jeremybenn
$as_echo "no" >&6; }
2919 19 jeremybenn
fi
2920
 
2921
 
2922
    test -n "$CC" && break
2923
  done
2924
fi
2925
if test -z "$CC"; then
2926
  ac_ct_CC=$CC
2927
  for ac_prog in cl.exe
2928
do
2929
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2930
set dummy $ac_prog; ac_word=$2
2931 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2933 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934 82 jeremybenn
  $as_echo_n "(cached) " >&6
2935 19 jeremybenn
else
2936
  if test -n "$ac_ct_CC"; then
2937
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938
else
2939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940
for as_dir in $PATH
2941
do
2942
  IFS=$as_save_IFS
2943
  test -z "$as_dir" && as_dir=.
2944 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2945 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946
    ac_cv_prog_ac_ct_CC="$ac_prog"
2947 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 19 jeremybenn
    break 2
2949
  fi
2950
done
2951 346 jeremybenn
  done
2952 19 jeremybenn
IFS=$as_save_IFS
2953
 
2954
fi
2955
fi
2956
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957
if test -n "$ac_ct_CC"; then
2958 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2960 19 jeremybenn
else
2961 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 82 jeremybenn
$as_echo "no" >&6; }
2963 19 jeremybenn
fi
2964
 
2965
 
2966
  test -n "$ac_ct_CC" && break
2967
done
2968
 
2969
  if test "x$ac_ct_CC" = x; then
2970
    CC=""
2971
  else
2972
    case $cross_compiling:$ac_tool_warned in
2973
yes:)
2974 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 19 jeremybenn
ac_tool_warned=yes ;;
2977
esac
2978
    CC=$ac_ct_CC
2979
  fi
2980
fi
2981
 
2982
fi
2983
 
2984
 
2985 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
2988
See \`config.log' for more details" "$LINENO" 5; }
2989 19 jeremybenn
 
2990
# Provide some information about the compiler.
2991 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2992 82 jeremybenn
set X $ac_compile
2993
ac_compiler=$2
2994 346 jeremybenn
for ac_option in --version -v -V -qversion; do
2995
  { { ac_try="$ac_compiler $ac_option >&5"
2996 19 jeremybenn
case "(($ac_try" in
2997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998
  *) ac_try_echo=$ac_try;;
2999
esac
3000 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001
$as_echo "$ac_try_echo"; } >&5
3002
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3003 19 jeremybenn
  ac_status=$?
3004 346 jeremybenn
  if test -s conftest.err; then
3005
    sed '10a\
3006
... rest of stderr output deleted ...
3007
         10q' conftest.err >conftest.er1
3008
    cat conftest.er1 >&5
3009
  fi
3010 625 jeremybenn
  rm -f conftest.er1 conftest.err
3011 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012
  test $ac_status = 0; }
3013
done
3014 19 jeremybenn
 
3015 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016 19 jeremybenn
/* end confdefs.h.  */
3017 625 jeremybenn
 
3018 19 jeremybenn
int
3019
main ()
3020
{
3021
 
3022
  ;
3023
  return 0;
3024
}
3025
_ACEOF
3026
ac_clean_files_save=$ac_clean_files
3027 625 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3028 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3029
# It will help us diagnose broken compilers, and finding out an intuition
3030
# of exeext.
3031 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3032
$as_echo_n "checking whether the C compiler works... " >&6; }
3033 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3034
 
3035
# The possible output files:
3036
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3037
 
3038 19 jeremybenn
ac_rmfiles=
3039
for ac_file in $ac_files
3040
do
3041
  case $ac_file in
3042 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3043 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3044
  esac
3045
done
3046
rm -f $ac_rmfiles
3047
 
3048 346 jeremybenn
if { { ac_try="$ac_link_default"
3049 19 jeremybenn
case "(($ac_try" in
3050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051
  *) ac_try_echo=$ac_try;;
3052
esac
3053 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054
$as_echo "$ac_try_echo"; } >&5
3055 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3056
  ac_status=$?
3057 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058
  test $ac_status = 0; }; then :
3059 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3060
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3061
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3062
# so that the user can short-circuit this test for compilers unknown to
3063
# Autoconf.
3064
for ac_file in $ac_files ''
3065
do
3066
  test -f "$ac_file" || continue
3067
  case $ac_file in
3068 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3069 19 jeremybenn
        ;;
3070
    [ab].out )
3071
        # We found the default executable, but exeext='' is most
3072
        # certainly right.
3073
        break;;
3074
    *.* )
3075 346 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3076 19 jeremybenn
        then :; else
3077
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3078
        fi
3079
        # We set ac_cv_exeext here because the later test for it is not
3080
        # safe: cross compilers may not add the suffix if given an `-o'
3081
        # argument, so we may need to know it at that point already.
3082
        # Even if this section looks crufty: it has the advantage of
3083
        # actually working.
3084
        break;;
3085
    * )
3086
        break;;
3087
  esac
3088
done
3089
test "$ac_cv_exeext" = no && ac_cv_exeext=
3090
 
3091
else
3092
  ac_file=''
3093
fi
3094 346 jeremybenn
if test -z "$ac_file"; then :
3095 625 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096
$as_echo "no" >&6; }
3097
$as_echo "$as_me: failed program was:" >&5
3098 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3099
 
3100 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 625 jeremybenn
as_fn_error 77 "C compiler cannot create executables
3103
See \`config.log' for more details" "$LINENO" 5; }
3104
else
3105
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3106
$as_echo "yes" >&6; }
3107 19 jeremybenn
fi
3108 625 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3109
$as_echo_n "checking for C compiler default output file name... " >&6; }
3110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3111
$as_echo "$ac_file" >&6; }
3112 19 jeremybenn
ac_exeext=$ac_cv_exeext
3113
 
3114 625 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3115 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3116 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3117 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3118 346 jeremybenn
if { { ac_try="$ac_link"
3119 19 jeremybenn
case "(($ac_try" in
3120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121
  *) ac_try_echo=$ac_try;;
3122
esac
3123 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124
$as_echo "$ac_try_echo"; } >&5
3125 19 jeremybenn
  (eval "$ac_link") 2>&5
3126
  ac_status=$?
3127 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128
  test $ac_status = 0; }; then :
3129 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3130
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3131
# work properly (i.e., refer to `conftest.exe'), while it won't with
3132
# `rm'.
3133
for ac_file in conftest.exe conftest conftest.*; do
3134
  test -f "$ac_file" || continue
3135
  case $ac_file in
3136 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138
          break;;
3139
    * ) break;;
3140
  esac
3141
done
3142
else
3143 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 625 jeremybenn
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3146
See \`config.log' for more details" "$LINENO" 5; }
3147 19 jeremybenn
fi
3148 625 jeremybenn
rm -f conftest conftest$ac_cv_exeext
3149 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3150 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3151 19 jeremybenn
 
3152
rm -f conftest.$ac_ext
3153
EXEEXT=$ac_cv_exeext
3154
ac_exeext=$EXEEXT
3155 625 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156
/* end confdefs.h.  */
3157
#include 
3158
int
3159
main ()
3160
{
3161
FILE *f = fopen ("conftest.out", "w");
3162
 return ferror (f) || fclose (f) != 0;
3163
 
3164
  ;
3165
  return 0;
3166
}
3167
_ACEOF
3168
ac_clean_files="$ac_clean_files conftest.out"
3169
# Check that the compiler produces executables we can run.  If not, either
3170
# the compiler is broken, or we cross compile.
3171
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3172
$as_echo_n "checking whether we are cross compiling... " >&6; }
3173
if test "$cross_compiling" != yes; then
3174
  { { ac_try="$ac_link"
3175
case "(($ac_try" in
3176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177
  *) ac_try_echo=$ac_try;;
3178
esac
3179
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180
$as_echo "$ac_try_echo"; } >&5
3181
  (eval "$ac_link") 2>&5
3182
  ac_status=$?
3183
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184
  test $ac_status = 0; }
3185
  if { ac_try='./conftest$ac_cv_exeext'
3186
  { { case "(($ac_try" in
3187
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188
  *) ac_try_echo=$ac_try;;
3189
esac
3190
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191
$as_echo "$ac_try_echo"; } >&5
3192
  (eval "$ac_try") 2>&5
3193
  ac_status=$?
3194
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195
  test $ac_status = 0; }; }; then
3196
    cross_compiling=no
3197
  else
3198
    if test "$cross_compiling" = maybe; then
3199
        cross_compiling=yes
3200
    else
3201
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203
as_fn_error $? "cannot run C compiled programs.
3204
If you meant to cross compile, use \`--host'.
3205
See \`config.log' for more details" "$LINENO" 5; }
3206
    fi
3207
  fi
3208
fi
3209
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3210
$as_echo "$cross_compiling" >&6; }
3211
 
3212
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3213
ac_clean_files=$ac_clean_files_save
3214 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3215 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3216 625 jeremybenn
if ${ac_cv_objext+:} false; then :
3217 82 jeremybenn
  $as_echo_n "(cached) " >&6
3218 19 jeremybenn
else
3219 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 19 jeremybenn
/* end confdefs.h.  */
3221
 
3222
int
3223
main ()
3224
{
3225
 
3226
  ;
3227
  return 0;
3228
}
3229
_ACEOF
3230
rm -f conftest.o conftest.obj
3231 346 jeremybenn
if { { ac_try="$ac_compile"
3232 19 jeremybenn
case "(($ac_try" in
3233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234
  *) ac_try_echo=$ac_try;;
3235
esac
3236 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237
$as_echo "$ac_try_echo"; } >&5
3238 19 jeremybenn
  (eval "$ac_compile") 2>&5
3239
  ac_status=$?
3240 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241
  test $ac_status = 0; }; then :
3242 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3243
  test -f "$ac_file" || continue;
3244
  case $ac_file in
3245 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3246 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3247
       break;;
3248
  esac
3249
done
3250
else
3251 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3252 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3253
 
3254 346 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 625 jeremybenn
as_fn_error $? "cannot compute suffix of object files: cannot compile
3257
See \`config.log' for more details" "$LINENO" 5; }
3258 19 jeremybenn
fi
3259
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3260
fi
3261 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3262 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3263 19 jeremybenn
OBJEXT=$ac_cv_objext
3264
ac_objext=$OBJEXT
3265 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3266 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3267 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
3268 82 jeremybenn
  $as_echo_n "(cached) " >&6
3269 19 jeremybenn
else
3270 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 19 jeremybenn
/* end confdefs.h.  */
3272
 
3273
int
3274
main ()
3275
{
3276
#ifndef __GNUC__
3277
       choke me
3278
#endif
3279
 
3280
  ;
3281
  return 0;
3282
}
3283
_ACEOF
3284 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3285 19 jeremybenn
  ac_compiler_gnu=yes
3286
else
3287 346 jeremybenn
  ac_compiler_gnu=no
3288 19 jeremybenn
fi
3289
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3291
 
3292
fi
3293 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3294 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3295
if test $ac_compiler_gnu = yes; then
3296
  GCC=yes
3297
else
3298
  GCC=
3299
fi
3300 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3301
ac_save_CFLAGS=$CFLAGS
3302 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3303 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3304 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
3305 82 jeremybenn
  $as_echo_n "(cached) " >&6
3306 19 jeremybenn
else
3307
  ac_save_c_werror_flag=$ac_c_werror_flag
3308
   ac_c_werror_flag=yes
3309
   ac_cv_prog_cc_g=no
3310
   CFLAGS="-g"
3311 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 19 jeremybenn
/* end confdefs.h.  */
3313
 
3314
int
3315
main ()
3316
{
3317
 
3318
  ;
3319
  return 0;
3320
}
3321
_ACEOF
3322 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3323 19 jeremybenn
  ac_cv_prog_cc_g=yes
3324
else
3325 346 jeremybenn
  CFLAGS=""
3326
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 19 jeremybenn
/* end confdefs.h.  */
3328
 
3329
int
3330
main ()
3331
{
3332
 
3333
  ;
3334
  return 0;
3335
}
3336
_ACEOF
3337 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3338
 
3339 236 jeremybenn
else
3340 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3341 19 jeremybenn
         CFLAGS="-g"
3342 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 19 jeremybenn
/* end confdefs.h.  */
3344
 
3345
int
3346
main ()
3347
{
3348
 
3349
  ;
3350
  return 0;
3351
}
3352
_ACEOF
3353 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3354 19 jeremybenn
  ac_cv_prog_cc_g=yes
3355
fi
3356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357
fi
3358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359
fi
3360
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361
   ac_c_werror_flag=$ac_save_c_werror_flag
3362
fi
3363 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3364 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3365 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3366
  CFLAGS=$ac_save_CFLAGS
3367
elif test $ac_cv_prog_cc_g = yes; then
3368
  if test "$GCC" = yes; then
3369
    CFLAGS="-g -O2"
3370
  else
3371
    CFLAGS="-g"
3372
  fi
3373
else
3374
  if test "$GCC" = yes; then
3375
    CFLAGS="-O2"
3376
  else
3377
    CFLAGS=
3378
  fi
3379
fi
3380 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3381 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3382 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
3383 82 jeremybenn
  $as_echo_n "(cached) " >&6
3384 19 jeremybenn
else
3385
  ac_cv_prog_cc_c89=no
3386
ac_save_CC=$CC
3387 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 19 jeremybenn
/* end confdefs.h.  */
3389
#include 
3390
#include 
3391
#include 
3392
#include 
3393
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3394
struct buf { int x; };
3395
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396
static char *e (p, i)
3397
     char **p;
3398
     int i;
3399
{
3400
  return p[i];
3401
}
3402
static char *f (char * (*g) (char **, int), char **p, ...)
3403
{
3404
  char *s;
3405
  va_list v;
3406
  va_start (v,p);
3407
  s = g (p, va_arg (v,int));
3408
  va_end (v);
3409
  return s;
3410
}
3411
 
3412
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3413
   function prototypes and stuff, but not '\xHH' hex character constants.
3414
   These don't provoke an error unfortunately, instead are silently treated
3415
   as 'x'.  The following induces an error, until -std is added to get
3416
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3417
   array size at least.  It's necessary to write '\x00'==0 to get something
3418
   that's true only with -std.  */
3419
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420
 
3421
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422
   inside strings and character constants.  */
3423
#define FOO(x) 'x'
3424
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425
 
3426
int test (int i, double x);
3427
struct s1 {int (*f) (int a);};
3428
struct s2 {int (*f) (double a);};
3429
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3430
int argc;
3431
char **argv;
3432
int
3433
main ()
3434
{
3435
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3436
  ;
3437
  return 0;
3438
}
3439
_ACEOF
3440
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442
do
3443
  CC="$ac_save_CC $ac_arg"
3444 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3445 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3446
fi
3447
rm -f core conftest.err conftest.$ac_objext
3448
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3449
done
3450
rm -f conftest.$ac_ext
3451
CC=$ac_save_CC
3452
 
3453
fi
3454
# AC_CACHE_VAL
3455
case "x$ac_cv_prog_cc_c89" in
3456
  x)
3457 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3458 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3459 19 jeremybenn
  xno)
3460 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3461 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3462 19 jeremybenn
  *)
3463
    CC="$CC $ac_cv_prog_cc_c89"
3464 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3465 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3466 19 jeremybenn
esac
3467 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3468 19 jeremybenn
 
3469 346 jeremybenn
fi
3470 19 jeremybenn
 
3471
ac_ext=c
3472
ac_cpp='$CPP $CPPFLAGS'
3473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
 
3477 91 jeremybenn
 
3478
ac_ext=c
3479
ac_cpp='$CPP $CPPFLAGS'
3480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3484 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3485
# On Suns, sometimes $CPP names a directory.
3486
if test -n "$CPP" && test -d "$CPP"; then
3487
  CPP=
3488
fi
3489
if test -z "$CPP"; then
3490 625 jeremybenn
  if ${ac_cv_prog_CPP+:} false; then :
3491 82 jeremybenn
  $as_echo_n "(cached) " >&6
3492 19 jeremybenn
else
3493 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3494
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3495
    do
3496
      ac_preproc_ok=false
3497
for ac_c_preproc_warn_flag in '' yes
3498 19 jeremybenn
do
3499 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3500
  # with a fresh cross-compiler works.
3501
  # Prefer  to  if __STDC__ is defined, since
3502
  #  exists even on freestanding compilers.
3503
  # On the NeXT, cc -E runs the code through the compiler's parser,
3504
  # not just through cpp. "Syntax error" is here to catch this case.
3505 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 91 jeremybenn
/* end confdefs.h.  */
3507
#ifdef __STDC__
3508
# include 
3509
#else
3510
# include 
3511
#endif
3512
                     Syntax error
3513
_ACEOF
3514 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3515
 
3516 236 jeremybenn
else
3517 91 jeremybenn
  # Broken: fails on valid input.
3518
continue
3519
fi
3520 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3521 91 jeremybenn
 
3522
  # OK, works on sane cases.  Now check whether nonexistent headers
3523
  # can be detected and how.
3524 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 91 jeremybenn
/* end confdefs.h.  */
3526
#include 
3527
_ACEOF
3528 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3529 91 jeremybenn
  # Broken: success on invalid input.
3530
continue
3531 82 jeremybenn
else
3532 91 jeremybenn
  # Passes both tests.
3533
ac_preproc_ok=:
3534
break
3535 82 jeremybenn
fi
3536 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3537 91 jeremybenn
 
3538
done
3539
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3540 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
3541 346 jeremybenn
if $ac_preproc_ok; then :
3542 91 jeremybenn
  break
3543 19 jeremybenn
fi
3544
 
3545 91 jeremybenn
    done
3546
    ac_cv_prog_CPP=$CPP
3547 19 jeremybenn
 
3548 91 jeremybenn
fi
3549
  CPP=$ac_cv_prog_CPP
3550
else
3551
  ac_cv_prog_CPP=$CPP
3552
fi
3553 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3554 91 jeremybenn
$as_echo "$CPP" >&6; }
3555
ac_preproc_ok=false
3556
for ac_c_preproc_warn_flag in '' yes
3557
do
3558
  # Use a header file that comes with gcc, so configuring glibc
3559
  # with a fresh cross-compiler works.
3560
  # Prefer  to  if __STDC__ is defined, since
3561
  #  exists even on freestanding compilers.
3562
  # On the NeXT, cc -E runs the code through the compiler's parser,
3563
  # not just through cpp. "Syntax error" is here to catch this case.
3564 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 91 jeremybenn
/* end confdefs.h.  */
3566
#ifdef __STDC__
3567
# include 
3568
#else
3569
# include 
3570
#endif
3571
                     Syntax error
3572
_ACEOF
3573 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3574
 
3575 236 jeremybenn
else
3576 91 jeremybenn
  # Broken: fails on valid input.
3577
continue
3578
fi
3579 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3580 82 jeremybenn
 
3581 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3582
  # can be detected and how.
3583 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 91 jeremybenn
/* end confdefs.h.  */
3585
#include 
3586
_ACEOF
3587 346 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3588 91 jeremybenn
  # Broken: success on invalid input.
3589
continue
3590
else
3591
  # Passes both tests.
3592
ac_preproc_ok=:
3593
break
3594
fi
3595 625 jeremybenn
rm -f conftest.err conftest.i conftest.$ac_ext
3596 82 jeremybenn
 
3597 91 jeremybenn
done
3598
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599 625 jeremybenn
rm -f conftest.i conftest.err conftest.$ac_ext
3600 346 jeremybenn
if $ac_preproc_ok; then :
3601
 
3602 91 jeremybenn
else
3603 346 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 625 jeremybenn
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3606
See \`config.log' for more details" "$LINENO" 5; }
3607 91 jeremybenn
fi
3608 82 jeremybenn
 
3609 91 jeremybenn
ac_ext=c
3610
ac_cpp='$CPP $CPPFLAGS'
3611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 82 jeremybenn
 
3615
 
3616 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3617 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3618 625 jeremybenn
if ${ac_cv_path_GREP+:} false; then :
3619 82 jeremybenn
  $as_echo_n "(cached) " >&6
3620 19 jeremybenn
else
3621 82 jeremybenn
  if test -z "$GREP"; then
3622 19 jeremybenn
  ac_path_GREP_found=false
3623 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3624
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626
do
3627
  IFS=$as_save_IFS
3628
  test -z "$as_dir" && as_dir=.
3629 346 jeremybenn
    for ac_prog in grep ggrep; do
3630 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3631
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3633
# Check for GNU ac_path_GREP and select it if it is found.
3634 19 jeremybenn
  # Check for GNU $ac_path_GREP
3635
case `"$ac_path_GREP" --version 2>&1` in
3636
*GNU*)
3637
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3638
*)
3639
  ac_count=0
3640 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3641 19 jeremybenn
  while :
3642
  do
3643
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3644
    mv "conftest.tmp" "conftest.in"
3645
    cp "conftest.in" "conftest.nl"
3646 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3647 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3650 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651
      # Best one so far, save it but keep looking for a better one
3652
      ac_cv_path_GREP="$ac_path_GREP"
3653
      ac_path_GREP_max=$ac_count
3654
    fi
3655
    # 10*(2^10) chars as input seems more than enough
3656
    test $ac_count -gt 10 && break
3657
  done
3658
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3659
esac
3660
 
3661 82 jeremybenn
      $ac_path_GREP_found && break 3
3662
    done
3663 19 jeremybenn
  done
3664 346 jeremybenn
  done
3665 19 jeremybenn
IFS=$as_save_IFS
3666 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3667 625 jeremybenn
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3668 82 jeremybenn
  fi
3669 19 jeremybenn
else
3670
  ac_cv_path_GREP=$GREP
3671
fi
3672
 
3673
fi
3674 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3675 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3676 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3677
 
3678
 
3679 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3680 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3681 625 jeremybenn
if ${ac_cv_path_EGREP+:} false; then :
3682 82 jeremybenn
  $as_echo_n "(cached) " >&6
3683 19 jeremybenn
else
3684
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3685
   then ac_cv_path_EGREP="$GREP -E"
3686
   else
3687 82 jeremybenn
     if test -z "$EGREP"; then
3688 19 jeremybenn
  ac_path_EGREP_found=false
3689 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3690
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3692
do
3693
  IFS=$as_save_IFS
3694
  test -z "$as_dir" && as_dir=.
3695 346 jeremybenn
    for ac_prog in egrep; do
3696 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3697
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3698
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3699
# Check for GNU ac_path_EGREP and select it if it is found.
3700 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3701
case `"$ac_path_EGREP" --version 2>&1` in
3702
*GNU*)
3703
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3704
*)
3705
  ac_count=0
3706 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3707 19 jeremybenn
  while :
3708
  do
3709
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3710
    mv "conftest.tmp" "conftest.in"
3711
    cp "conftest.in" "conftest.nl"
3712 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3713 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3714
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3715 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3716 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3717
      # Best one so far, save it but keep looking for a better one
3718
      ac_cv_path_EGREP="$ac_path_EGREP"
3719
      ac_path_EGREP_max=$ac_count
3720
    fi
3721
    # 10*(2^10) chars as input seems more than enough
3722
    test $ac_count -gt 10 && break
3723
  done
3724
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3725
esac
3726
 
3727 82 jeremybenn
      $ac_path_EGREP_found && break 3
3728
    done
3729 19 jeremybenn
  done
3730 346 jeremybenn
  done
3731 19 jeremybenn
IFS=$as_save_IFS
3732 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3733 625 jeremybenn
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3734 82 jeremybenn
  fi
3735
else
3736
  ac_cv_path_EGREP=$EGREP
3737 19 jeremybenn
fi
3738
 
3739 82 jeremybenn
   fi
3740 19 jeremybenn
fi
3741 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3742 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3743
 EGREP="$ac_cv_path_EGREP"
3744 19 jeremybenn
 
3745 82 jeremybenn
 
3746 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3747 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3748 625 jeremybenn
if ${ac_cv_header_stdc+:} false; then :
3749 91 jeremybenn
  $as_echo_n "(cached) " >&6
3750
else
3751 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752 91 jeremybenn
/* end confdefs.h.  */
3753
#include 
3754
#include 
3755
#include 
3756
#include 
3757
 
3758
int
3759
main ()
3760
{
3761
 
3762
  ;
3763
  return 0;
3764
}
3765
_ACEOF
3766 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3767 91 jeremybenn
  ac_cv_header_stdc=yes
3768
else
3769 346 jeremybenn
  ac_cv_header_stdc=no
3770 91 jeremybenn
fi
3771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772
 
3773
if test $ac_cv_header_stdc = yes; then
3774
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3775 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 91 jeremybenn
/* end confdefs.h.  */
3777
#include 
3778
 
3779
_ACEOF
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 346 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3782
 
3783 91 jeremybenn
else
3784
  ac_cv_header_stdc=no
3785
fi
3786
rm -f conftest*
3787
 
3788
fi
3789
 
3790
if test $ac_cv_header_stdc = yes; then
3791
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3792 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 91 jeremybenn
/* end confdefs.h.  */
3794
#include 
3795
 
3796
_ACEOF
3797
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 346 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3799
 
3800 91 jeremybenn
else
3801
  ac_cv_header_stdc=no
3802
fi
3803
rm -f conftest*
3804
 
3805
fi
3806
 
3807
if test $ac_cv_header_stdc = yes; then
3808
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3809 346 jeremybenn
  if test "$cross_compiling" = yes; then :
3810 91 jeremybenn
  :
3811
else
3812 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 91 jeremybenn
/* end confdefs.h.  */
3814
#include 
3815
#include 
3816
#if ((' ' & 0x0FF) == 0x020)
3817
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3818
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3819
#else
3820
# define ISLOWER(c) \
3821
                   (('a' <= (c) && (c) <= 'i') \
3822
                     || ('j' <= (c) && (c) <= 'r') \
3823
                     || ('s' <= (c) && (c) <= 'z'))
3824
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3825
#endif
3826
 
3827
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3828
int
3829
main ()
3830
{
3831
  int i;
3832
  for (i = 0; i < 256; i++)
3833
    if (XOR (islower (i), ISLOWER (i))
3834
        || toupper (i) != TOUPPER (i))
3835
      return 2;
3836
  return 0;
3837
}
3838
_ACEOF
3839 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3840
 
3841 236 jeremybenn
else
3842 346 jeremybenn
  ac_cv_header_stdc=no
3843 91 jeremybenn
fi
3844 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3845
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3846 91 jeremybenn
fi
3847
 
3848
fi
3849
fi
3850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3851 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3852
if test $ac_cv_header_stdc = yes; then
3853
 
3854 346 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3855 91 jeremybenn
 
3856
fi
3857
 
3858
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3859
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3860
                  inttypes.h stdint.h unistd.h
3861 346 jeremybenn
do :
3862
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3864
"
3865 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3866 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3867
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3868
_ACEOF
3869
 
3870
fi
3871
 
3872
done
3873
 
3874
 
3875
 
3876 346 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3877 625 jeremybenn
if test "x$ac_cv_header_minix_config_h" = xyes; then :
3878 91 jeremybenn
  MINIX=yes
3879
else
3880
  MINIX=
3881
fi
3882
 
3883
 
3884
  if test "$MINIX" = yes; then
3885
 
3886 346 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3887 91 jeremybenn
 
3888
 
3889 346 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3890 91 jeremybenn
 
3891
 
3892 346 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3893 91 jeremybenn
 
3894
  fi
3895
 
3896
 
3897 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3898 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3899 625 jeremybenn
if ${ac_cv_safe_to_define___extensions__+:} false; then :
3900 91 jeremybenn
  $as_echo_n "(cached) " >&6
3901
else
3902 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 91 jeremybenn
/* end confdefs.h.  */
3904
 
3905
#         define __EXTENSIONS__ 1
3906
          $ac_includes_default
3907
int
3908
main ()
3909
{
3910
 
3911
  ;
3912
  return 0;
3913
}
3914
_ACEOF
3915 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3916 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3917
else
3918 346 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3919 91 jeremybenn
fi
3920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921
fi
3922 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3923 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3924
  test $ac_cv_safe_to_define___extensions__ = yes &&
3925 346 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3926 91 jeremybenn
 
3927 346 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3928 91 jeremybenn
 
3929 346 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3930 91 jeremybenn
 
3931 346 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3932 91 jeremybenn
 
3933 346 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3934 91 jeremybenn
 
3935
 
3936
 
3937
# Check we have the execute source file present for sanity. Specify a separate
3938
# config for the testsuite OR1K specific programs, since we'll need different
3939
# tool chain there (the OpenRISC one, rather than the native one).
3940
 
3941
ac_aux_dir=
3942
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3943 625 jeremybenn
  if test -f "$ac_dir/install-sh"; then
3944
    ac_aux_dir=$ac_dir
3945
    ac_install_sh="$ac_aux_dir/install-sh -c"
3946
    break
3947
  elif test -f "$ac_dir/install.sh"; then
3948
    ac_aux_dir=$ac_dir
3949
    ac_install_sh="$ac_aux_dir/install.sh -c"
3950
    break
3951
  elif test -f "$ac_dir/shtool"; then
3952
    ac_aux_dir=$ac_dir
3953
    ac_install_sh="$ac_aux_dir/shtool install -c"
3954
    break
3955
  fi
3956 91 jeremybenn
done
3957
if test -z "$ac_aux_dir"; then
3958 625 jeremybenn
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3959 91 jeremybenn
fi
3960
 
3961
# These three variables are undocumented and unsupported,
3962
# and are intended to be withdrawn in a future Autoconf release.
3963
# They can cause serious problems if a builder's source tree is in a directory
3964
# whose full name contains unusual characters.
3965
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3966
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3967
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3968
 
3969
 
3970
 
3971
 
3972
subdirs="$subdirs testsuite/test-code-or1k"
3973
 
3974
 
3975
# Make sure we can run config.sub.
3976
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3977 625 jeremybenn
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3978 91 jeremybenn
 
3979 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3980 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3981 625 jeremybenn
if ${ac_cv_build+:} false; then :
3982 91 jeremybenn
  $as_echo_n "(cached) " >&6
3983
else
3984
  ac_build_alias=$build_alias
3985
test "x$ac_build_alias" = x &&
3986
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3987
test "x$ac_build_alias" = x &&
3988 625 jeremybenn
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3989 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3990 625 jeremybenn
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3991 91 jeremybenn
 
3992
fi
3993 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3994 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3995
case $ac_cv_build in
3996
*-*-*) ;;
3997 625 jeremybenn
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3998 91 jeremybenn
esac
3999
build=$ac_cv_build
4000
ac_save_IFS=$IFS; IFS='-'
4001
set x $ac_cv_build
4002
shift
4003
build_cpu=$1
4004
build_vendor=$2
4005
shift; shift
4006
# Remember, the first character of IFS is used to create $*,
4007
# except with old shells:
4008
build_os=$*
4009
IFS=$ac_save_IFS
4010
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4011
 
4012
 
4013 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4014 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
4015 625 jeremybenn
if ${ac_cv_host+:} false; then :
4016 91 jeremybenn
  $as_echo_n "(cached) " >&6
4017
else
4018
  if test "x$host_alias" = x; then
4019
  ac_cv_host=$ac_cv_build
4020
else
4021
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4022 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4023 91 jeremybenn
fi
4024
 
4025
fi
4026 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4027 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4028
case $ac_cv_host in
4029
*-*-*) ;;
4030 625 jeremybenn
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4031 91 jeremybenn
esac
4032
host=$ac_cv_host
4033
ac_save_IFS=$IFS; IFS='-'
4034
set x $ac_cv_host
4035
shift
4036
host_cpu=$1
4037
host_vendor=$2
4038
shift; shift
4039
# Remember, the first character of IFS is used to create $*,
4040
# except with old shells:
4041
host_os=$*
4042
IFS=$ac_save_IFS
4043
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4044
 
4045
 
4046 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4047 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4048 625 jeremybenn
if ${ac_cv_target+:} false; then :
4049 91 jeremybenn
  $as_echo_n "(cached) " >&6
4050
else
4051
  if test "x$target_alias" = x; then
4052
  ac_cv_target=$ac_cv_host
4053
else
4054
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4055 625 jeremybenn
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4056 91 jeremybenn
fi
4057
 
4058
fi
4059 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4060 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4061
case $ac_cv_target in
4062
*-*-*) ;;
4063 625 jeremybenn
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4064 91 jeremybenn
esac
4065
target=$ac_cv_target
4066
ac_save_IFS=$IFS; IFS='-'
4067
set x $ac_cv_target
4068
shift
4069
target_cpu=$1
4070
target_vendor=$2
4071
shift; shift
4072
# Remember, the first character of IFS is used to create $*,
4073
# except with old shells:
4074
target_os=$*
4075
IFS=$ac_save_IFS
4076
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4077
 
4078
 
4079
# The aliases save the names the user supplied, while $host etc.
4080
# will get canonicalized.
4081
test -n "$target_alias" &&
4082
  test "$program_prefix$program_suffix$program_transform_name" = \
4083
    NONENONEs,x,x, &&
4084
  program_prefix=${target_alias}-
4085
case `pwd` in
4086
  *\ * | *\     *)
4087 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4088 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4089
esac
4090
 
4091
 
4092
 
4093 96 jeremybenn
macro_version='2.2.6b'
4094
macro_revision='1.3017'
4095 91 jeremybenn
 
4096
 
4097
 
4098
 
4099
 
4100
 
4101
 
4102
 
4103
 
4104
 
4105
 
4106
 
4107
 
4108
ltmain="$ac_aux_dir/ltmain.sh"
4109
 
4110 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4111 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4112 625 jeremybenn
if ${ac_cv_path_SED+:} false; then :
4113 91 jeremybenn
  $as_echo_n "(cached) " >&6
4114
else
4115
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4116
     for ac_i in 1 2 3 4 5 6 7; do
4117
       ac_script="$ac_script$as_nl$ac_script"
4118
     done
4119
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4120 346 jeremybenn
     { ac_script=; unset ac_script;}
4121 91 jeremybenn
     if test -z "$SED"; then
4122
  ac_path_SED_found=false
4123
  # Loop through the user's path and test for each of PROGNAME-LIST
4124
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125
for as_dir in $PATH
4126
do
4127
  IFS=$as_save_IFS
4128
  test -z "$as_dir" && as_dir=.
4129 346 jeremybenn
    for ac_prog in sed gsed; do
4130 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4131
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4132
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4133
# Check for GNU ac_path_SED and select it if it is found.
4134
  # Check for GNU $ac_path_SED
4135
case `"$ac_path_SED" --version 2>&1` in
4136
*GNU*)
4137
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4138
*)
4139
  ac_count=0
4140
  $as_echo_n 0123456789 >"conftest.in"
4141
  while :
4142
  do
4143
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4144
    mv "conftest.tmp" "conftest.in"
4145
    cp "conftest.in" "conftest.nl"
4146
    $as_echo '' >> "conftest.nl"
4147
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4148
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4149 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4150 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4151
      # Best one so far, save it but keep looking for a better one
4152
      ac_cv_path_SED="$ac_path_SED"
4153
      ac_path_SED_max=$ac_count
4154
    fi
4155
    # 10*(2^10) chars as input seems more than enough
4156
    test $ac_count -gt 10 && break
4157
  done
4158
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4159
esac
4160
 
4161
      $ac_path_SED_found && break 3
4162
    done
4163
  done
4164 346 jeremybenn
  done
4165 91 jeremybenn
IFS=$as_save_IFS
4166
  if test -z "$ac_cv_path_SED"; then
4167 625 jeremybenn
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4168 91 jeremybenn
  fi
4169
else
4170
  ac_cv_path_SED=$SED
4171
fi
4172
 
4173
fi
4174 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4175 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4176
 SED="$ac_cv_path_SED"
4177
  rm -f conftest.sed
4178
 
4179
test -z "$SED" && SED=sed
4180
Xsed="$SED -e 1s/^X//"
4181
 
4182
 
4183
 
4184
 
4185
 
4186
 
4187
 
4188
 
4189
 
4190
 
4191
 
4192 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4193 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4194 625 jeremybenn
if ${ac_cv_path_FGREP+:} false; then :
4195 82 jeremybenn
  $as_echo_n "(cached) " >&6
4196 19 jeremybenn
else
4197 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4198
   then ac_cv_path_FGREP="$GREP -F"
4199
   else
4200
     if test -z "$FGREP"; then
4201
  ac_path_FGREP_found=false
4202
  # Loop through the user's path and test for each of PROGNAME-LIST
4203
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205
do
4206
  IFS=$as_save_IFS
4207
  test -z "$as_dir" && as_dir=.
4208 346 jeremybenn
    for ac_prog in fgrep; do
4209 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4210
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4211
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4212
# Check for GNU ac_path_FGREP and select it if it is found.
4213
  # Check for GNU $ac_path_FGREP
4214
case `"$ac_path_FGREP" --version 2>&1` in
4215
*GNU*)
4216
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4217
*)
4218
  ac_count=0
4219
  $as_echo_n 0123456789 >"conftest.in"
4220
  while :
4221
  do
4222
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4223
    mv "conftest.tmp" "conftest.in"
4224
    cp "conftest.in" "conftest.nl"
4225
    $as_echo 'FGREP' >> "conftest.nl"
4226
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 346 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4230
      # Best one so far, save it but keep looking for a better one
4231
      ac_cv_path_FGREP="$ac_path_FGREP"
4232
      ac_path_FGREP_max=$ac_count
4233
    fi
4234
    # 10*(2^10) chars as input seems more than enough
4235
    test $ac_count -gt 10 && break
4236
  done
4237
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238
esac
4239
 
4240
      $ac_path_FGREP_found && break 3
4241
    done
4242
  done
4243 346 jeremybenn
  done
4244 82 jeremybenn
IFS=$as_save_IFS
4245
  if test -z "$ac_cv_path_FGREP"; then
4246 625 jeremybenn
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 82 jeremybenn
  fi
4248
else
4249
  ac_cv_path_FGREP=$FGREP
4250 19 jeremybenn
fi
4251
 
4252
   fi
4253
fi
4254 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4255 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4256
 FGREP="$ac_cv_path_FGREP"
4257 19 jeremybenn
 
4258
 
4259 82 jeremybenn
test -z "$GREP" && GREP=grep
4260 19 jeremybenn
 
4261 82 jeremybenn
 
4262
 
4263
 
4264
 
4265
 
4266
 
4267
 
4268
 
4269
 
4270
 
4271
 
4272
 
4273
 
4274
 
4275
 
4276
 
4277
 
4278
 
4279 19 jeremybenn
# Check whether --with-gnu-ld was given.
4280 346 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4281 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4282
else
4283
  with_gnu_ld=no
4284
fi
4285
 
4286
ac_prog=ld
4287
if test "$GCC" = yes; then
4288
  # Check if gcc -print-prog-name=ld gives a path.
4289 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4290 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4291 19 jeremybenn
  case $host in
4292
  *-*-mingw*)
4293
    # gcc leaves a trailing carriage return which upsets mingw
4294
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4295
  *)
4296
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4297
  esac
4298
  case $ac_prog in
4299
    # Accept absolute paths.
4300
    [\\/]* | ?:[\\/]*)
4301
      re_direlt='/[^/][^/]*/\.\./'
4302
      # Canonicalize the pathname of ld
4303 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4304
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4305
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4306 19 jeremybenn
      done
4307
      test -z "$LD" && LD="$ac_prog"
4308
      ;;
4309
  "")
4310
    # If it fails, then pretend we aren't using GCC.
4311
    ac_prog=ld
4312
    ;;
4313
  *)
4314
    # If it is relative, then search for the first ld in PATH.
4315
    with_gnu_ld=unknown
4316
    ;;
4317
  esac
4318
elif test "$with_gnu_ld" = yes; then
4319 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4320 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4321 19 jeremybenn
else
4322 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4323 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4324 19 jeremybenn
fi
4325 625 jeremybenn
if ${lt_cv_path_LD+:} false; then :
4326 82 jeremybenn
  $as_echo_n "(cached) " >&6
4327 19 jeremybenn
else
4328
  if test -z "$LD"; then
4329
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4330
  for ac_dir in $PATH; do
4331
    IFS="$lt_save_ifs"
4332
    test -z "$ac_dir" && ac_dir=.
4333
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4334
      lt_cv_path_LD="$ac_dir/$ac_prog"
4335
      # Check to see if the program is GNU ld.  I'd rather use --version,
4336
      # but apparently some variants of GNU ld only accept -v.
4337
      # Break only if it was the GNU/non-GNU ld that we prefer.
4338
      case `"$lt_cv_path_LD" -v 2>&1 
4339
      *GNU* | *'with BFD'*)
4340
        test "$with_gnu_ld" != no && break
4341
        ;;
4342
      *)
4343
        test "$with_gnu_ld" != yes && break
4344
        ;;
4345
      esac
4346
    fi
4347
  done
4348
  IFS="$lt_save_ifs"
4349
else
4350
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4351
fi
4352
fi
4353
 
4354
LD="$lt_cv_path_LD"
4355
if test -n "$LD"; then
4356 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4357 82 jeremybenn
$as_echo "$LD" >&6; }
4358 19 jeremybenn
else
4359 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 82 jeremybenn
$as_echo "no" >&6; }
4361 19 jeremybenn
fi
4362 625 jeremybenn
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4363 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4364 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4365 625 jeremybenn
if ${lt_cv_prog_gnu_ld+:} false; then :
4366 82 jeremybenn
  $as_echo_n "(cached) " >&6
4367 19 jeremybenn
else
4368
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4369
case `$LD -v 2>&1 
4370
*GNU* | *'with BFD'*)
4371
  lt_cv_prog_gnu_ld=yes
4372
  ;;
4373
*)
4374
  lt_cv_prog_gnu_ld=no
4375
  ;;
4376
esac
4377
fi
4378 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4379 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4380 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4381
 
4382
 
4383
 
4384 82 jeremybenn
 
4385
 
4386
 
4387
 
4388
 
4389
 
4390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4391 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4392 625 jeremybenn
if ${lt_cv_path_NM+:} false; then :
4393 82 jeremybenn
  $as_echo_n "(cached) " >&6
4394 19 jeremybenn
else
4395
  if test -n "$NM"; then
4396
  # Let the user override the test.
4397
  lt_cv_path_NM="$NM"
4398
else
4399
  lt_nm_to_check="${ac_tool_prefix}nm"
4400
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4401
    lt_nm_to_check="$lt_nm_to_check nm"
4402
  fi
4403
  for lt_tmp_nm in $lt_nm_to_check; do
4404
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4406
      IFS="$lt_save_ifs"
4407
      test -z "$ac_dir" && ac_dir=.
4408
      tmp_nm="$ac_dir/$lt_tmp_nm"
4409
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4410
        # Check to see if the nm accepts a BSD-compat flag.
4411
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4412
        #   nm: unknown option "B" ignored
4413
        # Tru64's nm complains that /dev/null is an invalid object file
4414
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4415
        */dev/null* | *'Invalid file or object type'*)
4416
          lt_cv_path_NM="$tmp_nm -B"
4417
          break
4418
          ;;
4419
        *)
4420
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4421
          */dev/null*)
4422
            lt_cv_path_NM="$tmp_nm -p"
4423
            break
4424
            ;;
4425
          *)
4426
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4427
            continue # so that we can try to find one that supports BSD flags
4428
            ;;
4429
          esac
4430
          ;;
4431
        esac
4432
      fi
4433
    done
4434
    IFS="$lt_save_ifs"
4435
  done
4436 82 jeremybenn
  : ${lt_cv_path_NM=no}
4437 19 jeremybenn
fi
4438
fi
4439 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4440 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4441
if test "$lt_cv_path_NM" != "no"; then
4442
  NM="$lt_cv_path_NM"
4443
else
4444
  # Didn't find any BSD compatible name lister, look for dumpbin.
4445
  if test -n "$ac_tool_prefix"; then
4446
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4447
  do
4448
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4449
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4450 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4452 625 jeremybenn
if ${ac_cv_prog_DUMPBIN+:} false; then :
4453 82 jeremybenn
  $as_echo_n "(cached) " >&6
4454
else
4455
  if test -n "$DUMPBIN"; then
4456
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4457
else
4458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459
for as_dir in $PATH
4460
do
4461
  IFS=$as_save_IFS
4462
  test -z "$as_dir" && as_dir=.
4463 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4464 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4466 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467 82 jeremybenn
    break 2
4468
  fi
4469
done
4470 346 jeremybenn
  done
4471 82 jeremybenn
IFS=$as_save_IFS
4472 19 jeremybenn
 
4473 82 jeremybenn
fi
4474
fi
4475
DUMPBIN=$ac_cv_prog_DUMPBIN
4476
if test -n "$DUMPBIN"; then
4477 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4478 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4479
else
4480 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 82 jeremybenn
$as_echo "no" >&6; }
4482
fi
4483
 
4484
 
4485
    test -n "$DUMPBIN" && break
4486
  done
4487
fi
4488
if test -z "$DUMPBIN"; then
4489
  ac_ct_DUMPBIN=$DUMPBIN
4490
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4491
do
4492
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4493
set dummy $ac_prog; ac_word=$2
4494 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4496 625 jeremybenn
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4497 82 jeremybenn
  $as_echo_n "(cached) " >&6
4498
else
4499
  if test -n "$ac_ct_DUMPBIN"; then
4500
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4501
else
4502
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503
for as_dir in $PATH
4504
do
4505
  IFS=$as_save_IFS
4506
  test -z "$as_dir" && as_dir=.
4507 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4508 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4510 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 82 jeremybenn
    break 2
4512
  fi
4513
done
4514 346 jeremybenn
  done
4515 82 jeremybenn
IFS=$as_save_IFS
4516
 
4517
fi
4518
fi
4519
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4520
if test -n "$ac_ct_DUMPBIN"; then
4521 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4522 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4523
else
4524 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 82 jeremybenn
$as_echo "no" >&6; }
4526
fi
4527
 
4528
 
4529
  test -n "$ac_ct_DUMPBIN" && break
4530
done
4531
 
4532
  if test "x$ac_ct_DUMPBIN" = x; then
4533
    DUMPBIN=":"
4534
  else
4535
    case $cross_compiling:$ac_tool_warned in
4536
yes:)
4537 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539
ac_tool_warned=yes ;;
4540
esac
4541
    DUMPBIN=$ac_ct_DUMPBIN
4542
  fi
4543
fi
4544
 
4545
 
4546
  if test "$DUMPBIN" != ":"; then
4547
    NM="$DUMPBIN"
4548
  fi
4549
fi
4550
test -z "$NM" && NM=nm
4551
 
4552
 
4553
 
4554
 
4555
 
4556
 
4557 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4558 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4559 625 jeremybenn
if ${lt_cv_nm_interface+:} false; then :
4560 82 jeremybenn
  $as_echo_n "(cached) " >&6
4561
else
4562
  lt_cv_nm_interface="BSD nm"
4563
  echo "int some_variable = 0;" > conftest.$ac_ext
4564 625 jeremybenn
  (eval echo "\"\$as_me:4564: $ac_compile\"" >&5)
4565 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4566
  cat conftest.err >&5
4567 625 jeremybenn
  (eval echo "\"\$as_me:4567: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4568 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4569
  cat conftest.err >&5
4570 625 jeremybenn
  (eval echo "\"\$as_me:4570: output\"" >&5)
4571 82 jeremybenn
  cat conftest.out >&5
4572
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4573
    lt_cv_nm_interface="MS dumpbin"
4574
  fi
4575
  rm -f conftest*
4576
fi
4577 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4578 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4579
 
4580 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4581 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4582 19 jeremybenn
LN_S=$as_ln_s
4583
if test "$LN_S" = "ln -s"; then
4584 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 82 jeremybenn
$as_echo "yes" >&6; }
4586 19 jeremybenn
else
4587 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4588 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4589 19 jeremybenn
fi
4590
 
4591 82 jeremybenn
# find the maximum length of command line arguments
4592 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4593 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4594 625 jeremybenn
if ${lt_cv_sys_max_cmd_len+:} false; then :
4595 82 jeremybenn
  $as_echo_n "(cached) " >&6
4596
else
4597
    i=0
4598
  teststring="ABCD"
4599
 
4600
  case $build_os in
4601
  msdosdjgpp*)
4602
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4603
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4604
    # during glob expansion).  Even if it were fixed, the result of this
4605
    # check would be larger than it should be.
4606
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4607
    ;;
4608
 
4609
  gnu*)
4610
    # Under GNU Hurd, this test is not required because there is
4611
    # no limit to the length of command line arguments.
4612
    # Libtool will interpret -1 as no limit whatsoever
4613
    lt_cv_sys_max_cmd_len=-1;
4614
    ;;
4615
 
4616
  cygwin* | mingw* | cegcc*)
4617
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4618
    # about 5 minutes as the teststring grows exponentially.
4619
    # Worse, since 9x/ME are not pre-emptively multitasking,
4620
    # you end up with a "frozen" computer, even though with patience
4621
    # the test eventually succeeds (with a max line length of 256k).
4622
    # Instead, let's just punt: use the minimum linelength reported by
4623
    # all of the supported platforms: 8192 (on NT/2K/XP).
4624
    lt_cv_sys_max_cmd_len=8192;
4625
    ;;
4626
 
4627
  amigaos*)
4628
    # On AmigaOS with pdksh, this test takes hours, literally.
4629
    # So we just punt and use a minimum line length of 8192.
4630
    lt_cv_sys_max_cmd_len=8192;
4631
    ;;
4632
 
4633
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4634
    # This has been around since 386BSD, at least.  Likely further.
4635
    if test -x /sbin/sysctl; then
4636
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4637
    elif test -x /usr/sbin/sysctl; then
4638
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4639
    else
4640
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4641
    fi
4642
    # And add a safety zone
4643
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4644
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4645
    ;;
4646
 
4647
  interix*)
4648
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4649
    lt_cv_sys_max_cmd_len=196608
4650
    ;;
4651
 
4652
  osf*)
4653
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4654
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4655
    # nice to cause kernel panics so lets avoid the loop below.
4656
    # First set a reasonable default.
4657
    lt_cv_sys_max_cmd_len=16384
4658
    #
4659
    if test -x /sbin/sysconfig; then
4660
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4661
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4662
      esac
4663
    fi
4664
    ;;
4665
  sco3.2v5*)
4666
    lt_cv_sys_max_cmd_len=102400
4667
    ;;
4668
  sysv5* | sco5v6* | sysv4.2uw2*)
4669
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4670
    if test -n "$kargmax"; then
4671
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4672
    else
4673
      lt_cv_sys_max_cmd_len=32768
4674
    fi
4675
    ;;
4676
  *)
4677
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4678
    if test -n "$lt_cv_sys_max_cmd_len"; then
4679
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4680
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4681
    else
4682
      # Make teststring a little bigger before we do anything with it.
4683
      # a 1K string should be a reasonable start.
4684
      for i in 1 2 3 4 5 6 7 8 ; do
4685
        teststring=$teststring$teststring
4686
      done
4687
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4688
      # If test is not a shell built-in, we'll probably end up computing a
4689
      # maximum length that is only half of the actual maximum length, but
4690
      # we can't tell.
4691
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4692
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4693
              test $i != 17 # 1/2 MB should be enough
4694
      do
4695
        i=`expr $i + 1`
4696
        teststring=$teststring$teststring
4697
      done
4698
      # Only check the string length outside the loop.
4699
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4700
      teststring=
4701
      # Add a significant safety factor because C++ compilers can tack on
4702
      # massive amounts of additional arguments before passing them to the
4703
      # linker.  It appears as though 1/2 is a usable value.
4704
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4705
    fi
4706
    ;;
4707
  esac
4708
 
4709
fi
4710
 
4711
if test -n $lt_cv_sys_max_cmd_len ; then
4712 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4713 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4714
else
4715 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4716 82 jeremybenn
$as_echo "none" >&6; }
4717
fi
4718
max_cmd_len=$lt_cv_sys_max_cmd_len
4719
 
4720
 
4721
 
4722
 
4723
 
4724
 
4725
: ${CP="cp -f"}
4726
: ${MV="mv -f"}
4727
: ${RM="rm -f"}
4728
 
4729 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4730 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4731
# Try some XSI features
4732
xsi_shell=no
4733
( _lt_dummy="a/b/c"
4734
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4735
      = c,a/b,, \
4736
    && eval 'test $(( 1 + 1 )) -eq 2 \
4737
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4738
  && xsi_shell=yes
4739 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4740 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4741
 
4742
 
4743 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4744 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4745
lt_shell_append=no
4746
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4747
    >/dev/null 2>&1 \
4748
  && lt_shell_append=yes
4749 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4750 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4751
 
4752
 
4753
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4754
  lt_unset=unset
4755
else
4756
  lt_unset=false
4757
fi
4758
 
4759
 
4760
 
4761
 
4762
 
4763
# test EBCDIC or ASCII
4764
case `echo X|tr X '\101'` in
4765
 A) # ASCII based system
4766
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4767
  lt_SP2NL='tr \040 \012'
4768
  lt_NL2SP='tr \015\012 \040\040'
4769
  ;;
4770
 *) # EBCDIC based system
4771
  lt_SP2NL='tr \100 \n'
4772
  lt_NL2SP='tr \r\n \100\100'
4773
  ;;
4774
esac
4775
 
4776
 
4777
 
4778
 
4779
 
4780
 
4781
 
4782
 
4783
 
4784 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4785 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4786 625 jeremybenn
if ${lt_cv_ld_reload_flag+:} false; then :
4787 82 jeremybenn
  $as_echo_n "(cached) " >&6
4788
else
4789
  lt_cv_ld_reload_flag='-r'
4790
fi
4791 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4792 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4793
reload_flag=$lt_cv_ld_reload_flag
4794
case $reload_flag in
4795
"" | " "*) ;;
4796
*) reload_flag=" $reload_flag" ;;
4797
esac
4798
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4799
case $host_os in
4800
  darwin*)
4801
    if test "$GCC" = yes; then
4802
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4803
    else
4804
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805
    fi
4806
    ;;
4807
esac
4808
 
4809
 
4810
 
4811
 
4812
 
4813
 
4814
 
4815
 
4816
 
4817
if test -n "$ac_tool_prefix"; then
4818
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4819
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4820 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4822 625 jeremybenn
if ${ac_cv_prog_OBJDUMP+:} false; then :
4823 82 jeremybenn
  $as_echo_n "(cached) " >&6
4824
else
4825
  if test -n "$OBJDUMP"; then
4826
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4827
else
4828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829
for as_dir in $PATH
4830
do
4831
  IFS=$as_save_IFS
4832
  test -z "$as_dir" && as_dir=.
4833 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4834 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4836 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 82 jeremybenn
    break 2
4838
  fi
4839
done
4840 346 jeremybenn
  done
4841 82 jeremybenn
IFS=$as_save_IFS
4842
 
4843
fi
4844
fi
4845
OBJDUMP=$ac_cv_prog_OBJDUMP
4846
if test -n "$OBJDUMP"; then
4847 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4848 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4849
else
4850 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 82 jeremybenn
$as_echo "no" >&6; }
4852
fi
4853
 
4854
 
4855
fi
4856
if test -z "$ac_cv_prog_OBJDUMP"; then
4857
  ac_ct_OBJDUMP=$OBJDUMP
4858
  # Extract the first word of "objdump", so it can be a program name with args.
4859
set dummy objdump; ac_word=$2
4860 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4862 625 jeremybenn
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4863 82 jeremybenn
  $as_echo_n "(cached) " >&6
4864
else
4865
  if test -n "$ac_ct_OBJDUMP"; then
4866
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4867
else
4868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869
for as_dir in $PATH
4870
do
4871
  IFS=$as_save_IFS
4872
  test -z "$as_dir" && as_dir=.
4873 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4874 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4876 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 82 jeremybenn
    break 2
4878
  fi
4879
done
4880 346 jeremybenn
  done
4881 82 jeremybenn
IFS=$as_save_IFS
4882
 
4883
fi
4884
fi
4885
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4886
if test -n "$ac_ct_OBJDUMP"; then
4887 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4888 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4889
else
4890 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 82 jeremybenn
$as_echo "no" >&6; }
4892
fi
4893
 
4894
  if test "x$ac_ct_OBJDUMP" = x; then
4895
    OBJDUMP="false"
4896
  else
4897
    case $cross_compiling:$ac_tool_warned in
4898
yes:)
4899 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901
ac_tool_warned=yes ;;
4902
esac
4903
    OBJDUMP=$ac_ct_OBJDUMP
4904
  fi
4905
else
4906
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4907
fi
4908
 
4909
test -z "$OBJDUMP" && OBJDUMP=objdump
4910
 
4911
 
4912
 
4913
 
4914
 
4915
 
4916
 
4917
 
4918
 
4919 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4920 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4921 625 jeremybenn
if ${lt_cv_deplibs_check_method+:} false; then :
4922 82 jeremybenn
  $as_echo_n "(cached) " >&6
4923 19 jeremybenn
else
4924
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4925
lt_cv_file_magic_test_file=
4926
lt_cv_deplibs_check_method='unknown'
4927
# Need to set the preceding variable on all platforms that support
4928
# interlibrary dependencies.
4929
# 'none' -- dependencies not supported.
4930
# `unknown' -- same as none, but documents that we really don't know.
4931
# 'pass_all' -- all dependencies passed with no checks.
4932
# 'test_compile' -- check by making test program.
4933
# 'file_magic [[regex]]' -- check by looking for files in library path
4934
# which responds to the $file_magic_cmd with a given extended regex.
4935
# If you have `file' or equivalent on your system and you're not sure
4936
# whether `pass_all' will *always* work, you probably want this one.
4937
 
4938
case $host_os in
4939 82 jeremybenn
aix[4-9]*)
4940 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4941
  ;;
4942
 
4943
beos*)
4944
  lt_cv_deplibs_check_method=pass_all
4945
  ;;
4946
 
4947
bsdi[45]*)
4948
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4949
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4950
  lt_cv_file_magic_test_file=/shlib/libc.so
4951
  ;;
4952
 
4953
cygwin*)
4954
  # func_win32_libid is a shell function defined in ltmain.sh
4955
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4956
  lt_cv_file_magic_cmd='func_win32_libid'
4957
  ;;
4958
 
4959
mingw* | pw32*)
4960
  # Base MSYS/MinGW do not provide the 'file' command needed by
4961
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4962
  # unless we find 'file', for example because we are cross-compiling.
4963
  if ( file / ) >/dev/null 2>&1; then
4964
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4965
    lt_cv_file_magic_cmd='func_win32_libid'
4966
  else
4967
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4968
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4969
  fi
4970
  ;;
4971
 
4972 82 jeremybenn
cegcc)
4973
  # use the weaker test based on 'objdump'. See mingw*.
4974
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4975
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4976
  ;;
4977
 
4978 19 jeremybenn
darwin* | rhapsody*)
4979
  lt_cv_deplibs_check_method=pass_all
4980
  ;;
4981
 
4982
freebsd* | dragonfly*)
4983 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4984 19 jeremybenn
    case $host_cpu in
4985
    i*86 )
4986
      # Not sure whether the presence of OpenBSD here was a mistake.
4987
      # Let's accept both of them until this is cleared up.
4988
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4989
      lt_cv_file_magic_cmd=/usr/bin/file
4990
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4991
      ;;
4992
    esac
4993
  else
4994
    lt_cv_deplibs_check_method=pass_all
4995
  fi
4996
  ;;
4997
 
4998
gnu*)
4999
  lt_cv_deplibs_check_method=pass_all
5000
  ;;
5001
 
5002
hpux10.20* | hpux11*)
5003
  lt_cv_file_magic_cmd=/usr/bin/file
5004
  case $host_cpu in
5005
  ia64*)
5006
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5007
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5008
    ;;
5009
  hppa*64*)
5010
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5011
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5012
    ;;
5013
  *)
5014
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5015
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5016
    ;;
5017
  esac
5018
  ;;
5019
 
5020
interix[3-9]*)
5021
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5022
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5023
  ;;
5024
 
5025
irix5* | irix6* | nonstopux*)
5026
  case $LD in
5027
  *-32|*"-32 ") libmagic=32-bit;;
5028
  *-n32|*"-n32 ") libmagic=N32;;
5029
  *-64|*"-64 ") libmagic=64-bit;;
5030
  *) libmagic=never-match;;
5031
  esac
5032
  lt_cv_deplibs_check_method=pass_all
5033
  ;;
5034
 
5035
# This must be Linux ELF.
5036
linux* | k*bsd*-gnu)
5037
  lt_cv_deplibs_check_method=pass_all
5038
  ;;
5039
 
5040 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5041 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5042 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5043
  else
5044
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5045
  fi
5046
  ;;
5047
 
5048
newos6*)
5049
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5050
  lt_cv_file_magic_cmd=/usr/bin/file
5051
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5052
  ;;
5053
 
5054 82 jeremybenn
*nto* | *qnx*)
5055
  lt_cv_deplibs_check_method=pass_all
5056 19 jeremybenn
  ;;
5057
 
5058
openbsd*)
5059 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5060 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5061
  else
5062
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5063
  fi
5064
  ;;
5065
 
5066
osf3* | osf4* | osf5*)
5067
  lt_cv_deplibs_check_method=pass_all
5068
  ;;
5069
 
5070
rdos*)
5071
  lt_cv_deplibs_check_method=pass_all
5072
  ;;
5073
 
5074
solaris*)
5075
  lt_cv_deplibs_check_method=pass_all
5076
  ;;
5077
 
5078 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5079
  lt_cv_deplibs_check_method=pass_all
5080
  ;;
5081
 
5082 19 jeremybenn
sysv4 | sysv4.3*)
5083
  case $host_vendor in
5084
  motorola)
5085
    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]'
5086
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5087
    ;;
5088
  ncr)
5089
    lt_cv_deplibs_check_method=pass_all
5090
    ;;
5091
  sequent)
5092
    lt_cv_file_magic_cmd='/bin/file'
5093
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5094
    ;;
5095
  sni)
5096
    lt_cv_file_magic_cmd='/bin/file'
5097
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5098
    lt_cv_file_magic_test_file=/lib/libc.so
5099
    ;;
5100
  siemens)
5101
    lt_cv_deplibs_check_method=pass_all
5102
    ;;
5103
  pc)
5104
    lt_cv_deplibs_check_method=pass_all
5105
    ;;
5106
  esac
5107
  ;;
5108
 
5109 82 jeremybenn
tpf*)
5110 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5111
  ;;
5112
esac
5113
 
5114
fi
5115 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5116 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5117 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5118
deplibs_check_method=$lt_cv_deplibs_check_method
5119
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5120
 
5121
 
5122
 
5123
 
5124 82 jeremybenn
 
5125
 
5126
 
5127
 
5128
 
5129
 
5130
 
5131
 
5132
if test -n "$ac_tool_prefix"; then
5133
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5134
set dummy ${ac_tool_prefix}ar; ac_word=$2
5135 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5136 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5137 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
5138 82 jeremybenn
  $as_echo_n "(cached) " >&6
5139
else
5140
  if test -n "$AR"; then
5141
  ac_cv_prog_AR="$AR" # Let the user override the test.
5142
else
5143
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144
for as_dir in $PATH
5145
do
5146
  IFS=$as_save_IFS
5147
  test -z "$as_dir" && as_dir=.
5148 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5149 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5151 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 82 jeremybenn
    break 2
5153
  fi
5154
done
5155 346 jeremybenn
  done
5156 82 jeremybenn
IFS=$as_save_IFS
5157
 
5158
fi
5159
fi
5160
AR=$ac_cv_prog_AR
5161
if test -n "$AR"; then
5162 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5163 82 jeremybenn
$as_echo "$AR" >&6; }
5164
else
5165 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 82 jeremybenn
$as_echo "no" >&6; }
5167
fi
5168
 
5169
 
5170
fi
5171
if test -z "$ac_cv_prog_AR"; then
5172
  ac_ct_AR=$AR
5173
  # Extract the first word of "ar", so it can be a program name with args.
5174
set dummy ar; ac_word=$2
5175 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5177 625 jeremybenn
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5178 82 jeremybenn
  $as_echo_n "(cached) " >&6
5179
else
5180
  if test -n "$ac_ct_AR"; then
5181
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5182
else
5183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184
for as_dir in $PATH
5185
do
5186
  IFS=$as_save_IFS
5187
  test -z "$as_dir" && as_dir=.
5188 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5189 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190
    ac_cv_prog_ac_ct_AR="ar"
5191 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 82 jeremybenn
    break 2
5193
  fi
5194
done
5195 346 jeremybenn
  done
5196 82 jeremybenn
IFS=$as_save_IFS
5197
 
5198
fi
5199
fi
5200
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5201
if test -n "$ac_ct_AR"; then
5202 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5203 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5204
else
5205 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 82 jeremybenn
$as_echo "no" >&6; }
5207
fi
5208
 
5209
  if test "x$ac_ct_AR" = x; then
5210
    AR="false"
5211
  else
5212
    case $cross_compiling:$ac_tool_warned in
5213
yes:)
5214 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216
ac_tool_warned=yes ;;
5217
esac
5218
    AR=$ac_ct_AR
5219
  fi
5220
else
5221
  AR="$ac_cv_prog_AR"
5222
fi
5223
 
5224
test -z "$AR" && AR=ar
5225
test -z "$AR_FLAGS" && AR_FLAGS=cru
5226
 
5227
 
5228
 
5229
 
5230
 
5231
 
5232
 
5233
 
5234
 
5235
 
5236
 
5237
if test -n "$ac_tool_prefix"; then
5238
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5239
set dummy ${ac_tool_prefix}strip; ac_word=$2
5240 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5242 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
5243 82 jeremybenn
  $as_echo_n "(cached) " >&6
5244
else
5245
  if test -n "$STRIP"; then
5246
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5247
else
5248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249
for as_dir in $PATH
5250
do
5251
  IFS=$as_save_IFS
5252
  test -z "$as_dir" && as_dir=.
5253 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5254 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5256 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 82 jeremybenn
    break 2
5258
  fi
5259
done
5260 346 jeremybenn
  done
5261 82 jeremybenn
IFS=$as_save_IFS
5262
 
5263
fi
5264
fi
5265
STRIP=$ac_cv_prog_STRIP
5266
if test -n "$STRIP"; then
5267 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5268 82 jeremybenn
$as_echo "$STRIP" >&6; }
5269
else
5270 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 82 jeremybenn
$as_echo "no" >&6; }
5272
fi
5273
 
5274
 
5275
fi
5276
if test -z "$ac_cv_prog_STRIP"; then
5277
  ac_ct_STRIP=$STRIP
5278
  # Extract the first word of "strip", so it can be a program name with args.
5279
set dummy strip; ac_word=$2
5280 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5282 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5283 82 jeremybenn
  $as_echo_n "(cached) " >&6
5284
else
5285
  if test -n "$ac_ct_STRIP"; then
5286
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5287
else
5288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289
for as_dir in $PATH
5290
do
5291
  IFS=$as_save_IFS
5292
  test -z "$as_dir" && as_dir=.
5293 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5294 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295
    ac_cv_prog_ac_ct_STRIP="strip"
5296 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 82 jeremybenn
    break 2
5298
  fi
5299
done
5300 346 jeremybenn
  done
5301 82 jeremybenn
IFS=$as_save_IFS
5302
 
5303
fi
5304
fi
5305
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5306
if test -n "$ac_ct_STRIP"; then
5307 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5308 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5309
else
5310 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 82 jeremybenn
$as_echo "no" >&6; }
5312
fi
5313
 
5314
  if test "x$ac_ct_STRIP" = x; then
5315
    STRIP=":"
5316
  else
5317
    case $cross_compiling:$ac_tool_warned in
5318
yes:)
5319 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321
ac_tool_warned=yes ;;
5322
esac
5323
    STRIP=$ac_ct_STRIP
5324
  fi
5325
else
5326
  STRIP="$ac_cv_prog_STRIP"
5327
fi
5328
 
5329
test -z "$STRIP" && STRIP=:
5330
 
5331
 
5332
 
5333
 
5334
 
5335
 
5336
if test -n "$ac_tool_prefix"; then
5337
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5338
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5339 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5341 625 jeremybenn
if ${ac_cv_prog_RANLIB+:} false; then :
5342 82 jeremybenn
  $as_echo_n "(cached) " >&6
5343
else
5344
  if test -n "$RANLIB"; then
5345
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5346
else
5347
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348
for as_dir in $PATH
5349
do
5350
  IFS=$as_save_IFS
5351
  test -z "$as_dir" && as_dir=.
5352 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5353 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5355 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 82 jeremybenn
    break 2
5357
  fi
5358
done
5359 346 jeremybenn
  done
5360 82 jeremybenn
IFS=$as_save_IFS
5361
 
5362
fi
5363
fi
5364
RANLIB=$ac_cv_prog_RANLIB
5365
if test -n "$RANLIB"; then
5366 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5367 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5368
else
5369 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 82 jeremybenn
$as_echo "no" >&6; }
5371
fi
5372
 
5373
 
5374
fi
5375
if test -z "$ac_cv_prog_RANLIB"; then
5376
  ac_ct_RANLIB=$RANLIB
5377
  # Extract the first word of "ranlib", so it can be a program name with args.
5378
set dummy ranlib; ac_word=$2
5379 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5381 625 jeremybenn
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5382 82 jeremybenn
  $as_echo_n "(cached) " >&6
5383
else
5384
  if test -n "$ac_ct_RANLIB"; then
5385
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5386
else
5387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388
for as_dir in $PATH
5389
do
5390
  IFS=$as_save_IFS
5391
  test -z "$as_dir" && as_dir=.
5392 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5393 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5395 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 82 jeremybenn
    break 2
5397
  fi
5398
done
5399 346 jeremybenn
  done
5400 82 jeremybenn
IFS=$as_save_IFS
5401
 
5402
fi
5403
fi
5404
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5405
if test -n "$ac_ct_RANLIB"; then
5406 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5407 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5408
else
5409 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 82 jeremybenn
$as_echo "no" >&6; }
5411
fi
5412
 
5413
  if test "x$ac_ct_RANLIB" = x; then
5414
    RANLIB=":"
5415
  else
5416
    case $cross_compiling:$ac_tool_warned in
5417
yes:)
5418 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420
ac_tool_warned=yes ;;
5421
esac
5422
    RANLIB=$ac_ct_RANLIB
5423
  fi
5424
else
5425
  RANLIB="$ac_cv_prog_RANLIB"
5426
fi
5427
 
5428
test -z "$RANLIB" && RANLIB=:
5429
 
5430
 
5431
 
5432
 
5433
 
5434
 
5435
# Determine commands to create old-style static archives.
5436
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5437
old_postinstall_cmds='chmod 644 $oldlib'
5438
old_postuninstall_cmds=
5439
 
5440
if test -n "$RANLIB"; then
5441
  case $host_os in
5442
  openbsd*)
5443
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5444
    ;;
5445
  *)
5446
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5447
    ;;
5448
  esac
5449
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5450
fi
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465
 
5466
 
5467
 
5468
 
5469
 
5470
 
5471
 
5472
 
5473
 
5474
 
5475
 
5476
 
5477
 
5478
 
5479
 
5480
 
5481
 
5482
 
5483
 
5484
 
5485 19 jeremybenn
# If no C compiler was specified, use CC.
5486
LTCC=${LTCC-"$CC"}
5487
 
5488
# If no C compiler flags were specified, use CFLAGS.
5489
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5490
 
5491
# Allow CC to be a program name with arguments.
5492
compiler=$CC
5493
 
5494
 
5495 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5496 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5497 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5498 625 jeremybenn
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5499 82 jeremybenn
  $as_echo_n "(cached) " >&6
5500
else
5501
 
5502
# These are sane defaults that work on at least a few old systems.
5503
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5504
 
5505
# Character class describing NM global symbol codes.
5506
symcode='[BCDEGRST]'
5507
 
5508
# Regexp to match symbols that can be accessed directly from C.
5509
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5510
 
5511
# Define system-specific variables.
5512
case $host_os in
5513
aix*)
5514
  symcode='[BCDT]'
5515
  ;;
5516
cygwin* | mingw* | pw32* | cegcc*)
5517
  symcode='[ABCDGISTW]'
5518
  ;;
5519
hpux*)
5520
  if test "$host_cpu" = ia64; then
5521
    symcode='[ABCDEGRST]'
5522
  fi
5523
  ;;
5524
irix* | nonstopux*)
5525
  symcode='[BCDEGRST]'
5526
  ;;
5527
osf*)
5528
  symcode='[BCDEGQRST]'
5529
  ;;
5530
solaris*)
5531
  symcode='[BDRT]'
5532
  ;;
5533
sco3.2v5*)
5534
  symcode='[DT]'
5535
  ;;
5536
sysv4.2uw2*)
5537
  symcode='[DT]'
5538
  ;;
5539
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5540
  symcode='[ABDT]'
5541
  ;;
5542
sysv4)
5543
  symcode='[DFNSTU]'
5544
  ;;
5545
esac
5546
 
5547
# If we're using GNU nm, then use its standard symbol codes.
5548
case `$NM -V 2>&1` in
5549
*GNU* | *'with BFD'*)
5550
  symcode='[ABCDGIRSTW]' ;;
5551
esac
5552
 
5553
# Transform an extracted symbol line into a proper C declaration.
5554
# Some systems (esp. on ia64) link data and code symbols differently,
5555
# so use this general approach.
5556
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5557
 
5558
# Transform an extracted symbol line into symbol name and symbol address
5559
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5560
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'"
5561
 
5562
# Handle CRLF in mingw tool chain
5563
opt_cr=
5564
case $build_os in
5565
mingw*)
5566
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5567
  ;;
5568
esac
5569
 
5570
# Try without a prefix underscore, then with it.
5571
for ac_symprfx in "" "_"; do
5572
 
5573
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5574
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5575
 
5576
  # Write the raw and C identifiers.
5577
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5578
    # Fake it for dumpbin and say T for any non-static function
5579
    # and D for any global variable.
5580
    # Also find C++ and __fastcall symbols from MSVC++,
5581
    # which start with @ or ?.
5582
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5583
"     {last_section=section; section=\$ 3};"\
5584
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5585
"     \$ 0!~/External *\|/{next};"\
5586
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5587
"     {if(hide[section]) next};"\
5588
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5589
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5590
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5591
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5592
"     ' prfx=^$ac_symprfx"
5593
  else
5594
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5595
  fi
5596
 
5597
  # Check to see that the pipe works correctly.
5598
  pipe_works=no
5599
 
5600
  rm -f conftest*
5601
  cat > conftest.$ac_ext <<_LT_EOF
5602
#ifdef __cplusplus
5603
extern "C" {
5604
#endif
5605
char nm_test_var;
5606
void nm_test_func(void);
5607
void nm_test_func(void){}
5608
#ifdef __cplusplus
5609
}
5610
#endif
5611
int main(){nm_test_var='a';nm_test_func();return(0);}
5612
_LT_EOF
5613
 
5614 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5615 82 jeremybenn
  (eval $ac_compile) 2>&5
5616
  ac_status=$?
5617 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618
  test $ac_status = 0; }; then
5619 82 jeremybenn
    # Now try to grab the symbols.
5620
    nlist=conftest.nm
5621 346 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5622 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5623
  ac_status=$?
5624 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5625
  test $ac_status = 0; } && test -s "$nlist"; then
5626 82 jeremybenn
      # Try sorting and uniquifying the output.
5627
      if sort "$nlist" | uniq > "$nlist"T; then
5628
        mv -f "$nlist"T "$nlist"
5629
      else
5630
        rm -f "$nlist"T
5631
      fi
5632
 
5633
      # Make sure that we snagged all the symbols we need.
5634
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5635
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5636
          cat <<_LT_EOF > conftest.$ac_ext
5637
#ifdef __cplusplus
5638
extern "C" {
5639
#endif
5640
 
5641
_LT_EOF
5642
          # Now generate the symbol file.
5643
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5644
 
5645
          cat <<_LT_EOF >> conftest.$ac_ext
5646
 
5647
/* The mapping between symbol names and symbols.  */
5648
const struct {
5649
  const char *name;
5650
  void       *address;
5651
}
5652
lt__PROGRAM__LTX_preloaded_symbols[] =
5653
{
5654
  { "@PROGRAM@", (void *) 0 },
5655
_LT_EOF
5656
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5657
          cat <<\_LT_EOF >> conftest.$ac_ext
5658
  {0, (void *) 0}
5659
};
5660
 
5661
/* This works around a problem in FreeBSD linker */
5662
#ifdef FREEBSD_WORKAROUND
5663
static const void *lt_preloaded_setup() {
5664
  return lt__PROGRAM__LTX_preloaded_symbols;
5665
}
5666
#endif
5667
 
5668
#ifdef __cplusplus
5669
}
5670
#endif
5671
_LT_EOF
5672
          # Now try linking the two files.
5673
          mv conftest.$ac_objext conftstm.$ac_objext
5674
          lt_save_LIBS="$LIBS"
5675
          lt_save_CFLAGS="$CFLAGS"
5676
          LIBS="conftstm.$ac_objext"
5677
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5678 346 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5679 82 jeremybenn
  (eval $ac_link) 2>&5
5680
  ac_status=$?
5681 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5683 82 jeremybenn
            pipe_works=yes
5684
          fi
5685
          LIBS="$lt_save_LIBS"
5686
          CFLAGS="$lt_save_CFLAGS"
5687
        else
5688
          echo "cannot find nm_test_func in $nlist" >&5
5689
        fi
5690
      else
5691
        echo "cannot find nm_test_var in $nlist" >&5
5692
      fi
5693
    else
5694
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5695
    fi
5696
  else
5697
    echo "$progname: failed program was:" >&5
5698
    cat conftest.$ac_ext >&5
5699
  fi
5700
  rm -rf conftest* conftst*
5701
 
5702
  # Do not use the global_symbol_pipe unless it works.
5703
  if test "$pipe_works" = yes; then
5704
    break
5705
  else
5706
    lt_cv_sys_global_symbol_pipe=
5707
  fi
5708
done
5709
 
5710
fi
5711
 
5712
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5713
  lt_cv_sys_global_symbol_to_cdecl=
5714
fi
5715
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5716 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5717 82 jeremybenn
$as_echo "failed" >&6; }
5718
else
5719 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5720 82 jeremybenn
$as_echo "ok" >&6; }
5721
fi
5722
 
5723
 
5724
 
5725
 
5726
 
5727
 
5728
 
5729
 
5730
 
5731
 
5732
 
5733
 
5734
 
5735
 
5736
 
5737
 
5738
 
5739
 
5740
 
5741
 
5742
 
5743
 
5744 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5745 346 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5746 19 jeremybenn
  enableval=$enable_libtool_lock;
5747
fi
5748
 
5749
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5750
 
5751
# Some flags need to be propagated to the compiler or linker for good
5752
# libtool support.
5753
case $host in
5754
ia64-*-hpux*)
5755
  # Find out which ABI we are using.
5756
  echo 'int i;' > conftest.$ac_ext
5757 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5758 19 jeremybenn
  (eval $ac_compile) 2>&5
5759
  ac_status=$?
5760 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761
  test $ac_status = 0; }; then
5762 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5763 82 jeremybenn
      *ELF-32*)
5764
        HPUX_IA64_MODE="32"
5765
        ;;
5766
      *ELF-64*)
5767
        HPUX_IA64_MODE="64"
5768
        ;;
5769 19 jeremybenn
    esac
5770
  fi
5771
  rm -rf conftest*
5772
  ;;
5773
*-*-irix6*)
5774
  # Find out which ABI we are using.
5775 625 jeremybenn
  echo '#line 5775 "configure"' > conftest.$ac_ext
5776 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5777 19 jeremybenn
  (eval $ac_compile) 2>&5
5778
  ac_status=$?
5779 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5780
  test $ac_status = 0; }; then
5781 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5782
      case `/usr/bin/file conftest.$ac_objext` in
5783
        *32-bit*)
5784
          LD="${LD-ld} -melf32bsmip"
5785
          ;;
5786
        *N32*)
5787
          LD="${LD-ld} -melf32bmipn32"
5788
          ;;
5789
        *64-bit*)
5790
          LD="${LD-ld} -melf64bmip"
5791
        ;;
5792
      esac
5793
    else
5794
      case `/usr/bin/file conftest.$ac_objext` in
5795
        *32-bit*)
5796
          LD="${LD-ld} -32"
5797
          ;;
5798
        *N32*)
5799
          LD="${LD-ld} -n32"
5800
          ;;
5801
        *64-bit*)
5802
          LD="${LD-ld} -64"
5803
          ;;
5804
      esac
5805
    fi
5806 19 jeremybenn
  fi
5807
  rm -rf conftest*
5808
  ;;
5809
 
5810
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5811 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5812 19 jeremybenn
  # Find out which ABI we are using.
5813
  echo 'int i;' > conftest.$ac_ext
5814 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5815 19 jeremybenn
  (eval $ac_compile) 2>&5
5816
  ac_status=$?
5817 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5818
  test $ac_status = 0; }; then
5819 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5820 82 jeremybenn
      *32-bit*)
5821
        case $host in
5822
          x86_64-*kfreebsd*-gnu)
5823
            LD="${LD-ld} -m elf_i386_fbsd"
5824
            ;;
5825
          x86_64-*linux*)
5826
            LD="${LD-ld} -m elf_i386"
5827
            ;;
5828
          ppc64-*linux*|powerpc64-*linux*)
5829
            LD="${LD-ld} -m elf32ppclinux"
5830
            ;;
5831
          s390x-*linux*)
5832
            LD="${LD-ld} -m elf_s390"
5833
            ;;
5834
          sparc64-*linux*)
5835
            LD="${LD-ld} -m elf32_sparc"
5836
            ;;
5837
        esac
5838
        ;;
5839
      *64-bit*)
5840
        case $host in
5841
          x86_64-*kfreebsd*-gnu)
5842
            LD="${LD-ld} -m elf_x86_64_fbsd"
5843
            ;;
5844
          x86_64-*linux*)
5845
            LD="${LD-ld} -m elf_x86_64"
5846
            ;;
5847
          ppc*-*linux*|powerpc*-*linux*)
5848
            LD="${LD-ld} -m elf64ppc"
5849
            ;;
5850
          s390*-*linux*|s390*-*tpf*)
5851
            LD="${LD-ld} -m elf64_s390"
5852
            ;;
5853
          sparc*-*linux*)
5854
            LD="${LD-ld} -m elf64_sparc"
5855
            ;;
5856
        esac
5857
        ;;
5858 19 jeremybenn
    esac
5859
  fi
5860
  rm -rf conftest*
5861
  ;;
5862
 
5863
*-*-sco3.2v5*)
5864
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5865
  SAVE_CFLAGS="$CFLAGS"
5866
  CFLAGS="$CFLAGS -belf"
5867 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5868 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5869 625 jeremybenn
if ${lt_cv_cc_needs_belf+:} false; then :
5870 82 jeremybenn
  $as_echo_n "(cached) " >&6
5871 19 jeremybenn
else
5872
  ac_ext=c
5873
ac_cpp='$CPP $CPPFLAGS'
5874
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
 
5878 346 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 19 jeremybenn
/* end confdefs.h.  */
5880
 
5881
int
5882
main ()
5883
{
5884
 
5885
  ;
5886
  return 0;
5887
}
5888
_ACEOF
5889 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5890 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5891
else
5892 346 jeremybenn
  lt_cv_cc_needs_belf=no
5893 19 jeremybenn
fi
5894 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5895
    conftest$ac_exeext conftest.$ac_ext
5896 19 jeremybenn
     ac_ext=c
5897
ac_cpp='$CPP $CPPFLAGS'
5898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901
 
5902
fi
5903 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5904 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5905 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5906
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5907
    CFLAGS="$SAVE_CFLAGS"
5908
  fi
5909
  ;;
5910
sparc*-*solaris*)
5911
  # Find out which ABI we are using.
5912
  echo 'int i;' > conftest.$ac_ext
5913 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5914 19 jeremybenn
  (eval $ac_compile) 2>&5
5915
  ac_status=$?
5916 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5917
  test $ac_status = 0; }; then
5918 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5919
    *64-bit*)
5920
      case $lt_cv_prog_gnu_ld in
5921
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5922 82 jeremybenn
      *)
5923
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5924
          LD="${LD-ld} -64"
5925
        fi
5926
        ;;
5927 19 jeremybenn
      esac
5928
      ;;
5929
    esac
5930
  fi
5931
  rm -rf conftest*
5932
  ;;
5933 82 jeremybenn
esac
5934 19 jeremybenn
 
5935 82 jeremybenn
need_locks="$enable_libtool_lock"
5936 19 jeremybenn
 
5937 82 jeremybenn
 
5938
  case $host_os in
5939
    rhapsody* | darwin*)
5940
    if test -n "$ac_tool_prefix"; then
5941
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5942
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5943 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5945 625 jeremybenn
if ${ac_cv_prog_DSYMUTIL+:} false; then :
5946 82 jeremybenn
  $as_echo_n "(cached) " >&6
5947
else
5948
  if test -n "$DSYMUTIL"; then
5949
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5950
else
5951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952
for as_dir in $PATH
5953
do
5954
  IFS=$as_save_IFS
5955
  test -z "$as_dir" && as_dir=.
5956 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5957 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5959 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 82 jeremybenn
    break 2
5961
  fi
5962
done
5963 346 jeremybenn
  done
5964 82 jeremybenn
IFS=$as_save_IFS
5965
 
5966
fi
5967
fi
5968
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5969
if test -n "$DSYMUTIL"; then
5970 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5971 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5972
else
5973 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 82 jeremybenn
$as_echo "no" >&6; }
5975
fi
5976
 
5977
 
5978
fi
5979
if test -z "$ac_cv_prog_DSYMUTIL"; then
5980
  ac_ct_DSYMUTIL=$DSYMUTIL
5981
  # Extract the first word of "dsymutil", so it can be a program name with args.
5982
set dummy dsymutil; ac_word=$2
5983 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5985 625 jeremybenn
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5986 82 jeremybenn
  $as_echo_n "(cached) " >&6
5987
else
5988
  if test -n "$ac_ct_DSYMUTIL"; then
5989
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5990
else
5991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992
for as_dir in $PATH
5993
do
5994
  IFS=$as_save_IFS
5995
  test -z "$as_dir" && as_dir=.
5996 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5997 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5998
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5999 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6000 82 jeremybenn
    break 2
6001
  fi
6002
done
6003 346 jeremybenn
  done
6004 82 jeremybenn
IFS=$as_save_IFS
6005
 
6006
fi
6007
fi
6008
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6009
if test -n "$ac_ct_DSYMUTIL"; then
6010 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6011 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6012
else
6013 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 82 jeremybenn
$as_echo "no" >&6; }
6015
fi
6016
 
6017
  if test "x$ac_ct_DSYMUTIL" = x; then
6018
    DSYMUTIL=":"
6019
  else
6020
    case $cross_compiling:$ac_tool_warned in
6021
yes:)
6022 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024
ac_tool_warned=yes ;;
6025 19 jeremybenn
esac
6026 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6027
  fi
6028
else
6029
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6030
fi
6031 19 jeremybenn
 
6032 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6033
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6034
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6035 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6037 625 jeremybenn
if ${ac_cv_prog_NMEDIT+:} false; then :
6038 82 jeremybenn
  $as_echo_n "(cached) " >&6
6039
else
6040
  if test -n "$NMEDIT"; then
6041
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6042
else
6043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044
for as_dir in $PATH
6045
do
6046
  IFS=$as_save_IFS
6047
  test -z "$as_dir" && as_dir=.
6048 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6049 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6051 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 82 jeremybenn
    break 2
6053
  fi
6054
done
6055 346 jeremybenn
  done
6056 82 jeremybenn
IFS=$as_save_IFS
6057 19 jeremybenn
 
6058 82 jeremybenn
fi
6059
fi
6060
NMEDIT=$ac_cv_prog_NMEDIT
6061
if test -n "$NMEDIT"; then
6062 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6063 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6064
else
6065 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 82 jeremybenn
$as_echo "no" >&6; }
6067
fi
6068 19 jeremybenn
 
6069 82 jeremybenn
 
6070
fi
6071
if test -z "$ac_cv_prog_NMEDIT"; then
6072
  ac_ct_NMEDIT=$NMEDIT
6073
  # Extract the first word of "nmedit", so it can be a program name with args.
6074
set dummy nmedit; ac_word=$2
6075 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6077 625 jeremybenn
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6078 82 jeremybenn
  $as_echo_n "(cached) " >&6
6079
else
6080
  if test -n "$ac_ct_NMEDIT"; then
6081
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6082
else
6083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084
for as_dir in $PATH
6085
do
6086
  IFS=$as_save_IFS
6087
  test -z "$as_dir" && as_dir=.
6088 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6089 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6091 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 82 jeremybenn
    break 2
6093
  fi
6094
done
6095 346 jeremybenn
  done
6096 82 jeremybenn
IFS=$as_save_IFS
6097
 
6098
fi
6099
fi
6100
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6101
if test -n "$ac_ct_NMEDIT"; then
6102 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6103 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6104
else
6105 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 82 jeremybenn
$as_echo "no" >&6; }
6107
fi
6108
 
6109
  if test "x$ac_ct_NMEDIT" = x; then
6110
    NMEDIT=":"
6111
  else
6112
    case $cross_compiling:$ac_tool_warned in
6113
yes:)
6114 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116
ac_tool_warned=yes ;;
6117
esac
6118
    NMEDIT=$ac_ct_NMEDIT
6119
  fi
6120
else
6121
  NMEDIT="$ac_cv_prog_NMEDIT"
6122
fi
6123
 
6124
    if test -n "$ac_tool_prefix"; then
6125
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6126
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6127 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6129 625 jeremybenn
if ${ac_cv_prog_LIPO+:} false; then :
6130 82 jeremybenn
  $as_echo_n "(cached) " >&6
6131
else
6132
  if test -n "$LIPO"; then
6133
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6134
else
6135
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136
for as_dir in $PATH
6137
do
6138
  IFS=$as_save_IFS
6139
  test -z "$as_dir" && as_dir=.
6140 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6141 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6143 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 82 jeremybenn
    break 2
6145
  fi
6146
done
6147 346 jeremybenn
  done
6148 82 jeremybenn
IFS=$as_save_IFS
6149
 
6150
fi
6151
fi
6152
LIPO=$ac_cv_prog_LIPO
6153
if test -n "$LIPO"; then
6154 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6155 82 jeremybenn
$as_echo "$LIPO" >&6; }
6156
else
6157 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 82 jeremybenn
$as_echo "no" >&6; }
6159
fi
6160
 
6161
 
6162
fi
6163
if test -z "$ac_cv_prog_LIPO"; then
6164
  ac_ct_LIPO=$LIPO
6165
  # Extract the first word of "lipo", so it can be a program name with args.
6166
set dummy lipo; ac_word=$2
6167 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6169 625 jeremybenn
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6170 82 jeremybenn
  $as_echo_n "(cached) " >&6
6171
else
6172
  if test -n "$ac_ct_LIPO"; then
6173
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6174
else
6175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176
for as_dir in $PATH
6177
do
6178
  IFS=$as_save_IFS
6179
  test -z "$as_dir" && as_dir=.
6180 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6181 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182
    ac_cv_prog_ac_ct_LIPO="lipo"
6183 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 82 jeremybenn
    break 2
6185
  fi
6186
done
6187 346 jeremybenn
  done
6188 82 jeremybenn
IFS=$as_save_IFS
6189
 
6190
fi
6191
fi
6192
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6193
if test -n "$ac_ct_LIPO"; then
6194 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6195 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6196
else
6197 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 82 jeremybenn
$as_echo "no" >&6; }
6199
fi
6200
 
6201
  if test "x$ac_ct_LIPO" = x; then
6202
    LIPO=":"
6203
  else
6204
    case $cross_compiling:$ac_tool_warned in
6205
yes:)
6206 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208
ac_tool_warned=yes ;;
6209
esac
6210
    LIPO=$ac_ct_LIPO
6211
  fi
6212
else
6213
  LIPO="$ac_cv_prog_LIPO"
6214
fi
6215
 
6216
    if test -n "$ac_tool_prefix"; then
6217
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6218
set dummy ${ac_tool_prefix}otool; ac_word=$2
6219 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6221 625 jeremybenn
if ${ac_cv_prog_OTOOL+:} false; then :
6222 82 jeremybenn
  $as_echo_n "(cached) " >&6
6223
else
6224
  if test -n "$OTOOL"; then
6225
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6226
else
6227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228
for as_dir in $PATH
6229
do
6230
  IFS=$as_save_IFS
6231
  test -z "$as_dir" && as_dir=.
6232 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6233 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6235 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 82 jeremybenn
    break 2
6237
  fi
6238
done
6239 346 jeremybenn
  done
6240 82 jeremybenn
IFS=$as_save_IFS
6241
 
6242
fi
6243
fi
6244
OTOOL=$ac_cv_prog_OTOOL
6245
if test -n "$OTOOL"; then
6246 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6247 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6248
else
6249 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 82 jeremybenn
$as_echo "no" >&6; }
6251
fi
6252
 
6253
 
6254
fi
6255
if test -z "$ac_cv_prog_OTOOL"; then
6256
  ac_ct_OTOOL=$OTOOL
6257
  # Extract the first word of "otool", so it can be a program name with args.
6258
set dummy otool; ac_word=$2
6259 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6261 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6262 82 jeremybenn
  $as_echo_n "(cached) " >&6
6263
else
6264
  if test -n "$ac_ct_OTOOL"; then
6265
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6266
else
6267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268
for as_dir in $PATH
6269
do
6270
  IFS=$as_save_IFS
6271
  test -z "$as_dir" && as_dir=.
6272 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6273 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274
    ac_cv_prog_ac_ct_OTOOL="otool"
6275 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 82 jeremybenn
    break 2
6277
  fi
6278
done
6279 346 jeremybenn
  done
6280 82 jeremybenn
IFS=$as_save_IFS
6281
 
6282
fi
6283
fi
6284
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6285
if test -n "$ac_ct_OTOOL"; then
6286 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6287 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6288
else
6289 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 82 jeremybenn
$as_echo "no" >&6; }
6291
fi
6292
 
6293
  if test "x$ac_ct_OTOOL" = x; then
6294
    OTOOL=":"
6295
  else
6296
    case $cross_compiling:$ac_tool_warned in
6297
yes:)
6298 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300
ac_tool_warned=yes ;;
6301
esac
6302
    OTOOL=$ac_ct_OTOOL
6303
  fi
6304
else
6305
  OTOOL="$ac_cv_prog_OTOOL"
6306
fi
6307
 
6308
    if test -n "$ac_tool_prefix"; then
6309
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6310
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6311 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6313 625 jeremybenn
if ${ac_cv_prog_OTOOL64+:} false; then :
6314 82 jeremybenn
  $as_echo_n "(cached) " >&6
6315
else
6316
  if test -n "$OTOOL64"; then
6317
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6318
else
6319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320
for as_dir in $PATH
6321
do
6322
  IFS=$as_save_IFS
6323
  test -z "$as_dir" && as_dir=.
6324 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6325 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6327 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 82 jeremybenn
    break 2
6329
  fi
6330
done
6331 346 jeremybenn
  done
6332 82 jeremybenn
IFS=$as_save_IFS
6333
 
6334
fi
6335
fi
6336
OTOOL64=$ac_cv_prog_OTOOL64
6337
if test -n "$OTOOL64"; then
6338 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6339 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6340
else
6341 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 82 jeremybenn
$as_echo "no" >&6; }
6343
fi
6344
 
6345
 
6346
fi
6347
if test -z "$ac_cv_prog_OTOOL64"; then
6348
  ac_ct_OTOOL64=$OTOOL64
6349
  # Extract the first word of "otool64", so it can be a program name with args.
6350
set dummy otool64; ac_word=$2
6351 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6353 625 jeremybenn
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6354 82 jeremybenn
  $as_echo_n "(cached) " >&6
6355
else
6356
  if test -n "$ac_ct_OTOOL64"; then
6357
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6358
else
6359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360
for as_dir in $PATH
6361
do
6362
  IFS=$as_save_IFS
6363
  test -z "$as_dir" && as_dir=.
6364 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6365 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6367 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 82 jeremybenn
    break 2
6369
  fi
6370
done
6371 346 jeremybenn
  done
6372 82 jeremybenn
IFS=$as_save_IFS
6373
 
6374
fi
6375
fi
6376
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6377
if test -n "$ac_ct_OTOOL64"; then
6378 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6379 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6380
else
6381 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 82 jeremybenn
$as_echo "no" >&6; }
6383
fi
6384
 
6385
  if test "x$ac_ct_OTOOL64" = x; then
6386
    OTOOL64=":"
6387
  else
6388
    case $cross_compiling:$ac_tool_warned in
6389
yes:)
6390 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392
ac_tool_warned=yes ;;
6393
esac
6394
    OTOOL64=$ac_ct_OTOOL64
6395
  fi
6396
else
6397
  OTOOL64="$ac_cv_prog_OTOOL64"
6398
fi
6399
 
6400
 
6401
 
6402
 
6403
 
6404
 
6405
 
6406
 
6407
 
6408
 
6409
 
6410
 
6411
 
6412
 
6413
 
6414
 
6415
 
6416
 
6417
 
6418
 
6419
 
6420
 
6421
 
6422
 
6423
 
6424
 
6425
 
6426 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6427 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6428 625 jeremybenn
if ${lt_cv_apple_cc_single_mod+:} false; then :
6429 82 jeremybenn
  $as_echo_n "(cached) " >&6
6430
else
6431
  lt_cv_apple_cc_single_mod=no
6432
      if test -z "${LT_MULTI_MODULE}"; then
6433
        # By default we will add the -single_module flag. You can override
6434
        # by either setting the environment variable LT_MULTI_MODULE
6435
        # non-empty at configure time, or by adding -multi_module to the
6436
        # link flags.
6437
        rm -rf libconftest.dylib*
6438
        echo "int foo(void){return 1;}" > conftest.c
6439
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6440
-dynamiclib -Wl,-single_module conftest.c" >&5
6441
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6442
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6443
        _lt_result=$?
6444
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6445
          lt_cv_apple_cc_single_mod=yes
6446
        else
6447
          cat conftest.err >&5
6448
        fi
6449
        rm -rf libconftest.dylib*
6450
        rm -f conftest.*
6451
      fi
6452
fi
6453 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6454 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6455 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6456 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6457 625 jeremybenn
if ${lt_cv_ld_exported_symbols_list+:} false; then :
6458 82 jeremybenn
  $as_echo_n "(cached) " >&6
6459
else
6460
  lt_cv_ld_exported_symbols_list=no
6461
      save_LDFLAGS=$LDFLAGS
6462
      echo "_main" > conftest.sym
6463
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6464 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 82 jeremybenn
/* end confdefs.h.  */
6466
 
6467
int
6468
main ()
6469
{
6470
 
6471
  ;
6472
  return 0;
6473
}
6474
_ACEOF
6475 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6476 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6477
else
6478 346 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6479 82 jeremybenn
fi
6480 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6481
    conftest$ac_exeext conftest.$ac_ext
6482 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6483
 
6484
fi
6485 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6486 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6487
    case $host_os in
6488
    rhapsody* | darwin1.[012])
6489
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6490
    darwin1.*)
6491
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6492
    darwin*) # darwin 5.x on
6493
      # if running on 10.5 or later, the deployment target defaults
6494
      # to the OS version, if on x86, and 10.4, the deployment
6495
      # target defaults to 10.4. Don't you love it?
6496
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6497
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6498
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6499
        10.[012]*)
6500
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6501
        10.*)
6502
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6503
      esac
6504
    ;;
6505
  esac
6506
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6507
      _lt_dar_single_mod='$single_module'
6508
    fi
6509
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6510
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6511
    else
6512
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6513
    fi
6514
    if test "$DSYMUTIL" != ":"; then
6515
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6516
    else
6517
      _lt_dsymutil=
6518
    fi
6519
    ;;
6520
  esac
6521
 
6522 19 jeremybenn
for ac_header in dlfcn.h
6523 346 jeremybenn
do :
6524
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6525
"
6526 625 jeremybenn
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6527 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6528 346 jeremybenn
#define HAVE_DLFCN_H 1
6529 19 jeremybenn
_ACEOF
6530
 
6531
fi
6532
 
6533
done
6534
 
6535
 
6536
 
6537 82 jeremybenn
# Set options
6538 19 jeremybenn
 
6539
 
6540
 
6541 82 jeremybenn
        enable_dlopen=no
6542 19 jeremybenn
 
6543
 
6544 82 jeremybenn
  enable_win32_dll=no
6545 19 jeremybenn
 
6546
 
6547 82 jeremybenn
            # Check whether --enable-shared was given.
6548 346 jeremybenn
if test "${enable_shared+set}" = set; then :
6549 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6550
    case $enableval in
6551
    yes) enable_shared=yes ;;
6552
    no) enable_shared=no ;;
6553
    *)
6554
      enable_shared=no
6555
      # Look at the argument we got.  We use all the common list separators.
6556
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6557
      for pkg in $enableval; do
6558
        IFS="$lt_save_ifs"
6559
        if test "X$pkg" = "X$p"; then
6560
          enable_shared=yes
6561
        fi
6562
      done
6563
      IFS="$lt_save_ifs"
6564
      ;;
6565
    esac
6566 19 jeremybenn
else
6567 82 jeremybenn
  enable_shared=yes
6568 19 jeremybenn
fi
6569
 
6570
 
6571
 
6572
 
6573
 
6574
 
6575
 
6576
 
6577
 
6578 82 jeremybenn
  # Check whether --enable-static was given.
6579 346 jeremybenn
if test "${enable_static+set}" = set; then :
6580 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6581
    case $enableval in
6582
    yes) enable_static=yes ;;
6583
    no) enable_static=no ;;
6584
    *)
6585
     enable_static=no
6586
      # Look at the argument we got.  We use all the common list separators.
6587
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6588
      for pkg in $enableval; do
6589
        IFS="$lt_save_ifs"
6590
        if test "X$pkg" = "X$p"; then
6591
          enable_static=yes
6592
        fi
6593
      done
6594
      IFS="$lt_save_ifs"
6595
      ;;
6596
    esac
6597 19 jeremybenn
else
6598 82 jeremybenn
  enable_static=yes
6599 19 jeremybenn
fi
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606
 
6607
 
6608
 
6609
 
6610 82 jeremybenn
# Check whether --with-pic was given.
6611 346 jeremybenn
if test "${with_pic+set}" = set; then :
6612 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6613 19 jeremybenn
else
6614 82 jeremybenn
  pic_mode=default
6615 19 jeremybenn
fi
6616
 
6617
 
6618 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6619 19 jeremybenn
 
6620
 
6621
 
6622
 
6623
 
6624
 
6625
 
6626 82 jeremybenn
  # Check whether --enable-fast-install was given.
6627 346 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6628 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6629
    case $enableval in
6630
    yes) enable_fast_install=yes ;;
6631
    no) enable_fast_install=no ;;
6632
    *)
6633
      enable_fast_install=no
6634
      # Look at the argument we got.  We use all the common list separators.
6635
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6636
      for pkg in $enableval; do
6637
        IFS="$lt_save_ifs"
6638
        if test "X$pkg" = "X$p"; then
6639
          enable_fast_install=yes
6640
        fi
6641
      done
6642
      IFS="$lt_save_ifs"
6643
      ;;
6644
    esac
6645 19 jeremybenn
else
6646 82 jeremybenn
  enable_fast_install=yes
6647 19 jeremybenn
fi
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
 
6657
 
6658
 
6659 82 jeremybenn
# This can be used to rebuild libtool when needed
6660
LIBTOOL_DEPS="$ltmain"
6661 19 jeremybenn
 
6662 82 jeremybenn
# Always use our own libtool.
6663
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6664 19 jeremybenn
 
6665
 
6666
 
6667
 
6668
 
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679
 
6680
 
6681
 
6682
 
6683
 
6684
 
6685
 
6686
 
6687
 
6688
 
6689 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6690 19 jeremybenn
 
6691
 
6692
 
6693
 
6694
 
6695
 
6696
 
6697
 
6698
 
6699
 
6700
 
6701
 
6702
 
6703
 
6704 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6705
   setopt NO_GLOB_SUBST
6706 19 jeremybenn
fi
6707
 
6708 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6709 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6710 625 jeremybenn
if ${lt_cv_objdir+:} false; then :
6711 82 jeremybenn
  $as_echo_n "(cached) " >&6
6712 19 jeremybenn
else
6713
  rm -f .libs 2>/dev/null
6714
mkdir .libs 2>/dev/null
6715
if test -d .libs; then
6716
  lt_cv_objdir=.libs
6717
else
6718
  # MS-DOS does not allow filenames that begin with a dot.
6719
  lt_cv_objdir=_libs
6720
fi
6721
rmdir .libs 2>/dev/null
6722
fi
6723 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6724 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6725 19 jeremybenn
objdir=$lt_cv_objdir
6726
 
6727
 
6728
 
6729
 
6730
 
6731 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6732
#define LT_OBJDIR "$lt_cv_objdir/"
6733
_ACEOF
6734
 
6735
 
6736
 
6737
 
6738
 
6739
 
6740
 
6741
 
6742
 
6743
 
6744
 
6745
 
6746
 
6747
 
6748
 
6749
 
6750
 
6751 19 jeremybenn
case $host_os in
6752
aix3*)
6753
  # AIX sometimes has problems with the GCC collect2 program.  For some
6754
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6755
  # vanish in a puff of smoke.
6756
  if test "X${COLLECT_NAMES+set}" != Xset; then
6757
    COLLECT_NAMES=
6758
    export COLLECT_NAMES
6759
  fi
6760
  ;;
6761
esac
6762
 
6763
# Sed substitution that helps us do robust quoting.  It backslashifies
6764
# metacharacters that are still active within double-quoted strings.
6765 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6766 19 jeremybenn
 
6767
# Same as above, but do not quote variable references.
6768 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6769 19 jeremybenn
 
6770
# Sed substitution to delay expansion of an escaped shell variable in a
6771
# double_quote_subst'ed string.
6772
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6773
 
6774 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6775
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6776
 
6777 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6778
no_glob_subst='s/\*/\\\*/g'
6779
 
6780
# Global variables:
6781 82 jeremybenn
ofile=libtool
6782 19 jeremybenn
can_build_shared=yes
6783
 
6784
# All known linkers require a `.a' archive for static linking (except MSVC,
6785
# which needs '.lib').
6786
libext=a
6787 82 jeremybenn
 
6788 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6789
 
6790
old_CC="$CC"
6791
old_CFLAGS="$CFLAGS"
6792
 
6793
# Set sane defaults for various variables
6794
test -z "$CC" && CC=cc
6795
test -z "$LTCC" && LTCC=$CC
6796
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6797
test -z "$LD" && LD=ld
6798
test -z "$ac_objext" && ac_objext=o
6799
 
6800
for cc_temp in $compiler""; do
6801
  case $cc_temp in
6802
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6803
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6804
    \-*) ;;
6805
    *) break;;
6806
  esac
6807
done
6808 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6809 19 jeremybenn
 
6810
 
6811
# Only perform the check for file, if the check method requires it
6812 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6813 19 jeremybenn
case $deplibs_check_method in
6814
file_magic*)
6815
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6816 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6817 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6818 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6819 82 jeremybenn
  $as_echo_n "(cached) " >&6
6820 19 jeremybenn
else
6821
  case $MAGIC_CMD in
6822
[\\/*] |  ?:[\\/]*)
6823
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6824
  ;;
6825
*)
6826
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6827
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6828
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6829
  for ac_dir in $ac_dummy; do
6830
    IFS="$lt_save_ifs"
6831
    test -z "$ac_dir" && ac_dir=.
6832
    if test -f $ac_dir/${ac_tool_prefix}file; then
6833
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6834
      if test -n "$file_magic_test_file"; then
6835
        case $deplibs_check_method in
6836
        "file_magic "*)
6837
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6838
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6839
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6840
            $EGREP "$file_magic_regex" > /dev/null; then
6841
            :
6842
          else
6843 82 jeremybenn
            cat <<_LT_EOF 1>&2
6844 19 jeremybenn
 
6845
*** Warning: the command libtool uses to detect shared libraries,
6846
*** $file_magic_cmd, produces output that libtool cannot recognize.
6847
*** The result is that libtool may fail to recognize shared libraries
6848
*** as such.  This will affect the creation of libtool libraries that
6849
*** depend on shared libraries, but programs linked with such libtool
6850
*** libraries will work regardless of this problem.  Nevertheless, you
6851
*** may want to report the problem to your system manager and/or to
6852
*** bug-libtool@gnu.org
6853
 
6854 82 jeremybenn
_LT_EOF
6855 19 jeremybenn
          fi ;;
6856
        esac
6857
      fi
6858
      break
6859
    fi
6860
  done
6861
  IFS="$lt_save_ifs"
6862
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6863
  ;;
6864
esac
6865
fi
6866
 
6867
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6868
if test -n "$MAGIC_CMD"; then
6869 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6870 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6871 19 jeremybenn
else
6872 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 82 jeremybenn
$as_echo "no" >&6; }
6874 19 jeremybenn
fi
6875
 
6876 82 jeremybenn
 
6877
 
6878
 
6879
 
6880 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6881
  if test -n "$ac_tool_prefix"; then
6882 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6883 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6884 625 jeremybenn
if ${lt_cv_path_MAGIC_CMD+:} false; then :
6885 82 jeremybenn
  $as_echo_n "(cached) " >&6
6886 19 jeremybenn
else
6887
  case $MAGIC_CMD in
6888
[\\/*] |  ?:[\\/]*)
6889
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6890
  ;;
6891
*)
6892
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6893
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6894
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6895
  for ac_dir in $ac_dummy; do
6896
    IFS="$lt_save_ifs"
6897
    test -z "$ac_dir" && ac_dir=.
6898
    if test -f $ac_dir/file; then
6899
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6900
      if test -n "$file_magic_test_file"; then
6901
        case $deplibs_check_method in
6902
        "file_magic "*)
6903
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6904
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6905
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6906
            $EGREP "$file_magic_regex" > /dev/null; then
6907
            :
6908
          else
6909 82 jeremybenn
            cat <<_LT_EOF 1>&2
6910 19 jeremybenn
 
6911
*** Warning: the command libtool uses to detect shared libraries,
6912
*** $file_magic_cmd, produces output that libtool cannot recognize.
6913
*** The result is that libtool may fail to recognize shared libraries
6914
*** as such.  This will affect the creation of libtool libraries that
6915
*** depend on shared libraries, but programs linked with such libtool
6916
*** libraries will work regardless of this problem.  Nevertheless, you
6917
*** may want to report the problem to your system manager and/or to
6918
*** bug-libtool@gnu.org
6919
 
6920 82 jeremybenn
_LT_EOF
6921 19 jeremybenn
          fi ;;
6922
        esac
6923
      fi
6924
      break
6925
    fi
6926
  done
6927
  IFS="$lt_save_ifs"
6928
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6929
  ;;
6930
esac
6931
fi
6932
 
6933
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6934
if test -n "$MAGIC_CMD"; then
6935 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6936 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6937 19 jeremybenn
else
6938 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 82 jeremybenn
$as_echo "no" >&6; }
6940 19 jeremybenn
fi
6941
 
6942 82 jeremybenn
 
6943 19 jeremybenn
  else
6944
    MAGIC_CMD=:
6945
  fi
6946
fi
6947
 
6948
  fi
6949
  ;;
6950
esac
6951
 
6952 82 jeremybenn
# Use C for the default configuration in the libtool script
6953 19 jeremybenn
 
6954
lt_save_CC="$CC"
6955
ac_ext=c
6956
ac_cpp='$CPP $CPPFLAGS'
6957
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6958
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6959
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6960
 
6961
 
6962
# Source file extension for C test sources.
6963
ac_ext=c
6964
 
6965
# Object file extension for compiled C test sources.
6966
objext=o
6967
objext=$objext
6968
 
6969
# Code to be used in simple compile tests
6970
lt_simple_compile_test_code="int some_variable = 0;"
6971
 
6972
# Code to be used in simple link tests
6973
lt_simple_link_test_code='int main(){return(0);}'
6974
 
6975
 
6976 82 jeremybenn
 
6977
 
6978
 
6979
 
6980
 
6981 19 jeremybenn
# If no C compiler was specified, use CC.
6982
LTCC=${LTCC-"$CC"}
6983
 
6984
# If no C compiler flags were specified, use CFLAGS.
6985
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6986
 
6987
# Allow CC to be a program name with arguments.
6988
compiler=$CC
6989
 
6990 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6991
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6992
compiler_DEFAULT=$CC
6993 19 jeremybenn
 
6994
# save warnings/boilerplate of simple test code
6995
ac_outfile=conftest.$ac_objext
6996
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6997
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6998
_lt_compiler_boilerplate=`cat conftest.err`
6999 82 jeremybenn
$RM conftest*
7000 19 jeremybenn
 
7001
ac_outfile=conftest.$ac_objext
7002
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7003
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7004
_lt_linker_boilerplate=`cat conftest.err`
7005 82 jeremybenn
$RM -r conftest*
7006 19 jeremybenn
 
7007
 
7008 82 jeremybenn
## CAVEAT EMPTOR:
7009
## There is no encapsulation within the following macros, do not change
7010
## the running order or otherwise move them around unless you know exactly
7011
## what you are doing...
7012
if test -n "$compiler"; then
7013 19 jeremybenn
 
7014
lt_prog_compiler_no_builtin_flag=
7015
 
7016
if test "$GCC" = yes; then
7017
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7018
 
7019 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7020 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7021 625 jeremybenn
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7022 82 jeremybenn
  $as_echo_n "(cached) " >&6
7023 19 jeremybenn
else
7024
  lt_cv_prog_compiler_rtti_exceptions=no
7025 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7026 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7027
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7028
   # Insert the option either (1) after the last *FLAGS variable, or
7029
   # (2) before a word containing "conftest.", or (3) at the end.
7030
   # Note that $ac_compile itself does not contain backslashes and begins
7031
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7032
   # The option is referenced via a variable to avoid confusing sed.
7033
   lt_compile=`echo "$ac_compile" | $SED \
7034
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7035
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7036
   -e 's:$: $lt_compiler_flag:'`
7037 625 jeremybenn
   (eval echo "\"\$as_me:7037: $lt_compile\"" >&5)
7038 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7039
   ac_status=$?
7040
   cat conftest.err >&5
7041 625 jeremybenn
   echo "$as_me:7041: \$? = $ac_status" >&5
7042 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7043
     # The compiler can only warn and ignore the option if not recognized
7044
     # So say no if there are warnings other than the usual output.
7045 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7046 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7047
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7048
       lt_cv_prog_compiler_rtti_exceptions=yes
7049
     fi
7050
   fi
7051 82 jeremybenn
   $RM conftest*
7052 19 jeremybenn
 
7053
fi
7054 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7055 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7056 19 jeremybenn
 
7057
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7058
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7059
else
7060
    :
7061
fi
7062
 
7063
fi
7064
 
7065 82 jeremybenn
 
7066
 
7067
 
7068
 
7069
 
7070
  lt_prog_compiler_wl=
7071 19 jeremybenn
lt_prog_compiler_pic=
7072
lt_prog_compiler_static=
7073
 
7074 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7075 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7076 19 jeremybenn
 
7077
  if test "$GCC" = yes; then
7078
    lt_prog_compiler_wl='-Wl,'
7079
    lt_prog_compiler_static='-static'
7080
 
7081
    case $host_os in
7082
      aix*)
7083
      # All AIX code is PIC.
7084
      if test "$host_cpu" = ia64; then
7085
        # AIX 5 now supports IA64 processor
7086
        lt_prog_compiler_static='-Bstatic'
7087
      fi
7088
      ;;
7089
 
7090
    amigaos*)
7091 82 jeremybenn
      case $host_cpu in
7092
      powerpc)
7093
            # see comment about AmigaOS4 .so support
7094
            lt_prog_compiler_pic='-fPIC'
7095
        ;;
7096
      m68k)
7097
            # FIXME: we need at least 68020 code to build shared libraries, but
7098
            # adding the `-m68020' flag to GCC prevents building anything better,
7099
            # like `-m68040'.
7100
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7101
        ;;
7102
      esac
7103 19 jeremybenn
      ;;
7104
 
7105
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7106
      # PIC is the default for these OSes.
7107
      ;;
7108
 
7109 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7110 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7111
      # built for inclusion in a dll (and should export symbols for example).
7112
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7113
      # (--disable-auto-import) libraries
7114
      lt_prog_compiler_pic='-DDLL_EXPORT'
7115
      ;;
7116
 
7117
    darwin* | rhapsody*)
7118
      # PIC is the default on this platform
7119
      # Common symbols not allowed in MH_DYLIB files
7120
      lt_prog_compiler_pic='-fno-common'
7121
      ;;
7122
 
7123 82 jeremybenn
    hpux*)
7124
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7125
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7126
      # sets the default TLS model and affects inlining.
7127
      case $host_cpu in
7128
      hppa*64*)
7129
        # +Z the default
7130
        ;;
7131
      *)
7132
        lt_prog_compiler_pic='-fPIC'
7133
        ;;
7134
      esac
7135
      ;;
7136
 
7137 19 jeremybenn
    interix[3-9]*)
7138
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7139
      # Instead, we relocate shared libraries at runtime.
7140
      ;;
7141
 
7142
    msdosdjgpp*)
7143
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7144
      # on systems that don't support them.
7145
      lt_prog_compiler_can_build_shared=no
7146
      enable_shared=no
7147
      ;;
7148
 
7149 82 jeremybenn
    *nto* | *qnx*)
7150
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7151
      # it will coredump.
7152
      lt_prog_compiler_pic='-fPIC -shared'
7153
      ;;
7154
 
7155 19 jeremybenn
    sysv4*MP*)
7156
      if test -d /usr/nec; then
7157
        lt_prog_compiler_pic=-Kconform_pic
7158
      fi
7159
      ;;
7160
 
7161
    *)
7162
      lt_prog_compiler_pic='-fPIC'
7163
      ;;
7164
    esac
7165
  else
7166
    # PORTME Check for flag to pass linker flags through the system compiler.
7167
    case $host_os in
7168
    aix*)
7169
      lt_prog_compiler_wl='-Wl,'
7170
      if test "$host_cpu" = ia64; then
7171
        # AIX 5 now supports IA64 processor
7172
        lt_prog_compiler_static='-Bstatic'
7173
      else
7174
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7175
      fi
7176
      ;;
7177
 
7178 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7179 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7180
      # built for inclusion in a dll (and should export symbols for example).
7181
      lt_prog_compiler_pic='-DDLL_EXPORT'
7182
      ;;
7183
 
7184
    hpux9* | hpux10* | hpux11*)
7185
      lt_prog_compiler_wl='-Wl,'
7186
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7187
      # not for PA HP-UX.
7188
      case $host_cpu in
7189
      hppa*64*|ia64*)
7190
        # +Z the default
7191
        ;;
7192
      *)
7193
        lt_prog_compiler_pic='+Z'
7194
        ;;
7195
      esac
7196
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7197
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7198
      ;;
7199
 
7200
    irix5* | irix6* | nonstopux*)
7201
      lt_prog_compiler_wl='-Wl,'
7202
      # PIC (with -KPIC) is the default.
7203
      lt_prog_compiler_static='-non_shared'
7204
      ;;
7205
 
7206
    linux* | k*bsd*-gnu)
7207
      case $cc_basename in
7208 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7209
      ecc*)
7210 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7211
        lt_prog_compiler_pic='-KPIC'
7212
        lt_prog_compiler_static='-static'
7213
        ;;
7214 82 jeremybenn
      # icc used to be incompatible with GCC.
7215
      # ICC 10 doesn't accept -KPIC any more.
7216
      icc* | ifort*)
7217
        lt_prog_compiler_wl='-Wl,'
7218
        lt_prog_compiler_pic='-fPIC'
7219
        lt_prog_compiler_static='-static'
7220
        ;;
7221
      # Lahey Fortran 8.1.
7222
      lf95*)
7223
        lt_prog_compiler_wl='-Wl,'
7224
        lt_prog_compiler_pic='--shared'
7225
        lt_prog_compiler_static='--static'
7226
        ;;
7227 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7228
        # Portland Group compilers (*not* the Pentium gcc compiler,
7229
        # which looks to be a dead project)
7230
        lt_prog_compiler_wl='-Wl,'
7231
        lt_prog_compiler_pic='-fpic'
7232
        lt_prog_compiler_static='-Bstatic'
7233
        ;;
7234
      ccc*)
7235
        lt_prog_compiler_wl='-Wl,'
7236
        # All Alpha code is PIC.
7237
        lt_prog_compiler_static='-non_shared'
7238
        ;;
7239 82 jeremybenn
      xl*)
7240
        # IBM XL C 8.0/Fortran 10.1 on PPC
7241
        lt_prog_compiler_wl='-Wl,'
7242
        lt_prog_compiler_pic='-qpic'
7243
        lt_prog_compiler_static='-qstaticlink'
7244
        ;;
7245 19 jeremybenn
      *)
7246 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7247 19 jeremybenn
        *Sun\ C*)
7248
          # Sun C 5.9
7249
          lt_prog_compiler_pic='-KPIC'
7250
          lt_prog_compiler_static='-Bstatic'
7251
          lt_prog_compiler_wl='-Wl,'
7252
          ;;
7253
        *Sun\ F*)
7254
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7255
          lt_prog_compiler_pic='-KPIC'
7256
          lt_prog_compiler_static='-Bstatic'
7257
          lt_prog_compiler_wl=''
7258
          ;;
7259
        esac
7260
        ;;
7261
      esac
7262
      ;;
7263
 
7264 82 jeremybenn
    newsos6)
7265
      lt_prog_compiler_pic='-KPIC'
7266
      lt_prog_compiler_static='-Bstatic'
7267
      ;;
7268
 
7269
    *nto* | *qnx*)
7270
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7271
      # it will coredump.
7272
      lt_prog_compiler_pic='-fPIC -shared'
7273
      ;;
7274
 
7275 19 jeremybenn
    osf3* | osf4* | osf5*)
7276
      lt_prog_compiler_wl='-Wl,'
7277
      # All OSF/1 code is PIC.
7278
      lt_prog_compiler_static='-non_shared'
7279
      ;;
7280
 
7281
    rdos*)
7282
      lt_prog_compiler_static='-non_shared'
7283
      ;;
7284
 
7285
    solaris*)
7286
      lt_prog_compiler_pic='-KPIC'
7287
      lt_prog_compiler_static='-Bstatic'
7288
      case $cc_basename in
7289
      f77* | f90* | f95*)
7290
        lt_prog_compiler_wl='-Qoption ld ';;
7291
      *)
7292
        lt_prog_compiler_wl='-Wl,';;
7293
      esac
7294
      ;;
7295
 
7296
    sunos4*)
7297
      lt_prog_compiler_wl='-Qoption ld '
7298
      lt_prog_compiler_pic='-PIC'
7299
      lt_prog_compiler_static='-Bstatic'
7300
      ;;
7301
 
7302
    sysv4 | sysv4.2uw2* | sysv4.3*)
7303
      lt_prog_compiler_wl='-Wl,'
7304
      lt_prog_compiler_pic='-KPIC'
7305
      lt_prog_compiler_static='-Bstatic'
7306
      ;;
7307
 
7308
    sysv4*MP*)
7309
      if test -d /usr/nec ;then
7310
        lt_prog_compiler_pic='-Kconform_pic'
7311
        lt_prog_compiler_static='-Bstatic'
7312
      fi
7313
      ;;
7314
 
7315
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7316
      lt_prog_compiler_wl='-Wl,'
7317
      lt_prog_compiler_pic='-KPIC'
7318
      lt_prog_compiler_static='-Bstatic'
7319
      ;;
7320
 
7321
    unicos*)
7322
      lt_prog_compiler_wl='-Wl,'
7323
      lt_prog_compiler_can_build_shared=no
7324
      ;;
7325
 
7326
    uts4*)
7327
      lt_prog_compiler_pic='-pic'
7328
      lt_prog_compiler_static='-Bstatic'
7329
      ;;
7330
 
7331
    *)
7332
      lt_prog_compiler_can_build_shared=no
7333
      ;;
7334
    esac
7335
  fi
7336
 
7337 82 jeremybenn
case $host_os in
7338
  # For platforms which do not support PIC, -DPIC is meaningless:
7339
  *djgpp*)
7340
    lt_prog_compiler_pic=
7341
    ;;
7342
  *)
7343
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7344
    ;;
7345
esac
7346 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7347 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7348 19 jeremybenn
 
7349 82 jeremybenn
 
7350
 
7351
 
7352
 
7353
 
7354 19 jeremybenn
#
7355
# Check to make sure the PIC flag actually works.
7356
#
7357
if test -n "$lt_prog_compiler_pic"; then
7358 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7359 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7360 625 jeremybenn
if ${lt_cv_prog_compiler_pic_works+:} false; then :
7361 82 jeremybenn
  $as_echo_n "(cached) " >&6
7362 19 jeremybenn
else
7363 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7364
   ac_outfile=conftest.$ac_objext
7365 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7366
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7367
   # Insert the option either (1) after the last *FLAGS variable, or
7368
   # (2) before a word containing "conftest.", or (3) at the end.
7369
   # Note that $ac_compile itself does not contain backslashes and begins
7370
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7371
   # The option is referenced via a variable to avoid confusing sed.
7372
   lt_compile=`echo "$ac_compile" | $SED \
7373
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7374
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7375
   -e 's:$: $lt_compiler_flag:'`
7376 625 jeremybenn
   (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
7377 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7378
   ac_status=$?
7379
   cat conftest.err >&5
7380 625 jeremybenn
   echo "$as_me:7380: \$? = $ac_status" >&5
7381 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7382
     # The compiler can only warn and ignore the option if not recognized
7383
     # So say no if there are warnings other than the usual output.
7384 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7385 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7386
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7387 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7388 19 jeremybenn
     fi
7389
   fi
7390 82 jeremybenn
   $RM conftest*
7391 19 jeremybenn
 
7392
fi
7393 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7394 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7395 19 jeremybenn
 
7396 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7397 19 jeremybenn
    case $lt_prog_compiler_pic in
7398
     "" | " "*) ;;
7399
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7400
     esac
7401
else
7402
    lt_prog_compiler_pic=
7403
     lt_prog_compiler_can_build_shared=no
7404
fi
7405
 
7406
fi
7407
 
7408 82 jeremybenn
 
7409
 
7410
 
7411
 
7412
 
7413 19 jeremybenn
#
7414
# Check to make sure the static flag actually works.
7415
#
7416
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7417 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7418 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7419 625 jeremybenn
if ${lt_cv_prog_compiler_static_works+:} false; then :
7420 82 jeremybenn
  $as_echo_n "(cached) " >&6
7421 19 jeremybenn
else
7422 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7423 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7424
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7425
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7426
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7427
     # The linker can only warn and ignore the option if not recognized
7428
     # So say no if there are warnings
7429
     if test -s conftest.err; then
7430
       # Append any errors to the config.log.
7431
       cat conftest.err 1>&5
7432 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7433 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7434
       if diff conftest.exp conftest.er2 >/dev/null; then
7435 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7436 19 jeremybenn
       fi
7437
     else
7438 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7439 19 jeremybenn
     fi
7440
   fi
7441 82 jeremybenn
   $RM -r conftest*
7442 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7443
 
7444
fi
7445 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7446 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7447 19 jeremybenn
 
7448 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7449 19 jeremybenn
    :
7450
else
7451
    lt_prog_compiler_static=
7452
fi
7453
 
7454
 
7455 82 jeremybenn
 
7456
 
7457
 
7458
 
7459
 
7460 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7461 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7462 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7463 82 jeremybenn
  $as_echo_n "(cached) " >&6
7464 19 jeremybenn
else
7465
  lt_cv_prog_compiler_c_o=no
7466 82 jeremybenn
   $RM -r conftest 2>/dev/null
7467 19 jeremybenn
   mkdir conftest
7468
   cd conftest
7469
   mkdir out
7470
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7471
 
7472
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7473
   # Insert the option either (1) after the last *FLAGS variable, or
7474
   # (2) before a word containing "conftest.", or (3) at the end.
7475
   # Note that $ac_compile itself does not contain backslashes and begins
7476
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7477
   lt_compile=`echo "$ac_compile" | $SED \
7478
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7479
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7480
   -e 's:$: $lt_compiler_flag:'`
7481 625 jeremybenn
   (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
7482 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7483
   ac_status=$?
7484
   cat out/conftest.err >&5
7485 625 jeremybenn
   echo "$as_me:7485: \$? = $ac_status" >&5
7486 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7487
   then
7488
     # The compiler can only warn and ignore the option if not recognized
7489
     # So say no if there are warnings
7490 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7491 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7492
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7493
       lt_cv_prog_compiler_c_o=yes
7494
     fi
7495
   fi
7496
   chmod u+w . 2>&5
7497 82 jeremybenn
   $RM conftest*
7498 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7499
   # template instantiation
7500 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7501
   $RM out/* && rmdir out
7502 19 jeremybenn
   cd ..
7503 82 jeremybenn
   $RM -r conftest
7504
   $RM conftest*
7505 19 jeremybenn
 
7506
fi
7507 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7508 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7509 19 jeremybenn
 
7510
 
7511 82 jeremybenn
 
7512
 
7513
 
7514
 
7515 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7516 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7517 625 jeremybenn
if ${lt_cv_prog_compiler_c_o+:} false; then :
7518 82 jeremybenn
  $as_echo_n "(cached) " >&6
7519
else
7520
  lt_cv_prog_compiler_c_o=no
7521
   $RM -r conftest 2>/dev/null
7522
   mkdir conftest
7523
   cd conftest
7524
   mkdir out
7525
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7526
 
7527
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7528
   # Insert the option either (1) after the last *FLAGS variable, or
7529
   # (2) before a word containing "conftest.", or (3) at the end.
7530
   # Note that $ac_compile itself does not contain backslashes and begins
7531
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7532
   lt_compile=`echo "$ac_compile" | $SED \
7533
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7534
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7535
   -e 's:$: $lt_compiler_flag:'`
7536 625 jeremybenn
   (eval echo "\"\$as_me:7536: $lt_compile\"" >&5)
7537 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7538
   ac_status=$?
7539
   cat out/conftest.err >&5
7540 625 jeremybenn
   echo "$as_me:7540: \$? = $ac_status" >&5
7541 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7542
   then
7543
     # The compiler can only warn and ignore the option if not recognized
7544
     # So say no if there are warnings
7545
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7546
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7547
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7548
       lt_cv_prog_compiler_c_o=yes
7549
     fi
7550
   fi
7551
   chmod u+w . 2>&5
7552
   $RM conftest*
7553
   # SGI C++ compiler will create directory out/ii_files/ for
7554
   # template instantiation
7555
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7556
   $RM out/* && rmdir out
7557
   cd ..
7558
   $RM -r conftest
7559
   $RM conftest*
7560
 
7561
fi
7562 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7563 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7564
 
7565
 
7566
 
7567
 
7568 19 jeremybenn
hard_links="nottested"
7569
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7570
  # do not overwrite the value of need_locks provided by the user
7571 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7572 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7573 19 jeremybenn
  hard_links=yes
7574 82 jeremybenn
  $RM conftest*
7575 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7576
  touch conftest.a
7577
  ln conftest.a conftest.b 2>&5 || hard_links=no
7578
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7579 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7580 82 jeremybenn
$as_echo "$hard_links" >&6; }
7581 19 jeremybenn
  if test "$hard_links" = no; then
7582 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7583 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7584 19 jeremybenn
    need_locks=warn
7585
  fi
7586
else
7587
  need_locks=no
7588
fi
7589
 
7590
 
7591 82 jeremybenn
 
7592
 
7593
 
7594
 
7595 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7596 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7597
 
7598 19 jeremybenn
  runpath_var=
7599
  allow_undefined_flag=
7600 82 jeremybenn
  always_export_symbols=no
7601 19 jeremybenn
  archive_cmds=
7602
  archive_expsym_cmds=
7603 82 jeremybenn
  compiler_needs_object=no
7604
  enable_shared_with_static_runtimes=no
7605 19 jeremybenn
  export_dynamic_flag_spec=
7606 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7607
  hardcode_automatic=no
7608
  hardcode_direct=no
7609
  hardcode_direct_absolute=no
7610 19 jeremybenn
  hardcode_libdir_flag_spec=
7611
  hardcode_libdir_flag_spec_ld=
7612
  hardcode_libdir_separator=
7613
  hardcode_minus_L=no
7614
  hardcode_shlibpath_var=unsupported
7615 82 jeremybenn
  inherit_rpath=no
7616 19 jeremybenn
  link_all_deplibs=unknown
7617
  module_cmds=
7618
  module_expsym_cmds=
7619 82 jeremybenn
  old_archive_from_new_cmds=
7620
  old_archive_from_expsyms_cmds=
7621
  thread_safe_flag_spec=
7622
  whole_archive_flag_spec=
7623 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7624
  # included in the symbol list
7625
  include_expsyms=
7626
  # exclude_expsyms can be an extended regexp of symbols to exclude
7627
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7628
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7629
  # as well as any symbol that contains `d'.
7630 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7631 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7632
  # platforms (ab)use it in PIC code, but their linkers get confused if
7633
  # the symbol is explicitly referenced.  Since portable code cannot
7634
  # rely on this symbol name, it's probably fine to never include it in
7635
  # preloaded symbol tables.
7636 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7637 19 jeremybenn
  extract_expsyms_cmds=
7638
 
7639
  case $host_os in
7640 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7641 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7642
    # When not using gcc, we currently assume that we are using
7643
    # Microsoft Visual C++.
7644
    if test "$GCC" != yes; then
7645
      with_gnu_ld=no
7646
    fi
7647
    ;;
7648
  interix*)
7649
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7650
    with_gnu_ld=yes
7651
    ;;
7652
  openbsd*)
7653
    with_gnu_ld=no
7654
    ;;
7655 93 jeremybenn
  linux* | k*bsd*-gnu)
7656
    link_all_deplibs=no
7657
    ;;
7658 19 jeremybenn
  esac
7659
 
7660
  ld_shlibs=yes
7661
  if test "$with_gnu_ld" = yes; then
7662
    # If archive_cmds runs LD, not CC, wlarc should be empty
7663
    wlarc='${wl}'
7664
 
7665
    # Set some defaults for GNU ld with shared library support. These
7666
    # are reset later if shared libraries are not supported. Putting them
7667
    # here allows them to be overridden if necessary.
7668
    runpath_var=LD_RUN_PATH
7669 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7670 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7671
    # ancient GNU ld didn't support --whole-archive et. al.
7672 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7673
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7674
    else
7675
      whole_archive_flag_spec=
7676 19 jeremybenn
    fi
7677
    supports_anon_versioning=no
7678 82 jeremybenn
    case `$LD -v 2>&1` in
7679 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7680
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7681
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7682
      *\ 2.11.*) ;; # other 2.11 versions
7683
      *) supports_anon_versioning=yes ;;
7684
    esac
7685
 
7686
    # See if GNU ld supports shared libraries.
7687
    case $host_os in
7688 82 jeremybenn
    aix[3-9]*)
7689 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7690
      if test "$host_cpu" != ia64; then
7691
        ld_shlibs=no
7692 82 jeremybenn
        cat <<_LT_EOF 1>&2
7693 19 jeremybenn
 
7694
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7695
*** to be unable to reliably create shared libraries on AIX.
7696
*** Therefore, libtool is disabling shared libraries support.  If you
7697
*** really care for shared libraries, you may want to modify your PATH
7698
*** so that a non-GNU linker is found, and then restart.
7699
 
7700 82 jeremybenn
_LT_EOF
7701 19 jeremybenn
      fi
7702
      ;;
7703
 
7704
    amigaos*)
7705 82 jeremybenn
      case $host_cpu in
7706
      powerpc)
7707
            # see comment about AmigaOS4 .so support
7708
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709
            archive_expsym_cmds=''
7710
        ;;
7711
      m68k)
7712
            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)'
7713
            hardcode_libdir_flag_spec='-L$libdir'
7714
            hardcode_minus_L=yes
7715
        ;;
7716
      esac
7717 19 jeremybenn
      ;;
7718
 
7719
    beos*)
7720 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7721 19 jeremybenn
        allow_undefined_flag=unsupported
7722
        # Joseph Beckenbach  says some releases of gcc
7723
        # support --undefined.  This deserves some investigation.  FIXME
7724
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725
      else
7726
        ld_shlibs=no
7727
      fi
7728
      ;;
7729
 
7730 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7731
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7732 19 jeremybenn
      # as there is no search path for DLLs.
7733
      hardcode_libdir_flag_spec='-L$libdir'
7734
      allow_undefined_flag=unsupported
7735
      always_export_symbols=no
7736
      enable_shared_with_static_runtimes=yes
7737 82 jeremybenn
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7738 19 jeremybenn
 
7739 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7740 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741
        # If the export-symbols file already is a .def file (1st line
7742
        # is EXPORTS), use it as is; otherwise, prepend...
7743
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7744
          cp $export_symbols $output_objdir/$soname.def;
7745
        else
7746
          echo EXPORTS > $output_objdir/$soname.def;
7747
          cat $export_symbols >> $output_objdir/$soname.def;
7748
        fi~
7749
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7750
      else
7751
        ld_shlibs=no
7752
      fi
7753
      ;;
7754
 
7755
    interix[3-9]*)
7756
      hardcode_direct=no
7757
      hardcode_shlibpath_var=no
7758
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7759
      export_dynamic_flag_spec='${wl}-E'
7760
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7761
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7762
      # default) and relocated if they conflict, which is a slow very memory
7763
      # consuming and fragmenting process.  To avoid this, we pick a random,
7764
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7765
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7766
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7767
      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'
7768
      ;;
7769
 
7770 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7771
      tmp_diet=no
7772
      if test "$host_os" = linux-dietlibc; then
7773
        case $cc_basename in
7774
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7775
        esac
7776
      fi
7777
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7778
         && test "$tmp_diet" = no
7779
      then
7780 19 jeremybenn
        tmp_addflag=
7781 82 jeremybenn
        tmp_sharedflag='-shared'
7782 19 jeremybenn
        case $cc_basename,$host_cpu in
7783 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7784
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7785 19 jeremybenn
          tmp_addflag=' $pic_flag'
7786
          ;;
7787
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7788 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7789 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7790 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7791 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7792
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7793
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7794
        ifc* | ifort*)                  # Intel Fortran compiler
7795
          tmp_addflag=' -nofor_main' ;;
7796 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7797
          whole_archive_flag_spec=
7798
          tmp_sharedflag='--shared' ;;
7799
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7800
          tmp_sharedflag='-qmkshrobj'
7801
          tmp_addflag= ;;
7802 19 jeremybenn
        esac
7803
        case `$CC -V 2>&1 | sed 5q` in
7804
        *Sun\ C*)                       # Sun C 5.9
7805 82 jeremybenn
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7806
          compiler_needs_object=yes
7807 19 jeremybenn
          tmp_sharedflag='-G' ;;
7808
        *Sun\ F*)                       # Sun Fortran 8.3
7809
          tmp_sharedflag='-G' ;;
7810
        esac
7811
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7812
 
7813 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7814
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7815
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7816
            echo "local: *; };" >> $output_objdir/$libname.ver~
7817
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7818
        fi
7819
 
7820
        case $cc_basename in
7821
        xlf*)
7822
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7823
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7824
          hardcode_libdir_flag_spec=
7825
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7826
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7827
          if test "x$supports_anon_versioning" = xyes; then
7828
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7829
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7830
              echo "local: *; };" >> $output_objdir/$libname.ver~
7831
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7832
          fi
7833
          ;;
7834
        esac
7835 19 jeremybenn
      else
7836 82 jeremybenn
        ld_shlibs=no
7837 19 jeremybenn
      fi
7838
      ;;
7839
 
7840 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7841 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7842 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7843
        wlarc=
7844
      else
7845
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7846
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7847
      fi
7848
      ;;
7849
 
7850
    solaris*)
7851 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7852 19 jeremybenn
        ld_shlibs=no
7853 82 jeremybenn
        cat <<_LT_EOF 1>&2
7854 19 jeremybenn
 
7855
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7856
*** create shared libraries on Solaris systems.  Therefore, libtool
7857
*** is disabling shared libraries support.  We urge you to upgrade GNU
7858
*** binutils to release 2.9.1 or newer.  Another option is to modify
7859
*** your PATH or compiler configuration so that the native linker is
7860
*** used, and then restart.
7861
 
7862 82 jeremybenn
_LT_EOF
7863
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7864 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7865
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7866
      else
7867
        ld_shlibs=no
7868
      fi
7869
      ;;
7870
 
7871
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7872
      case `$LD -v 2>&1` in
7873
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7874
        ld_shlibs=no
7875
        cat <<_LT_EOF 1>&2
7876
 
7877
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7878
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7879
*** is disabling shared libraries support.  We urge you to upgrade GNU
7880
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7881
*** your PATH or compiler configuration so that the native linker is
7882
*** used, and then restart.
7883
 
7884
_LT_EOF
7885
        ;;
7886
        *)
7887 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7888
          # use absolute paths for naming shared libraries, and exclude the
7889
          # DT_RUNPATH tag from executables and libraries.  But doing so
7890
          # requires that you compile everything twice, which is a pain.
7891
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7892
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7893
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7894
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7895 19 jeremybenn
          else
7896
            ld_shlibs=no
7897
          fi
7898
        ;;
7899
      esac
7900
      ;;
7901
 
7902
    sunos4*)
7903
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7904
      wlarc=
7905
      hardcode_direct=yes
7906
      hardcode_shlibpath_var=no
7907
      ;;
7908
 
7909
    *)
7910 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7911 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7913
      else
7914
        ld_shlibs=no
7915
      fi
7916
      ;;
7917
    esac
7918
 
7919
    if test "$ld_shlibs" = no; then
7920
      runpath_var=
7921
      hardcode_libdir_flag_spec=
7922
      export_dynamic_flag_spec=
7923
      whole_archive_flag_spec=
7924
    fi
7925
  else
7926
    # PORTME fill in a description of your system's linker (not GNU ld)
7927
    case $host_os in
7928
    aix3*)
7929
      allow_undefined_flag=unsupported
7930
      always_export_symbols=yes
7931
      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'
7932
      # Note: this linker hardcodes the directories in LIBPATH if there
7933
      # are no directories specified by -L.
7934
      hardcode_minus_L=yes
7935
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7936
        # Neither direct hardcoding nor static linking is supported with a
7937
        # broken collect2.
7938
        hardcode_direct=unsupported
7939
      fi
7940
      ;;
7941
 
7942 82 jeremybenn
    aix[4-9]*)
7943 19 jeremybenn
      if test "$host_cpu" = ia64; then
7944
        # On IA64, the linker does run time linking by default, so we don't
7945
        # have to do anything special.
7946
        aix_use_runtimelinking=no
7947
        exp_sym_flag='-Bexport'
7948
        no_entry_flag=""
7949
      else
7950
        # If we're using GNU nm, then we don't want the "-C" option.
7951
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7952 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7953
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7954 19 jeremybenn
        else
7955 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'
7956 19 jeremybenn
        fi
7957
        aix_use_runtimelinking=no
7958
 
7959
        # Test if we are trying to use run time linking or normal
7960
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7961
        # need to do runtime linking.
7962 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7963 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7964 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7965
            aix_use_runtimelinking=yes
7966
            break
7967
          fi
7968 19 jeremybenn
          done
7969
          ;;
7970
        esac
7971
 
7972
        exp_sym_flag='-bexport'
7973
        no_entry_flag='-bnoentry'
7974
      fi
7975
 
7976
      # When large executables or shared objects are built, AIX ld can
7977
      # have problems creating the table of contents.  If linking a library
7978
      # or program results in "error TOC overflow" add -mminimal-toc to
7979
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7980
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7981
 
7982
      archive_cmds=''
7983
      hardcode_direct=yes
7984 82 jeremybenn
      hardcode_direct_absolute=yes
7985 19 jeremybenn
      hardcode_libdir_separator=':'
7986
      link_all_deplibs=yes
7987 82 jeremybenn
      file_list_spec='${wl}-f,'
7988 19 jeremybenn
 
7989
      if test "$GCC" = yes; then
7990
        case $host_os in aix4.[012]|aix4.[012].*)
7991
        # We only want to do this on AIX 4.2 and lower, the check
7992
        # below for broken collect2 doesn't work under 4.3+
7993
          collect2name=`${CC} -print-prog-name=collect2`
7994 82 jeremybenn
          if test -f "$collect2name" &&
7995
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7996 19 jeremybenn
          then
7997 82 jeremybenn
          # We have reworked collect2
7998
          :
7999 19 jeremybenn
          else
8000 82 jeremybenn
          # We have old collect2
8001
          hardcode_direct=unsupported
8002
          # It fails to find uninstalled libraries when the uninstalled
8003
          # path is not listed in the libpath.  Setting hardcode_minus_L
8004
          # to unsupported forces relinking
8005
          hardcode_minus_L=yes
8006
          hardcode_libdir_flag_spec='-L$libdir'
8007
          hardcode_libdir_separator=
8008 19 jeremybenn
          fi
8009
          ;;
8010
        esac
8011
        shared_flag='-shared'
8012
        if test "$aix_use_runtimelinking" = yes; then
8013
          shared_flag="$shared_flag "'${wl}-G'
8014
        fi
8015 93 jeremybenn
        link_all_deplibs=no
8016 19 jeremybenn
      else
8017
        # not using gcc
8018
        if test "$host_cpu" = ia64; then
8019 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8020
        # chokes on -Wl,-G. The following line is correct:
8021 19 jeremybenn
          shared_flag='-G'
8022
        else
8023
          if test "$aix_use_runtimelinking" = yes; then
8024
            shared_flag='${wl}-G'
8025
          else
8026
            shared_flag='${wl}-bM:SRE'
8027
          fi
8028
        fi
8029
      fi
8030
 
8031 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8032 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8033
      # underscore (_), so it is better to generate a list of symbols to export.
8034
      always_export_symbols=yes
8035
      if test "$aix_use_runtimelinking" = yes; then
8036
        # Warning - without using the other runtime loading flags (-brtl),
8037
        # -berok will link without error, but may produce a broken library.
8038
        allow_undefined_flag='-berok'
8039 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8040
        # empty executable.
8041 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 19 jeremybenn
/* end confdefs.h.  */
8043
 
8044
int
8045
main ()
8046
{
8047
 
8048
  ;
8049
  return 0;
8050
}
8051
_ACEOF
8052 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8053 19 jeremybenn
 
8054
lt_aix_libpath_sed='
8055
    /Import File Strings/,/^$/ {
8056
        /^0/ {
8057
            s/^0  *\(.*\)$/\1/
8058
            p
8059
        }
8060
    }'
8061
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8062
# Check for a 64-bit object if we didn't find anything.
8063
if test -z "$aix_libpath"; then
8064
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8065
fi
8066
fi
8067 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8068
    conftest$ac_exeext conftest.$ac_ext
8069 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8070
 
8071 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8072
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8073
      else
8074 19 jeremybenn
        if test "$host_cpu" = ia64; then
8075
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8076
          allow_undefined_flag="-z nodefs"
8077
          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"
8078
        else
8079 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8080
         # empty executable.
8081 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 19 jeremybenn
/* end confdefs.h.  */
8083
 
8084
int
8085
main ()
8086
{
8087
 
8088
  ;
8089
  return 0;
8090
}
8091
_ACEOF
8092 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8093 19 jeremybenn
 
8094
lt_aix_libpath_sed='
8095
    /Import File Strings/,/^$/ {
8096
        /^0/ {
8097
            s/^0  *\(.*\)$/\1/
8098
            p
8099
        }
8100
    }'
8101
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8102
# Check for a 64-bit object if we didn't find anything.
8103
if test -z "$aix_libpath"; then
8104
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8105
fi
8106
fi
8107 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8108
    conftest$ac_exeext conftest.$ac_ext
8109 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8110
 
8111
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8112
          # Warning - without using the other run time loading flags,
8113
          # -berok will link without error, but may produce a broken library.
8114
          no_undefined_flag=' ${wl}-bernotok'
8115
          allow_undefined_flag=' ${wl}-berok'
8116
          # Exported symbols can be pulled into shared objects from archives
8117
          whole_archive_flag_spec='$convenience'
8118
          archive_cmds_need_lc=yes
8119
          # This is similar to how AIX traditionally builds its shared libraries.
8120
          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'
8121
        fi
8122
      fi
8123
      ;;
8124
 
8125
    amigaos*)
8126 82 jeremybenn
      case $host_cpu in
8127
      powerpc)
8128
            # see comment about AmigaOS4 .so support
8129
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130
            archive_expsym_cmds=''
8131
        ;;
8132
      m68k)
8133
            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)'
8134
            hardcode_libdir_flag_spec='-L$libdir'
8135
            hardcode_minus_L=yes
8136
        ;;
8137
      esac
8138 19 jeremybenn
      ;;
8139
 
8140
    bsdi[45]*)
8141
      export_dynamic_flag_spec=-rdynamic
8142
      ;;
8143
 
8144 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8145 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8146
      # Microsoft Visual C++.
8147
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8148
      # no search path for DLLs.
8149
      hardcode_libdir_flag_spec=' '
8150
      allow_undefined_flag=unsupported
8151
      # Tell ltmain to make .lib files, not .a files.
8152
      libext=lib
8153
      # Tell ltmain to make .dll files, not .so files.
8154
      shrext_cmds=".dll"
8155
      # FIXME: Setting linknames here is a bad hack.
8156 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8157 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8158 82 jeremybenn
      old_archive_from_new_cmds='true'
8159 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8160
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8161
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8162
      enable_shared_with_static_runtimes=yes
8163
      ;;
8164
 
8165
    darwin* | rhapsody*)
8166 82 jeremybenn
 
8167
 
8168
  archive_cmds_need_lc=no
8169
  hardcode_direct=no
8170
  hardcode_automatic=yes
8171
  hardcode_shlibpath_var=unsupported
8172
  whole_archive_flag_spec=''
8173
  link_all_deplibs=yes
8174
  allow_undefined_flag="$_lt_dar_allow_undefined"
8175
  case $cc_basename in
8176
     ifort*) _lt_dar_can_shared=yes ;;
8177
     *) _lt_dar_can_shared=$GCC ;;
8178
  esac
8179
  if test "$_lt_dar_can_shared" = "yes"; then
8180
    output_verbose_link_cmd=echo
8181
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8182
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8183
    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}"
8184
    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}"
8185
 
8186
  else
8187
  ld_shlibs=no
8188
  fi
8189
 
8190 19 jeremybenn
      ;;
8191
 
8192
    dgux*)
8193
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8194
      hardcode_libdir_flag_spec='-L$libdir'
8195
      hardcode_shlibpath_var=no
8196
      ;;
8197
 
8198
    freebsd1*)
8199
      ld_shlibs=no
8200
      ;;
8201
 
8202
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8203
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8204
    # does not break anything, and helps significantly (at the cost of a little
8205
    # extra space).
8206
    freebsd2.2*)
8207
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8208
      hardcode_libdir_flag_spec='-R$libdir'
8209
      hardcode_direct=yes
8210
      hardcode_shlibpath_var=no
8211
      ;;
8212
 
8213
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8214
    freebsd2*)
8215
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8216
      hardcode_direct=yes
8217
      hardcode_minus_L=yes
8218
      hardcode_shlibpath_var=no
8219
      ;;
8220
 
8221
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8222
    freebsd* | dragonfly*)
8223
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8224
      hardcode_libdir_flag_spec='-R$libdir'
8225
      hardcode_direct=yes
8226
      hardcode_shlibpath_var=no
8227
      ;;
8228
 
8229
    hpux9*)
8230
      if test "$GCC" = yes; then
8231 82 jeremybenn
        archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8232 19 jeremybenn
      else
8233 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'
8234 19 jeremybenn
      fi
8235
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8236
      hardcode_libdir_separator=:
8237
      hardcode_direct=yes
8238
 
8239
      # hardcode_minus_L: Not really in the search PATH,
8240
      # but as the default location of the library.
8241
      hardcode_minus_L=yes
8242
      export_dynamic_flag_spec='${wl}-E'
8243
      ;;
8244
 
8245
    hpux10*)
8246
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8247
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8248
      else
8249
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8250
      fi
8251
      if test "$with_gnu_ld" = no; then
8252
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8253 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8254 19 jeremybenn
        hardcode_libdir_separator=:
8255
        hardcode_direct=yes
8256 82 jeremybenn
        hardcode_direct_absolute=yes
8257 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8258
        # hardcode_minus_L: Not really in the search PATH,
8259
        # but as the default location of the library.
8260
        hardcode_minus_L=yes
8261
      fi
8262
      ;;
8263
 
8264
    hpux11*)
8265
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8266
        case $host_cpu in
8267
        hppa*64*)
8268
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8269
          ;;
8270
        ia64*)
8271 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8272 19 jeremybenn
          ;;
8273
        *)
8274
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8275
          ;;
8276
        esac
8277
      else
8278
        case $host_cpu in
8279
        hppa*64*)
8280
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8281
          ;;
8282
        ia64*)
8283
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8284
          ;;
8285
        *)
8286
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8287
          ;;
8288
        esac
8289
      fi
8290
      if test "$with_gnu_ld" = no; then
8291
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8292
        hardcode_libdir_separator=:
8293
 
8294
        case $host_cpu in
8295
        hppa*64*|ia64*)
8296
          hardcode_direct=no
8297
          hardcode_shlibpath_var=no
8298
          ;;
8299
        *)
8300
          hardcode_direct=yes
8301 82 jeremybenn
          hardcode_direct_absolute=yes
8302 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8303
 
8304
          # hardcode_minus_L: Not really in the search PATH,
8305
          # but as the default location of the library.
8306
          hardcode_minus_L=yes
8307
          ;;
8308
        esac
8309
      fi
8310
      ;;
8311
 
8312
    irix5* | irix6* | nonstopux*)
8313
      if test "$GCC" = yes; then
8314 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8315
        # Try to use the -exported_symbol ld option, if it does not
8316
        # work, assume that -exports_file does not work either and
8317
        # implicitly export all symbols.
8318
        save_LDFLAGS="$LDFLAGS"
8319
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8320 346 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321
/* end confdefs.h.  */
8322 82 jeremybenn
int foo(void) {}
8323
_ACEOF
8324 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8325 82 jeremybenn
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8326
 
8327
fi
8328 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8329
    conftest$ac_exeext conftest.$ac_ext
8330 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8331 19 jeremybenn
      else
8332 82 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8333
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8334 19 jeremybenn
      fi
8335 82 jeremybenn
      archive_cmds_need_lc='no'
8336 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337
      hardcode_libdir_separator=:
8338 82 jeremybenn
      inherit_rpath=yes
8339 19 jeremybenn
      link_all_deplibs=yes
8340
      ;;
8341
 
8342 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8343 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8344 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8345
      else
8346
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8347
      fi
8348
      hardcode_libdir_flag_spec='-R$libdir'
8349
      hardcode_direct=yes
8350
      hardcode_shlibpath_var=no
8351
      ;;
8352
 
8353
    newsos6)
8354
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8355
      hardcode_direct=yes
8356
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357
      hardcode_libdir_separator=:
8358
      hardcode_shlibpath_var=no
8359
      ;;
8360
 
8361 82 jeremybenn
    *nto* | *qnx*)
8362
      ;;
8363
 
8364 19 jeremybenn
    openbsd*)
8365
      if test -f /usr/libexec/ld.so; then
8366
        hardcode_direct=yes
8367
        hardcode_shlibpath_var=no
8368 82 jeremybenn
        hardcode_direct_absolute=yes
8369
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8370 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8371
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8372
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8373
          export_dynamic_flag_spec='${wl}-E'
8374
        else
8375
          case $host_os in
8376
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8377
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8378
             hardcode_libdir_flag_spec='-R$libdir'
8379
             ;;
8380
           *)
8381
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8382
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8383
             ;;
8384
          esac
8385 82 jeremybenn
        fi
8386 19 jeremybenn
      else
8387
        ld_shlibs=no
8388
      fi
8389
      ;;
8390
 
8391
    os2*)
8392
      hardcode_libdir_flag_spec='-L$libdir'
8393
      hardcode_minus_L=yes
8394
      allow_undefined_flag=unsupported
8395 82 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'
8396
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8397 19 jeremybenn
      ;;
8398
 
8399
    osf3*)
8400
      if test "$GCC" = yes; then
8401
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8402 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8403 19 jeremybenn
      else
8404
        allow_undefined_flag=' -expect_unresolved \*'
8405 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8406 19 jeremybenn
      fi
8407 82 jeremybenn
      archive_cmds_need_lc='no'
8408 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8409
      hardcode_libdir_separator=:
8410
      ;;
8411
 
8412
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8413
      if test "$GCC" = yes; then
8414
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8415 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8416 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417
      else
8418
        allow_undefined_flag=' -expect_unresolved \*'
8419 82 jeremybenn
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8420
        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~
8421
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8422 19 jeremybenn
 
8423
        # Both c and cxx compiler support -rpath directly
8424
        hardcode_libdir_flag_spec='-rpath $libdir'
8425
      fi
8426 82 jeremybenn
      archive_cmds_need_lc='no'
8427 19 jeremybenn
      hardcode_libdir_separator=:
8428
      ;;
8429
 
8430
    solaris*)
8431 82 jeremybenn
      no_undefined_flag=' -z defs'
8432 19 jeremybenn
      if test "$GCC" = yes; then
8433
        wlarc='${wl}'
8434 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8435
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8436
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8437 19 jeremybenn
      else
8438 82 jeremybenn
        case `$CC -V 2>&1` in
8439
        *"Compilers 5.0"*)
8440
          wlarc=''
8441
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8443
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8444
          ;;
8445
        *)
8446
          wlarc='${wl}'
8447
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8448
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8449
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8450
          ;;
8451
        esac
8452 19 jeremybenn
      fi
8453
      hardcode_libdir_flag_spec='-R$libdir'
8454
      hardcode_shlibpath_var=no
8455
      case $host_os in
8456
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8457
      *)
8458
        # The compiler driver will combine and reorder linker options,
8459
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8460
        # but is careful enough not to reorder.
8461 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8462 19 jeremybenn
        if test "$GCC" = yes; then
8463
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8464
        else
8465
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8466
        fi
8467
        ;;
8468
      esac
8469
      link_all_deplibs=yes
8470
      ;;
8471
 
8472
    sunos4*)
8473
      if test "x$host_vendor" = xsequent; then
8474
        # Use $CC to link under sequent, because it throws in some extra .o
8475
        # files that make .init and .fini sections work.
8476
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8477
      else
8478
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8479
      fi
8480
      hardcode_libdir_flag_spec='-L$libdir'
8481
      hardcode_direct=yes
8482
      hardcode_minus_L=yes
8483
      hardcode_shlibpath_var=no
8484
      ;;
8485
 
8486
    sysv4)
8487
      case $host_vendor in
8488
        sni)
8489
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490
          hardcode_direct=yes # is this really true???
8491
        ;;
8492
        siemens)
8493
          ## LD is ld it makes a PLAMLIB
8494
          ## CC just makes a GrossModule.
8495
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8496
          reload_cmds='$CC -r -o $output$reload_objs'
8497
          hardcode_direct=no
8498
        ;;
8499
        motorola)
8500
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8502
        ;;
8503
      esac
8504
      runpath_var='LD_RUN_PATH'
8505
      hardcode_shlibpath_var=no
8506
      ;;
8507
 
8508
    sysv4.3*)
8509
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510
      hardcode_shlibpath_var=no
8511
      export_dynamic_flag_spec='-Bexport'
8512
      ;;
8513
 
8514
    sysv4*MP*)
8515
      if test -d /usr/nec; then
8516
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517
        hardcode_shlibpath_var=no
8518
        runpath_var=LD_RUN_PATH
8519
        hardcode_runpath_var=yes
8520
        ld_shlibs=yes
8521
      fi
8522
      ;;
8523
 
8524
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8525
      no_undefined_flag='${wl}-z,text'
8526
      archive_cmds_need_lc=no
8527
      hardcode_shlibpath_var=no
8528
      runpath_var='LD_RUN_PATH'
8529
 
8530
      if test "$GCC" = yes; then
8531
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533
      else
8534
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536
      fi
8537
      ;;
8538
 
8539
    sysv5* | sco3.2v5* | sco5v6*)
8540
      # Note: We can NOT use -z defs as we might desire, because we do not
8541
      # link with -lc, and that would cause any symbols used from libc to
8542
      # always be unresolved, which means just about no library would
8543
      # ever link correctly.  If we're not using GNU ld we use -z text
8544
      # though, which does catch some bad symbols but isn't as heavy-handed
8545
      # as -z defs.
8546
      no_undefined_flag='${wl}-z,text'
8547
      allow_undefined_flag='${wl}-z,nodefs'
8548
      archive_cmds_need_lc=no
8549
      hardcode_shlibpath_var=no
8550 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8551 19 jeremybenn
      hardcode_libdir_separator=':'
8552
      link_all_deplibs=yes
8553
      export_dynamic_flag_spec='${wl}-Bexport'
8554
      runpath_var='LD_RUN_PATH'
8555
 
8556
      if test "$GCC" = yes; then
8557 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8558
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 19 jeremybenn
      else
8560 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8561
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8562 19 jeremybenn
      fi
8563
      ;;
8564
 
8565
    uts4*)
8566
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567
      hardcode_libdir_flag_spec='-L$libdir'
8568
      hardcode_shlibpath_var=no
8569
      ;;
8570
 
8571
    *)
8572
      ld_shlibs=no
8573
      ;;
8574
    esac
8575 82 jeremybenn
 
8576
    if test x$host_vendor = xsni; then
8577
      case $host in
8578
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8579
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8580
        ;;
8581
      esac
8582
    fi
8583 19 jeremybenn
  fi
8584
 
8585 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8586 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8587 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8588
 
8589 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8590
 
8591
 
8592
 
8593
 
8594
 
8595
 
8596
 
8597
 
8598
 
8599
 
8600
 
8601
 
8602
 
8603
 
8604
 
8605 19 jeremybenn
#
8606
# Do we need to explicitly link libc?
8607
#
8608
case "x$archive_cmds_need_lc" in
8609
x|xyes)
8610
  # Assume -lc should be added
8611
  archive_cmds_need_lc=yes
8612
 
8613
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8614
    case $archive_cmds in
8615
    *'~'*)
8616
      # FIXME: we may have to deal with multi-command sequences.
8617
      ;;
8618
    '$CC '*)
8619
      # Test whether the compiler implicitly links with -lc since on some
8620
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8621
      # to ld, don't add -lc before -lgcc.
8622 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8623 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8624
      $RM conftest*
8625 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626
 
8627 346 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8628 19 jeremybenn
  (eval $ac_compile) 2>&5
8629
  ac_status=$?
8630 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631
  test $ac_status = 0; } 2>conftest.err; then
8632 19 jeremybenn
        soname=conftest
8633
        lib=conftest
8634
        libobjs=conftest.$ac_objext
8635
        deplibs=
8636
        wl=$lt_prog_compiler_wl
8637
        pic_flag=$lt_prog_compiler_pic
8638
        compiler_flags=-v
8639
        linker_flags=-v
8640
        verstring=
8641
        output_objdir=.
8642
        libname=conftest
8643
        lt_save_allow_undefined_flag=$allow_undefined_flag
8644
        allow_undefined_flag=
8645 346 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8646 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8647 19 jeremybenn
  ac_status=$?
8648 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8649
  test $ac_status = 0; }
8650 19 jeremybenn
        then
8651
          archive_cmds_need_lc=no
8652
        else
8653
          archive_cmds_need_lc=yes
8654
        fi
8655
        allow_undefined_flag=$lt_save_allow_undefined_flag
8656
      else
8657
        cat conftest.err 1>&5
8658
      fi
8659 82 jeremybenn
      $RM conftest*
8660 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8661 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8662 19 jeremybenn
      ;;
8663
    esac
8664
  fi
8665
  ;;
8666
esac
8667
 
8668
 
8669 82 jeremybenn
 
8670
 
8671
 
8672
 
8673
 
8674
 
8675
 
8676
 
8677
 
8678
 
8679
 
8680
 
8681
 
8682
 
8683
 
8684
 
8685
 
8686
 
8687
 
8688
 
8689
 
8690
 
8691
 
8692
 
8693
 
8694
 
8695
 
8696
 
8697
 
8698
 
8699
 
8700
 
8701
 
8702
 
8703
 
8704
 
8705
 
8706
 
8707
 
8708
 
8709
 
8710
 
8711
 
8712
 
8713
 
8714
 
8715
 
8716
 
8717
 
8718
 
8719
 
8720
 
8721
 
8722
 
8723
 
8724
 
8725
 
8726
 
8727
 
8728
 
8729
 
8730
 
8731
 
8732
 
8733
 
8734
 
8735
 
8736
 
8737
 
8738
 
8739
 
8740
 
8741
 
8742
 
8743
 
8744
 
8745
 
8746
 
8747
 
8748
 
8749
 
8750
 
8751
 
8752
 
8753
 
8754
 
8755
 
8756
 
8757
 
8758
 
8759
 
8760
 
8761
 
8762
 
8763
 
8764
 
8765
 
8766
 
8767
 
8768
 
8769
 
8770
 
8771
 
8772
 
8773
 
8774
 
8775
 
8776
 
8777
 
8778
 
8779
 
8780
 
8781
 
8782
 
8783
 
8784
 
8785
 
8786
 
8787
 
8788
 
8789
 
8790
 
8791
 
8792
 
8793
 
8794
 
8795
 
8796
 
8797
 
8798
 
8799
 
8800
 
8801
 
8802
 
8803
 
8804
 
8805
 
8806
 
8807
 
8808
 
8809
 
8810
 
8811
 
8812
 
8813
 
8814
 
8815
 
8816
 
8817
 
8818
 
8819
 
8820
 
8821
 
8822
 
8823
 
8824 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8825 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8826
 
8827 19 jeremybenn
if test "$GCC" = yes; then
8828
  case $host_os in
8829
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8830
    *) lt_awk_arg="/^libraries:/" ;;
8831
  esac
8832
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8833 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8834 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8835
    # otherwise default to the standard path separator (i.e. ":") - it is
8836
    # assumed that no part of a normal pathname contains ";" but that should
8837
    # okay in the real world where ";" in dirpaths is itself problematic.
8838 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8839 19 jeremybenn
  else
8840 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8841 19 jeremybenn
  fi
8842
  # Ok, now we have the path, separated by spaces, we can step through it
8843
  # and add multilib dir if necessary.
8844
  lt_tmp_lt_search_path_spec=
8845
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8846
  for lt_sys_path in $lt_search_path_spec; do
8847
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8848
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8849
    else
8850
      test -d "$lt_sys_path" && \
8851
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8852
    fi
8853
  done
8854 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8855 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8856
  lt_foo="";
8857
  lt_count=0;
8858
  for (lt_i = NF; lt_i > 0; lt_i--) {
8859
    if ($lt_i != "" && $lt_i != ".") {
8860
      if ($lt_i == "..") {
8861
        lt_count++;
8862
      } else {
8863
        if (lt_count == 0) {
8864
          lt_foo="/" $lt_i lt_foo;
8865
        } else {
8866
          lt_count--;
8867
        }
8868
      }
8869
    }
8870
  }
8871
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8872
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8873
}'`
8874 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8875 19 jeremybenn
else
8876
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8877
fi
8878 82 jeremybenn
library_names_spec=
8879
libname_spec='lib$name'
8880
soname_spec=
8881
shrext_cmds=".so"
8882
postinstall_cmds=
8883
postuninstall_cmds=
8884
finish_cmds=
8885
finish_eval=
8886
shlibpath_var=
8887
shlibpath_overrides_runpath=unknown
8888
version_type=none
8889
dynamic_linker="$host_os ld.so"
8890
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8891 19 jeremybenn
need_lib_prefix=unknown
8892
hardcode_into_libs=no
8893
 
8894
# when you set need_version to no, make sure it does not cause -set_version
8895
# flags to be left without arguments
8896
need_version=unknown
8897
 
8898
case $host_os in
8899
aix3*)
8900
  version_type=linux
8901
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8902
  shlibpath_var=LIBPATH
8903
 
8904
  # AIX 3 has no versioning support, so we append a major version to the name.
8905
  soname_spec='${libname}${release}${shared_ext}$major'
8906
  ;;
8907
 
8908 82 jeremybenn
aix[4-9]*)
8909 19 jeremybenn
  version_type=linux
8910
  need_lib_prefix=no
8911
  need_version=no
8912
  hardcode_into_libs=yes
8913
  if test "$host_cpu" = ia64; then
8914
    # AIX 5 supports IA64
8915
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8916
    shlibpath_var=LD_LIBRARY_PATH
8917
  else
8918
    # With GCC up to 2.95.x, collect2 would create an import file
8919
    # for dependence libraries.  The import file would start with
8920
    # the line `#! .'.  This would cause the generated library to
8921
    # depend on `.', always an invalid library.  This was fixed in
8922
    # development snapshots of GCC prior to 3.0.
8923
    case $host_os in
8924
      aix4 | aix4.[01] | aix4.[01].*)
8925
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8926
           echo ' yes '
8927 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8928 19 jeremybenn
        :
8929
      else
8930
        can_build_shared=no
8931
      fi
8932
      ;;
8933
    esac
8934
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8935
    # soname into executable. Probably we can add versioning support to
8936
    # collect2, so additional links can be useful in future.
8937
    if test "$aix_use_runtimelinking" = yes; then
8938
      # If using run time linking (on AIX 4.2 or later) use lib.so
8939
      # instead of lib.a to let people know that these are not
8940
      # typical AIX shared libraries.
8941
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942
    else
8943
      # We preserve .a as extension for shared libraries through AIX4.2
8944
      # and later when we are not doing run time linking.
8945
      library_names_spec='${libname}${release}.a $libname.a'
8946
      soname_spec='${libname}${release}${shared_ext}$major'
8947
    fi
8948
    shlibpath_var=LIBPATH
8949
  fi
8950
  ;;
8951
 
8952
amigaos*)
8953 82 jeremybenn
  case $host_cpu in
8954
  powerpc)
8955
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8956
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8957
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958
    ;;
8959
  m68k)
8960
    library_names_spec='$libname.ixlibrary $libname.a'
8961
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8962
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8963
    ;;
8964
  esac
8965 19 jeremybenn
  ;;
8966
 
8967
beos*)
8968
  library_names_spec='${libname}${shared_ext}'
8969
  dynamic_linker="$host_os ld.so"
8970
  shlibpath_var=LIBRARY_PATH
8971
  ;;
8972
 
8973
bsdi[45]*)
8974
  version_type=linux
8975
  need_version=no
8976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977
  soname_spec='${libname}${release}${shared_ext}$major'
8978
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8979
  shlibpath_var=LD_LIBRARY_PATH
8980
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8981
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8982
  # the default ld.so.conf also contains /usr/contrib/lib and
8983
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8984
  # libtool to hard-code these into programs
8985
  ;;
8986
 
8987 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8988 19 jeremybenn
  version_type=windows
8989
  shrext_cmds=".dll"
8990
  need_version=no
8991
  need_lib_prefix=no
8992
 
8993
  case $GCC,$host_os in
8994 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8995 19 jeremybenn
    library_names_spec='$libname.dll.a'
8996
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8997
    postinstall_cmds='base_file=`basename \${file}`~
8998 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8999 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
9000
      test -d \$dldir || mkdir -p \$dldir~
9001
      $install_prog $dir/$dlname \$dldir/$dlname~
9002 82 jeremybenn
      chmod a+x \$dldir/$dlname~
9003
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9004
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9005
      fi'
9006 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9007
      dlpath=$dir/\$dldll~
9008 82 jeremybenn
       $RM \$dlpath'
9009 19 jeremybenn
    shlibpath_overrides_runpath=yes
9010
 
9011
    case $host_os in
9012
    cygwin*)
9013
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9014
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9015
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9016
      ;;
9017 82 jeremybenn
    mingw* | cegcc*)
9018 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
9019
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9021
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9022 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9023
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9024
        # path with ; separators, and with drive letters. We can handle the
9025
        # drive letters (cygwin fileutils understands them), so leave them,
9026
        # especially as we might pass files found there to a mingw objdump,
9027
        # which wouldn't understand a cygwinified path. Ahh.
9028 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9029 19 jeremybenn
      else
9030 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9031 19 jeremybenn
      fi
9032
      ;;
9033
    pw32*)
9034
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9035
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9036
      ;;
9037
    esac
9038
    ;;
9039
 
9040
  *)
9041
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9042
    ;;
9043
  esac
9044
  dynamic_linker='Win32 ld.exe'
9045
  # FIXME: first we should search . and the directory the executable is in
9046
  shlibpath_var=PATH
9047
  ;;
9048
 
9049
darwin* | rhapsody*)
9050
  dynamic_linker="$host_os dyld"
9051
  version_type=darwin
9052
  need_lib_prefix=no
9053
  need_version=no
9054 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9055 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9056
  shlibpath_overrides_runpath=yes
9057
  shlibpath_var=DYLD_LIBRARY_PATH
9058
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9059
 
9060
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9061
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9062
  ;;
9063
 
9064
dgux*)
9065
  version_type=linux
9066
  need_lib_prefix=no
9067
  need_version=no
9068
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9069
  soname_spec='${libname}${release}${shared_ext}$major'
9070
  shlibpath_var=LD_LIBRARY_PATH
9071
  ;;
9072
 
9073
freebsd1*)
9074
  dynamic_linker=no
9075
  ;;
9076
 
9077
freebsd* | dragonfly*)
9078
  # DragonFly does not have aout.  When/if they implement a new
9079
  # versioning mechanism, adjust this.
9080
  if test -x /usr/bin/objformat; then
9081
    objformat=`/usr/bin/objformat`
9082
  else
9083
    case $host_os in
9084
    freebsd[123]*) objformat=aout ;;
9085
    *) objformat=elf ;;
9086
    esac
9087
  fi
9088
  version_type=freebsd-$objformat
9089
  case $version_type in
9090
    freebsd-elf*)
9091
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9092
      need_version=no
9093
      need_lib_prefix=no
9094
      ;;
9095
    freebsd-*)
9096
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9097
      need_version=yes
9098
      ;;
9099
  esac
9100
  shlibpath_var=LD_LIBRARY_PATH
9101
  case $host_os in
9102
  freebsd2*)
9103
    shlibpath_overrides_runpath=yes
9104
    ;;
9105
  freebsd3.[01]* | freebsdelf3.[01]*)
9106
    shlibpath_overrides_runpath=yes
9107
    hardcode_into_libs=yes
9108
    ;;
9109
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9110
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9111
    shlibpath_overrides_runpath=no
9112
    hardcode_into_libs=yes
9113
    ;;
9114
  *) # from 4.6 on, and DragonFly
9115
    shlibpath_overrides_runpath=yes
9116
    hardcode_into_libs=yes
9117
    ;;
9118
  esac
9119
  ;;
9120
 
9121
gnu*)
9122
  version_type=linux
9123
  need_lib_prefix=no
9124
  need_version=no
9125
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9126
  soname_spec='${libname}${release}${shared_ext}$major'
9127
  shlibpath_var=LD_LIBRARY_PATH
9128
  hardcode_into_libs=yes
9129
  ;;
9130
 
9131
hpux9* | hpux10* | hpux11*)
9132
  # Give a soname corresponding to the major version so that dld.sl refuses to
9133
  # link against other versions.
9134
  version_type=sunos
9135
  need_lib_prefix=no
9136
  need_version=no
9137
  case $host_cpu in
9138
  ia64*)
9139
    shrext_cmds='.so'
9140
    hardcode_into_libs=yes
9141
    dynamic_linker="$host_os dld.so"
9142
    shlibpath_var=LD_LIBRARY_PATH
9143
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9144
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145
    soname_spec='${libname}${release}${shared_ext}$major'
9146
    if test "X$HPUX_IA64_MODE" = X32; then
9147
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9148
    else
9149
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9150
    fi
9151
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9152
    ;;
9153 82 jeremybenn
  hppa*64*)
9154 19 jeremybenn
    shrext_cmds='.sl'
9155 82 jeremybenn
    hardcode_into_libs=yes
9156 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9157 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9158
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160
    soname_spec='${libname}${release}${shared_ext}$major'
9161
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9162
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9163
    ;;
9164
  *)
9165
    shrext_cmds='.sl'
9166
    dynamic_linker="$host_os dld.sl"
9167 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9168
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9169
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170
    soname_spec='${libname}${release}${shared_ext}$major'
9171
    ;;
9172
  esac
9173
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9174
  postinstall_cmds='chmod 555 $lib'
9175
  ;;
9176
 
9177
interix[3-9]*)
9178
  version_type=linux
9179
  need_lib_prefix=no
9180
  need_version=no
9181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9182
  soname_spec='${libname}${release}${shared_ext}$major'
9183
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9184
  shlibpath_var=LD_LIBRARY_PATH
9185
  shlibpath_overrides_runpath=no
9186
  hardcode_into_libs=yes
9187
  ;;
9188
 
9189
irix5* | irix6* | nonstopux*)
9190
  case $host_os in
9191
    nonstopux*) version_type=nonstopux ;;
9192
    *)
9193
        if test "$lt_cv_prog_gnu_ld" = yes; then
9194
                version_type=linux
9195
        else
9196
                version_type=irix
9197
        fi ;;
9198
  esac
9199
  need_lib_prefix=no
9200
  need_version=no
9201
  soname_spec='${libname}${release}${shared_ext}$major'
9202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9203
  case $host_os in
9204
  irix5* | nonstopux*)
9205
    libsuff= shlibsuff=
9206
    ;;
9207
  *)
9208
    case $LD in # libtool.m4 will add one of these switches to LD
9209
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9210
      libsuff= shlibsuff= libmagic=32-bit;;
9211
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9212
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9213
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9214
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9215
    *) libsuff= shlibsuff= libmagic=never-match;;
9216
    esac
9217
    ;;
9218
  esac
9219
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9220
  shlibpath_overrides_runpath=no
9221
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9222
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9223
  hardcode_into_libs=yes
9224
  ;;
9225
 
9226
# No shared lib support for Linux oldld, aout, or coff.
9227
linux*oldld* | linux*aout* | linux*coff*)
9228
  dynamic_linker=no
9229
  ;;
9230
 
9231
# This must be Linux ELF.
9232
linux* | k*bsd*-gnu)
9233
  version_type=linux
9234
  need_lib_prefix=no
9235
  need_version=no
9236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237
  soname_spec='${libname}${release}${shared_ext}$major'
9238
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9239
  shlibpath_var=LD_LIBRARY_PATH
9240
  shlibpath_overrides_runpath=no
9241 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9242
  save_LDFLAGS=$LDFLAGS
9243
  save_libdir=$libdir
9244
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9245
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9246 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 82 jeremybenn
/* end confdefs.h.  */
9248
 
9249
int
9250
main ()
9251
{
9252
 
9253
  ;
9254
  return 0;
9255
}
9256
_ACEOF
9257 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9258
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9259 82 jeremybenn
  shlibpath_overrides_runpath=yes
9260
fi
9261
fi
9262 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9263
    conftest$ac_exeext conftest.$ac_ext
9264 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9265
  libdir=$save_libdir
9266
 
9267 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9268
  # Some rework will be needed to allow for fast_install
9269
  # before this can be enabled.
9270
  hardcode_into_libs=yes
9271
 
9272
  # Append ld.so.conf contents to the search path
9273
  if test -f /etc/ld.so.conf; then
9274 82 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;/^$/d' | tr '\n' ' '`
9275 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9276 19 jeremybenn
  fi
9277
 
9278
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9279
  # powerpc, because MkLinux only supported shared libraries with the
9280
  # GNU dynamic linker.  Since this was broken with cross compilers,
9281
  # most powerpc-linux boxes support dynamic linking these days and
9282
  # people can always --disable-shared, the test was removed, and we
9283
  # assume the GNU/Linux dynamic linker is in use.
9284
  dynamic_linker='GNU/Linux ld.so'
9285
  ;;
9286
 
9287 93 jeremybenn
netbsdelf*-gnu)
9288
  version_type=linux
9289
  need_lib_prefix=no
9290
  need_version=no
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9292
  soname_spec='${libname}${release}${shared_ext}$major'
9293
  shlibpath_var=LD_LIBRARY_PATH
9294
  shlibpath_overrides_runpath=no
9295
  hardcode_into_libs=yes
9296
  dynamic_linker='NetBSD ld.elf_so'
9297
  ;;
9298
 
9299 19 jeremybenn
netbsd*)
9300
  version_type=sunos
9301
  need_lib_prefix=no
9302
  need_version=no
9303 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9304 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9305
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9306
    dynamic_linker='NetBSD (a.out) ld.so'
9307
  else
9308
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9309
    soname_spec='${libname}${release}${shared_ext}$major'
9310
    dynamic_linker='NetBSD ld.elf_so'
9311
  fi
9312
  shlibpath_var=LD_LIBRARY_PATH
9313
  shlibpath_overrides_runpath=yes
9314
  hardcode_into_libs=yes
9315
  ;;
9316
 
9317
newsos6)
9318
  version_type=linux
9319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320
  shlibpath_var=LD_LIBRARY_PATH
9321
  shlibpath_overrides_runpath=yes
9322
  ;;
9323
 
9324 82 jeremybenn
*nto* | *qnx*)
9325
  version_type=qnx
9326 19 jeremybenn
  need_lib_prefix=no
9327
  need_version=no
9328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329
  soname_spec='${libname}${release}${shared_ext}$major'
9330
  shlibpath_var=LD_LIBRARY_PATH
9331 82 jeremybenn
  shlibpath_overrides_runpath=no
9332
  hardcode_into_libs=yes
9333
  dynamic_linker='ldqnx.so'
9334 19 jeremybenn
  ;;
9335
 
9336
openbsd*)
9337
  version_type=sunos
9338
  sys_lib_dlsearch_path_spec="/usr/lib"
9339
  need_lib_prefix=no
9340
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9341
  case $host_os in
9342 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9343
    *)                          need_version=no  ;;
9344 19 jeremybenn
  esac
9345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9346
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9347
  shlibpath_var=LD_LIBRARY_PATH
9348 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9349 19 jeremybenn
    case $host_os in
9350
      openbsd2.[89] | openbsd2.[89].*)
9351
        shlibpath_overrides_runpath=no
9352
        ;;
9353
      *)
9354
        shlibpath_overrides_runpath=yes
9355
        ;;
9356
      esac
9357
  else
9358
    shlibpath_overrides_runpath=yes
9359
  fi
9360
  ;;
9361
 
9362
os2*)
9363
  libname_spec='$name'
9364
  shrext_cmds=".dll"
9365
  need_lib_prefix=no
9366
  library_names_spec='$libname${shared_ext} $libname.a'
9367
  dynamic_linker='OS/2 ld.exe'
9368
  shlibpath_var=LIBPATH
9369
  ;;
9370
 
9371
osf3* | osf4* | osf5*)
9372
  version_type=osf
9373
  need_lib_prefix=no
9374
  need_version=no
9375
  soname_spec='${libname}${release}${shared_ext}$major'
9376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9377
  shlibpath_var=LD_LIBRARY_PATH
9378
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9379
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9380
  ;;
9381
 
9382
rdos*)
9383
  dynamic_linker=no
9384
  ;;
9385
 
9386
solaris*)
9387
  version_type=linux
9388
  need_lib_prefix=no
9389
  need_version=no
9390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391
  soname_spec='${libname}${release}${shared_ext}$major'
9392
  shlibpath_var=LD_LIBRARY_PATH
9393
  shlibpath_overrides_runpath=yes
9394
  hardcode_into_libs=yes
9395
  # ldd complains unless libraries are executable
9396
  postinstall_cmds='chmod +x $lib'
9397
  ;;
9398
 
9399
sunos4*)
9400
  version_type=sunos
9401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9403
  shlibpath_var=LD_LIBRARY_PATH
9404
  shlibpath_overrides_runpath=yes
9405
  if test "$with_gnu_ld" = yes; then
9406
    need_lib_prefix=no
9407
  fi
9408
  need_version=yes
9409
  ;;
9410
 
9411
sysv4 | sysv4.3*)
9412
  version_type=linux
9413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414
  soname_spec='${libname}${release}${shared_ext}$major'
9415
  shlibpath_var=LD_LIBRARY_PATH
9416
  case $host_vendor in
9417
    sni)
9418
      shlibpath_overrides_runpath=no
9419
      need_lib_prefix=no
9420
      runpath_var=LD_RUN_PATH
9421
      ;;
9422
    siemens)
9423
      need_lib_prefix=no
9424
      ;;
9425
    motorola)
9426
      need_lib_prefix=no
9427
      need_version=no
9428
      shlibpath_overrides_runpath=no
9429
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9430
      ;;
9431
  esac
9432
  ;;
9433
 
9434
sysv4*MP*)
9435
  if test -d /usr/nec ;then
9436
    version_type=linux
9437
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9438
    soname_spec='$libname${shared_ext}.$major'
9439
    shlibpath_var=LD_LIBRARY_PATH
9440
  fi
9441
  ;;
9442
 
9443
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9444
  version_type=freebsd-elf
9445
  need_lib_prefix=no
9446
  need_version=no
9447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9448
  soname_spec='${libname}${release}${shared_ext}$major'
9449
  shlibpath_var=LD_LIBRARY_PATH
9450 82 jeremybenn
  shlibpath_overrides_runpath=yes
9451 19 jeremybenn
  hardcode_into_libs=yes
9452
  if test "$with_gnu_ld" = yes; then
9453
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9454
  else
9455
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9456
    case $host_os in
9457
      sco3.2v5*)
9458
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9459
        ;;
9460
    esac
9461
  fi
9462
  sys_lib_dlsearch_path_spec='/usr/lib'
9463
  ;;
9464
 
9465 82 jeremybenn
tpf*)
9466
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9467
  version_type=linux
9468
  need_lib_prefix=no
9469
  need_version=no
9470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9471
  shlibpath_var=LD_LIBRARY_PATH
9472
  shlibpath_overrides_runpath=no
9473
  hardcode_into_libs=yes
9474
  ;;
9475
 
9476 19 jeremybenn
uts4*)
9477
  version_type=linux
9478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479
  soname_spec='${libname}${release}${shared_ext}$major'
9480
  shlibpath_var=LD_LIBRARY_PATH
9481
  ;;
9482
 
9483
*)
9484
  dynamic_linker=no
9485
  ;;
9486
esac
9487 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9488 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9489 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9490
 
9491
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9492
if test "$GCC" = yes; then
9493
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9494
fi
9495
 
9496 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9497
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9498
fi
9499
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9500
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9501
fi
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
 
9537
 
9538
 
9539
 
9540
 
9541
 
9542
 
9543
 
9544
 
9545
 
9546
 
9547
 
9548
 
9549
 
9550
 
9551
 
9552
 
9553
 
9554
 
9555
 
9556
 
9557
 
9558
 
9559
 
9560
 
9561
 
9562
 
9563
 
9564
 
9565
 
9566
 
9567
 
9568
 
9569
 
9570
 
9571
 
9572
 
9573
 
9574
 
9575
 
9576
 
9577
 
9578
 
9579
 
9580
 
9581
 
9582
 
9583
 
9584
 
9585
 
9586
 
9587
 
9588
 
9589 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9590 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9591 19 jeremybenn
hardcode_action=
9592 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9593
   test -n "$runpath_var" ||
9594 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9595
 
9596 82 jeremybenn
  # We can hardcode non-existent directories.
9597 19 jeremybenn
  if test "$hardcode_direct" != no &&
9598
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9599
     # have to relink, otherwise we might link with an installed library
9600
     # when we should be linking with a yet-to-be-installed one
9601 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9602 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9603
    # Linking always hardcodes the temporary library directory.
9604
    hardcode_action=relink
9605
  else
9606
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9607
    hardcode_action=immediate
9608
  fi
9609
else
9610
  # We cannot hardcode anything, or else we can only hardcode existing
9611
  # directories.
9612
  hardcode_action=unsupported
9613
fi
9614 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9615 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9616 19 jeremybenn
 
9617 82 jeremybenn
if test "$hardcode_action" = relink ||
9618
   test "$inherit_rpath" = yes; then
9619 19 jeremybenn
  # Fast installation is not supported
9620
  enable_fast_install=no
9621
elif test "$shlibpath_overrides_runpath" = yes ||
9622
     test "$enable_shared" = no; then
9623
  # Fast installation is not necessary
9624
  enable_fast_install=needless
9625
fi
9626
 
9627
 
9628 82 jeremybenn
 
9629
 
9630
 
9631
 
9632
  if test "x$enable_dlopen" != xyes; then
9633 19 jeremybenn
  enable_dlopen=unknown
9634
  enable_dlopen_self=unknown
9635
  enable_dlopen_self_static=unknown
9636
else
9637
  lt_cv_dlopen=no
9638
  lt_cv_dlopen_libs=
9639
 
9640
  case $host_os in
9641
  beos*)
9642
    lt_cv_dlopen="load_add_on"
9643
    lt_cv_dlopen_libs=
9644
    lt_cv_dlopen_self=yes
9645
    ;;
9646
 
9647 82 jeremybenn
  mingw* | pw32* | cegcc*)
9648 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9649
    lt_cv_dlopen_libs=
9650 82 jeremybenn
    ;;
9651 19 jeremybenn
 
9652
  cygwin*)
9653
    lt_cv_dlopen="dlopen"
9654
    lt_cv_dlopen_libs=
9655 82 jeremybenn
    ;;
9656 19 jeremybenn
 
9657
  darwin*)
9658
  # if libdl is installed we need to link against it
9659 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9660 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9661 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
9662 82 jeremybenn
  $as_echo_n "(cached) " >&6
9663 19 jeremybenn
else
9664
  ac_check_lib_save_LIBS=$LIBS
9665
LIBS="-ldl  $LIBS"
9666 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 19 jeremybenn
/* end confdefs.h.  */
9668
 
9669
/* Override any GCC internal prototype to avoid an error.
9670
   Use char because int might match the return type of a GCC
9671
   builtin and then its argument prototype would still apply.  */
9672
#ifdef __cplusplus
9673
extern "C"
9674
#endif
9675
char dlopen ();
9676
int
9677
main ()
9678
{
9679
return dlopen ();
9680
  ;
9681
  return 0;
9682
}
9683
_ACEOF
9684 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9685 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9686
else
9687 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9688 19 jeremybenn
fi
9689 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9690
    conftest$ac_exeext conftest.$ac_ext
9691 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9692
fi
9693 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9694 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9695 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9696 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9697
else
9698
 
9699
    lt_cv_dlopen="dyld"
9700
    lt_cv_dlopen_libs=
9701
    lt_cv_dlopen_self=yes
9702
 
9703
fi
9704
 
9705 82 jeremybenn
    ;;
9706 19 jeremybenn
 
9707
  *)
9708 346 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9709 625 jeremybenn
if test "x$ac_cv_func_shl_load" = xyes; then :
9710 19 jeremybenn
  lt_cv_dlopen="shl_load"
9711
else
9712 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9713 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9714 625 jeremybenn
if ${ac_cv_lib_dld_shl_load+:} false; then :
9715 82 jeremybenn
  $as_echo_n "(cached) " >&6
9716 19 jeremybenn
else
9717
  ac_check_lib_save_LIBS=$LIBS
9718
LIBS="-ldld  $LIBS"
9719 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 19 jeremybenn
/* end confdefs.h.  */
9721
 
9722
/* Override any GCC internal prototype to avoid an error.
9723
   Use char because int might match the return type of a GCC
9724
   builtin and then its argument prototype would still apply.  */
9725
#ifdef __cplusplus
9726
extern "C"
9727
#endif
9728
char shl_load ();
9729
int
9730
main ()
9731
{
9732
return shl_load ();
9733
  ;
9734
  return 0;
9735
}
9736
_ACEOF
9737 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9738 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9739
else
9740 346 jeremybenn
  ac_cv_lib_dld_shl_load=no
9741 19 jeremybenn
fi
9742 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9743
    conftest$ac_exeext conftest.$ac_ext
9744 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9745
fi
9746 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9747 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9748 625 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9749 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9750 19 jeremybenn
else
9751 346 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9752 625 jeremybenn
if test "x$ac_cv_func_dlopen" = xyes; then :
9753 19 jeremybenn
  lt_cv_dlopen="dlopen"
9754
else
9755 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9756 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9757 625 jeremybenn
if ${ac_cv_lib_dl_dlopen+:} false; then :
9758 82 jeremybenn
  $as_echo_n "(cached) " >&6
9759 19 jeremybenn
else
9760
  ac_check_lib_save_LIBS=$LIBS
9761
LIBS="-ldl  $LIBS"
9762 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 19 jeremybenn
/* end confdefs.h.  */
9764
 
9765
/* Override any GCC internal prototype to avoid an error.
9766
   Use char because int might match the return type of a GCC
9767
   builtin and then its argument prototype would still apply.  */
9768
#ifdef __cplusplus
9769
extern "C"
9770
#endif
9771
char dlopen ();
9772
int
9773
main ()
9774
{
9775
return dlopen ();
9776
  ;
9777
  return 0;
9778
}
9779
_ACEOF
9780 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9781 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9782
else
9783 346 jeremybenn
  ac_cv_lib_dl_dlopen=no
9784 19 jeremybenn
fi
9785 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9786
    conftest$ac_exeext conftest.$ac_ext
9787 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9788
fi
9789 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9790 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9791 625 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9792 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9793
else
9794 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9795 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9796 625 jeremybenn
if ${ac_cv_lib_svld_dlopen+:} false; then :
9797 82 jeremybenn
  $as_echo_n "(cached) " >&6
9798 19 jeremybenn
else
9799
  ac_check_lib_save_LIBS=$LIBS
9800
LIBS="-lsvld  $LIBS"
9801 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 19 jeremybenn
/* end confdefs.h.  */
9803
 
9804
/* Override any GCC internal prototype to avoid an error.
9805
   Use char because int might match the return type of a GCC
9806
   builtin and then its argument prototype would still apply.  */
9807
#ifdef __cplusplus
9808
extern "C"
9809
#endif
9810
char dlopen ();
9811
int
9812
main ()
9813
{
9814
return dlopen ();
9815
  ;
9816
  return 0;
9817
}
9818
_ACEOF
9819 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9820 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9821
else
9822 346 jeremybenn
  ac_cv_lib_svld_dlopen=no
9823 19 jeremybenn
fi
9824 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9825
    conftest$ac_exeext conftest.$ac_ext
9826 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9827
fi
9828 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9829 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9830 625 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9831 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9832
else
9833 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9834 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9835 625 jeremybenn
if ${ac_cv_lib_dld_dld_link+:} false; then :
9836 82 jeremybenn
  $as_echo_n "(cached) " >&6
9837 19 jeremybenn
else
9838
  ac_check_lib_save_LIBS=$LIBS
9839
LIBS="-ldld  $LIBS"
9840 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 19 jeremybenn
/* end confdefs.h.  */
9842
 
9843
/* Override any GCC internal prototype to avoid an error.
9844
   Use char because int might match the return type of a GCC
9845
   builtin and then its argument prototype would still apply.  */
9846
#ifdef __cplusplus
9847
extern "C"
9848
#endif
9849
char dld_link ();
9850
int
9851
main ()
9852
{
9853
return dld_link ();
9854
  ;
9855
  return 0;
9856
}
9857
_ACEOF
9858 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9859 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9860
else
9861 346 jeremybenn
  ac_cv_lib_dld_dld_link=no
9862 19 jeremybenn
fi
9863 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9864
    conftest$ac_exeext conftest.$ac_ext
9865 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9866
fi
9867 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9868 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9869 625 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9870 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9871 19 jeremybenn
fi
9872
 
9873
 
9874
fi
9875
 
9876
 
9877
fi
9878
 
9879
 
9880
fi
9881
 
9882
 
9883
fi
9884
 
9885
 
9886
fi
9887
 
9888
    ;;
9889
  esac
9890
 
9891
  if test "x$lt_cv_dlopen" != xno; then
9892
    enable_dlopen=yes
9893
  else
9894
    enable_dlopen=no
9895
  fi
9896
 
9897
  case $lt_cv_dlopen in
9898
  dlopen)
9899
    save_CPPFLAGS="$CPPFLAGS"
9900
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9901
 
9902
    save_LDFLAGS="$LDFLAGS"
9903
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9904
 
9905
    save_LIBS="$LIBS"
9906
    LIBS="$lt_cv_dlopen_libs $LIBS"
9907
 
9908 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9909 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9910 625 jeremybenn
if ${lt_cv_dlopen_self+:} false; then :
9911 82 jeremybenn
  $as_echo_n "(cached) " >&6
9912 19 jeremybenn
else
9913
          if test "$cross_compiling" = yes; then :
9914
  lt_cv_dlopen_self=cross
9915
else
9916
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9917
  lt_status=$lt_dlunknown
9918 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9919 625 jeremybenn
#line 9919 "configure"
9920 19 jeremybenn
#include "confdefs.h"
9921
 
9922
#if HAVE_DLFCN_H
9923
#include 
9924
#endif
9925
 
9926
#include 
9927
 
9928
#ifdef RTLD_GLOBAL
9929
#  define LT_DLGLOBAL           RTLD_GLOBAL
9930
#else
9931
#  ifdef DL_GLOBAL
9932
#    define LT_DLGLOBAL         DL_GLOBAL
9933
#  else
9934
#    define LT_DLGLOBAL         0
9935
#  endif
9936
#endif
9937
 
9938
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9939
   find out it does not work in some platform. */
9940
#ifndef LT_DLLAZY_OR_NOW
9941
#  ifdef RTLD_LAZY
9942
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9943
#  else
9944
#    ifdef DL_LAZY
9945
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9946
#    else
9947
#      ifdef RTLD_NOW
9948
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9949
#      else
9950
#        ifdef DL_NOW
9951
#          define LT_DLLAZY_OR_NOW      DL_NOW
9952
#        else
9953
#          define LT_DLLAZY_OR_NOW      0
9954
#        endif
9955
#      endif
9956
#    endif
9957
#  endif
9958
#endif
9959
 
9960
void fnord() { int i=42;}
9961
int main ()
9962
{
9963
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9964
  int status = $lt_dlunknown;
9965
 
9966
  if (self)
9967
    {
9968
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9969
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9970
      /* dlclose (self); */
9971
    }
9972
  else
9973
    puts (dlerror ());
9974
 
9975 82 jeremybenn
  return status;
9976 19 jeremybenn
}
9977 82 jeremybenn
_LT_EOF
9978 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9979 19 jeremybenn
  (eval $ac_link) 2>&5
9980
  ac_status=$?
9981 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9982
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9983 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9984
    lt_status=$?
9985
    case x$lt_status in
9986
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9987
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9988
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9989
    esac
9990
  else :
9991
    # compilation failed
9992
    lt_cv_dlopen_self=no
9993
  fi
9994
fi
9995
rm -fr conftest*
9996
 
9997
 
9998
fi
9999 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10000 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
10001 19 jeremybenn
 
10002
    if test "x$lt_cv_dlopen_self" = xyes; then
10003
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10004 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10005 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10006 625 jeremybenn
if ${lt_cv_dlopen_self_static+:} false; then :
10007 82 jeremybenn
  $as_echo_n "(cached) " >&6
10008 19 jeremybenn
else
10009
          if test "$cross_compiling" = yes; then :
10010
  lt_cv_dlopen_self_static=cross
10011
else
10012
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10013
  lt_status=$lt_dlunknown
10014 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
10015 625 jeremybenn
#line 10015 "configure"
10016 19 jeremybenn
#include "confdefs.h"
10017
 
10018
#if HAVE_DLFCN_H
10019
#include 
10020
#endif
10021
 
10022
#include 
10023
 
10024
#ifdef RTLD_GLOBAL
10025
#  define LT_DLGLOBAL           RTLD_GLOBAL
10026
#else
10027
#  ifdef DL_GLOBAL
10028
#    define LT_DLGLOBAL         DL_GLOBAL
10029
#  else
10030
#    define LT_DLGLOBAL         0
10031
#  endif
10032
#endif
10033
 
10034
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10035
   find out it does not work in some platform. */
10036
#ifndef LT_DLLAZY_OR_NOW
10037
#  ifdef RTLD_LAZY
10038
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10039
#  else
10040
#    ifdef DL_LAZY
10041
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10042
#    else
10043
#      ifdef RTLD_NOW
10044
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10045
#      else
10046
#        ifdef DL_NOW
10047
#          define LT_DLLAZY_OR_NOW      DL_NOW
10048
#        else
10049
#          define LT_DLLAZY_OR_NOW      0
10050
#        endif
10051
#      endif
10052
#    endif
10053
#  endif
10054
#endif
10055
 
10056
void fnord() { int i=42;}
10057
int main ()
10058
{
10059
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10060
  int status = $lt_dlunknown;
10061
 
10062
  if (self)
10063
    {
10064
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10065
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10066
      /* dlclose (self); */
10067
    }
10068
  else
10069
    puts (dlerror ());
10070
 
10071 82 jeremybenn
  return status;
10072 19 jeremybenn
}
10073 82 jeremybenn
_LT_EOF
10074 346 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10075 19 jeremybenn
  (eval $ac_link) 2>&5
10076
  ac_status=$?
10077 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10079 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10080
    lt_status=$?
10081
    case x$lt_status in
10082
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10083
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10084
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10085
    esac
10086
  else :
10087
    # compilation failed
10088
    lt_cv_dlopen_self_static=no
10089
  fi
10090
fi
10091
rm -fr conftest*
10092
 
10093
 
10094
fi
10095 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10096 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10097 19 jeremybenn
    fi
10098
 
10099
    CPPFLAGS="$save_CPPFLAGS"
10100
    LDFLAGS="$save_LDFLAGS"
10101
    LIBS="$save_LIBS"
10102
    ;;
10103
  esac
10104
 
10105
  case $lt_cv_dlopen_self in
10106
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10107
  *) enable_dlopen_self=unknown ;;
10108
  esac
10109
 
10110
  case $lt_cv_dlopen_self_static in
10111
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10112
  *) enable_dlopen_self_static=unknown ;;
10113
  esac
10114
fi
10115
 
10116
 
10117
 
10118
 
10119
 
10120
 
10121
 
10122
 
10123
 
10124
 
10125
 
10126
 
10127
 
10128
 
10129
 
10130
 
10131
 
10132 82 jeremybenn
striplib=
10133
old_striplib=
10134 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10135 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10136
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10137
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10138
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10139 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10140 82 jeremybenn
$as_echo "yes" >&6; }
10141
else
10142
# FIXME - insert some real tests, host_os isn't really good enough
10143 19 jeremybenn
  case $host_os in
10144 82 jeremybenn
  darwin*)
10145
    if test -n "$STRIP" ; then
10146
      striplib="$STRIP -x"
10147
      old_striplib="$STRIP -S"
10148 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10149 82 jeremybenn
$as_echo "yes" >&6; }
10150 19 jeremybenn
    else
10151 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 82 jeremybenn
$as_echo "no" >&6; }
10153 19 jeremybenn
    fi
10154
    ;;
10155
  *)
10156 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 82 jeremybenn
$as_echo "no" >&6; }
10158 19 jeremybenn
    ;;
10159
  esac
10160
fi
10161
 
10162
 
10163
 
10164
 
10165
 
10166
 
10167
 
10168
 
10169
 
10170
 
10171
 
10172
 
10173 82 jeremybenn
  # Report which library types will actually be built
10174 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10175 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10176 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10177 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10178 19 jeremybenn
 
10179 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10180 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10181
  test "$can_build_shared" = "no" && enable_shared=no
10182 19 jeremybenn
 
10183 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10184
  # are all built from PIC.
10185 19 jeremybenn
  case $host_os in
10186 82 jeremybenn
  aix3*)
10187 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10188 82 jeremybenn
    if test -n "$RANLIB"; then
10189
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10190
      postinstall_cmds='$RANLIB $lib'
10191 19 jeremybenn
    fi
10192
    ;;
10193
 
10194 82 jeremybenn
  aix[4-9]*)
10195
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10196
      test "$enable_shared" = yes && enable_static=no
10197 19 jeremybenn
    fi
10198
    ;;
10199
  esac
10200 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10201 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10202 19 jeremybenn
 
10203 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10204 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10205
  # Make sure either enable_shared or enable_static is yes.
10206
  test "$enable_shared" = yes || enable_static=yes
10207 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10208 82 jeremybenn
$as_echo "$enable_static" >&6; }
10209 19 jeremybenn
 
10210
 
10211
 
10212
 
10213
fi
10214
ac_ext=c
10215
ac_cpp='$CPP $CPPFLAGS'
10216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10219
 
10220
CC="$lt_save_CC"
10221
 
10222
 
10223
 
10224
 
10225
 
10226
 
10227
 
10228
 
10229
 
10230
 
10231
 
10232
 
10233
 
10234 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10235 19 jeremybenn
 
10236
 
10237
 
10238
 
10239 82 jeremybenn
# Only expand once:
10240 19 jeremybenn
 
10241
 
10242 82 jeremybenn
am__api_version='1.11'
10243 19 jeremybenn
 
10244
# Find a good install program.  We prefer a C program (faster),
10245
# so one script is as good as another.  But avoid the broken or
10246
# incompatible versions:
10247
# SysV /etc/install, /usr/sbin/install
10248
# SunOS /usr/etc/install
10249
# IRIX /sbin/install
10250
# AIX /bin/install
10251
# AmigaOS /C/install, which installs bootblocks on floppy discs
10252
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10253
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10254
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10255
# OS/2's system install, which has a completely different semantic
10256
# ./install, which can be erroneously created by make from ./install.sh.
10257 82 jeremybenn
# Reject install programs that cannot install multiple files.
10258 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10259 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10260 19 jeremybenn
if test -z "$INSTALL"; then
10261 625 jeremybenn
if ${ac_cv_path_install+:} false; then :
10262 82 jeremybenn
  $as_echo_n "(cached) " >&6
10263 19 jeremybenn
else
10264
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10265
for as_dir in $PATH
10266
do
10267
  IFS=$as_save_IFS
10268
  test -z "$as_dir" && as_dir=.
10269 346 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10270
case $as_dir/ in #((
10271
  ./ | .// | /[cC]/* | \
10272 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10273 346 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10274 19 jeremybenn
  /usr/ucb/* ) ;;
10275
  *)
10276
    # OSF1 and SCO ODT 3.0 have their own names for install.
10277
    # Don't use installbsd from OSF since it installs stuff as root
10278
    # by default.
10279
    for ac_prog in ginstall scoinst install; do
10280
      for ac_exec_ext in '' $ac_executable_extensions; do
10281
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10282
          if test $ac_prog = install &&
10283
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10284
            # AIX install.  It has an incompatible calling convention.
10285
            :
10286
          elif test $ac_prog = install &&
10287
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10288
            # program-specific install script used by HP pwplus--don't use.
10289
            :
10290
          else
10291 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10292
            echo one > conftest.one
10293
            echo two > conftest.two
10294
            mkdir conftest.dir
10295
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10296
              test -s conftest.one && test -s conftest.two &&
10297
              test -s conftest.dir/conftest.one &&
10298
              test -s conftest.dir/conftest.two
10299
            then
10300
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10301
              break 3
10302
            fi
10303 19 jeremybenn
          fi
10304
        fi
10305
      done
10306
    done
10307
    ;;
10308
esac
10309 82 jeremybenn
 
10310 346 jeremybenn
  done
10311 19 jeremybenn
IFS=$as_save_IFS
10312
 
10313 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10314 19 jeremybenn
 
10315
fi
10316
  if test "${ac_cv_path_install+set}" = set; then
10317
    INSTALL=$ac_cv_path_install
10318
  else
10319
    # As a last resort, use the slow shell script.  Don't cache a
10320
    # value for INSTALL within a source directory, because that will
10321
    # break other packages using the cache if that directory is
10322
    # removed, or if the value is a relative name.
10323
    INSTALL=$ac_install_sh
10324
  fi
10325
fi
10326 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10327 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10328 19 jeremybenn
 
10329
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10330
# It thinks the first close brace ends the variable substitution.
10331
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10332
 
10333
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10334
 
10335
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10336
 
10337 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10338 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10339 19 jeremybenn
# Just in case
10340
sleep 1
10341
echo timestamp > conftest.file
10342 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10343
# name.  Accept space and tab only in the latter.
10344
am_lf='
10345
'
10346
case `pwd` in
10347
  *[\\\"\#\$\&\'\`$am_lf]*)
10348 625 jeremybenn
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10349 82 jeremybenn
esac
10350
case $srcdir in
10351
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10352 625 jeremybenn
    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10353 82 jeremybenn
esac
10354
 
10355 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10356
# arguments.  Must try -L first in case configure is actually a
10357
# symlink; some systems play weird games with the mod time of symlinks
10358
# (eg FreeBSD returns the mod time of the symlink's containing
10359
# directory).
10360
if (
10361 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10362 19 jeremybenn
   if test "$*" = "X"; then
10363
      # -L didn't work.
10364 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10365 19 jeremybenn
   fi
10366
   rm -f conftest.file
10367
   if test "$*" != "X $srcdir/configure conftest.file" \
10368
      && test "$*" != "X conftest.file $srcdir/configure"; then
10369
 
10370
      # If neither matched, then we have a broken ls.  This can happen
10371
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10372
      # broken ls alias from the environment.  This has actually
10373
      # happened.  Such a system could not be considered "sane".
10374 625 jeremybenn
      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10375 346 jeremybenn
alias in your environment" "$LINENO" 5
10376 19 jeremybenn
   fi
10377
 
10378
   test "$2" = conftest.file
10379
   )
10380
then
10381
   # Ok.
10382
   :
10383
else
10384 625 jeremybenn
   as_fn_error $? "newly created file is older than distributed files!
10385 346 jeremybenn
Check your system clock" "$LINENO" 5
10386 19 jeremybenn
fi
10387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388 82 jeremybenn
$as_echo "yes" >&6; }
10389 19 jeremybenn
test "$program_prefix" != NONE &&
10390
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10391
# Use a double $ so make ignores it.
10392
test "$program_suffix" != NONE &&
10393
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10394 82 jeremybenn
# Double any \ or $.
10395 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10396 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10397
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10398 19 jeremybenn
 
10399
# expand $ac_aux_dir to an absolute path
10400
am_aux_dir=`cd $ac_aux_dir && pwd`
10401
 
10402 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10403
  case $am_aux_dir in
10404
  *\ * | *\     *)
10405
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10406
  *)
10407
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10408
  esac
10409
fi
10410 19 jeremybenn
# Use eval to expand $SHELL
10411
if eval "$MISSING --run true"; then
10412
  am_missing_run="$MISSING --run "
10413
else
10414
  am_missing_run=
10415 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10416 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10417 19 jeremybenn
fi
10418
 
10419 82 jeremybenn
if test x"${install_sh}" != xset; then
10420
  case $am_aux_dir in
10421
  *\ * | *\     *)
10422
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10423
  *)
10424
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10425
  esac
10426
fi
10427
 
10428
# Installed binaries are usually stripped using `strip' when the user
10429
# run `make install-strip'.  However `strip' might not be the right
10430
# tool to use in cross-compilation environments, therefore Automake
10431
# will honor the `STRIP' environment variable to overrule this program.
10432
if test "$cross_compiling" != no; then
10433
  if test -n "$ac_tool_prefix"; then
10434
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10435
set dummy ${ac_tool_prefix}strip; ac_word=$2
10436 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10438 625 jeremybenn
if ${ac_cv_prog_STRIP+:} false; then :
10439 82 jeremybenn
  $as_echo_n "(cached) " >&6
10440
else
10441
  if test -n "$STRIP"; then
10442
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10443
else
10444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445
for as_dir in $PATH
10446
do
10447
  IFS=$as_save_IFS
10448
  test -z "$as_dir" && as_dir=.
10449 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10450 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10451
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10452 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 82 jeremybenn
    break 2
10454
  fi
10455
done
10456 346 jeremybenn
  done
10457 82 jeremybenn
IFS=$as_save_IFS
10458
 
10459
fi
10460
fi
10461
STRIP=$ac_cv_prog_STRIP
10462
if test -n "$STRIP"; then
10463 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10464 82 jeremybenn
$as_echo "$STRIP" >&6; }
10465
else
10466 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 82 jeremybenn
$as_echo "no" >&6; }
10468
fi
10469
 
10470
 
10471
fi
10472
if test -z "$ac_cv_prog_STRIP"; then
10473
  ac_ct_STRIP=$STRIP
10474
  # Extract the first word of "strip", so it can be a program name with args.
10475
set dummy strip; ac_word=$2
10476 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10478 625 jeremybenn
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10479 82 jeremybenn
  $as_echo_n "(cached) " >&6
10480
else
10481
  if test -n "$ac_ct_STRIP"; then
10482
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10483
else
10484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485
for as_dir in $PATH
10486
do
10487
  IFS=$as_save_IFS
10488
  test -z "$as_dir" && as_dir=.
10489 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10490 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491
    ac_cv_prog_ac_ct_STRIP="strip"
10492 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 82 jeremybenn
    break 2
10494
  fi
10495
done
10496 346 jeremybenn
  done
10497 82 jeremybenn
IFS=$as_save_IFS
10498
 
10499
fi
10500
fi
10501
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10502
if test -n "$ac_ct_STRIP"; then
10503 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10504 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10505
else
10506 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 82 jeremybenn
$as_echo "no" >&6; }
10508
fi
10509
 
10510
  if test "x$ac_ct_STRIP" = x; then
10511
    STRIP=":"
10512
  else
10513
    case $cross_compiling:$ac_tool_warned in
10514
yes:)
10515 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10516 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10517
ac_tool_warned=yes ;;
10518
esac
10519
    STRIP=$ac_ct_STRIP
10520
  fi
10521
else
10522
  STRIP="$ac_cv_prog_STRIP"
10523
fi
10524
 
10525
fi
10526
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10527
 
10528 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10529 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10530 19 jeremybenn
if test -z "$MKDIR_P"; then
10531 625 jeremybenn
  if ${ac_cv_path_mkdir+:} false; then :
10532 82 jeremybenn
  $as_echo_n "(cached) " >&6
10533 19 jeremybenn
else
10534
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10536
do
10537
  IFS=$as_save_IFS
10538
  test -z "$as_dir" && as_dir=.
10539 346 jeremybenn
    for ac_prog in mkdir gmkdir; do
10540 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10541
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10542
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10543
             'mkdir (GNU coreutils) '* | \
10544
             'mkdir (coreutils) '* | \
10545
             'mkdir (fileutils) '4.1*)
10546
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10547
               break 3;;
10548
           esac
10549
         done
10550
       done
10551 346 jeremybenn
  done
10552 19 jeremybenn
IFS=$as_save_IFS
10553
 
10554
fi
10555
 
10556 625 jeremybenn
  test -d ./--version && rmdir ./--version
10557 19 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10558
    MKDIR_P="$ac_cv_path_mkdir -p"
10559
  else
10560
    # As a last resort, use the slow shell script.  Don't cache a
10561
    # value for MKDIR_P within a source directory, because that will
10562
    # break other packages using the cache if that directory is
10563
    # removed, or if the value is a relative name.
10564
    MKDIR_P="$ac_install_sh -d"
10565
  fi
10566
fi
10567 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10568 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10569 19 jeremybenn
 
10570
mkdir_p="$MKDIR_P"
10571
case $mkdir_p in
10572
  [\\/$]* | ?:[\\/]*) ;;
10573
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10574
esac
10575
 
10576
for ac_prog in gawk mawk nawk awk
10577
do
10578
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10579
set dummy $ac_prog; ac_word=$2
10580 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10582 625 jeremybenn
if ${ac_cv_prog_AWK+:} false; then :
10583 82 jeremybenn
  $as_echo_n "(cached) " >&6
10584 19 jeremybenn
else
10585
  if test -n "$AWK"; then
10586
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10587
else
10588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589
for as_dir in $PATH
10590
do
10591
  IFS=$as_save_IFS
10592
  test -z "$as_dir" && as_dir=.
10593 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10594 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10595
    ac_cv_prog_AWK="$ac_prog"
10596 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 19 jeremybenn
    break 2
10598
  fi
10599
done
10600 346 jeremybenn
  done
10601 19 jeremybenn
IFS=$as_save_IFS
10602
 
10603
fi
10604
fi
10605
AWK=$ac_cv_prog_AWK
10606
if test -n "$AWK"; then
10607 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10608 82 jeremybenn
$as_echo "$AWK" >&6; }
10609 19 jeremybenn
else
10610 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 82 jeremybenn
$as_echo "no" >&6; }
10612 19 jeremybenn
fi
10613
 
10614
 
10615
  test -n "$AWK" && break
10616
done
10617
 
10618 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10619 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10620
set x ${MAKE-make}
10621
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10622 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10623 82 jeremybenn
  $as_echo_n "(cached) " >&6
10624 19 jeremybenn
else
10625
  cat >conftest.make <<\_ACEOF
10626
SHELL = /bin/sh
10627
all:
10628
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10629
_ACEOF
10630 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10631 19 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10632
  *@@@%%%=?*=@@@%%%*)
10633
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10634
  *)
10635
    eval ac_cv_prog_make_${ac_make}_set=no;;
10636
esac
10637
rm -f conftest.make
10638
fi
10639
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10640 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641 82 jeremybenn
$as_echo "yes" >&6; }
10642 19 jeremybenn
  SET_MAKE=
10643
else
10644 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 82 jeremybenn
$as_echo "no" >&6; }
10646 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10647
fi
10648
 
10649
rm -rf .tst 2>/dev/null
10650
mkdir .tst 2>/dev/null
10651
if test -d .tst; then
10652
  am__leading_dot=.
10653
else
10654
  am__leading_dot=_
10655
fi
10656
rmdir .tst 2>/dev/null
10657
 
10658
DEPDIR="${am__leading_dot}deps"
10659
 
10660
ac_config_commands="$ac_config_commands depfiles"
10661
 
10662
 
10663
am_make=${MAKE-make}
10664
cat > confinc << 'END'
10665
am__doit:
10666 82 jeremybenn
        @echo this is the am__doit target
10667 19 jeremybenn
.PHONY: am__doit
10668
END
10669
# If we don't find an include directive, just comment out the code.
10670 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10671 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10672 19 jeremybenn
am__include="#"
10673
am__quote=
10674
_am_result=none
10675
# First try GNU make style include.
10676
echo "include confinc" > confmf
10677 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10678
case `$am_make -s -f confmf 2> /dev/null` in #(
10679
*the\ am__doit\ target*)
10680
  am__include=include
10681
  am__quote=
10682
  _am_result=GNU
10683
  ;;
10684
esac
10685 19 jeremybenn
# Now try BSD make style include.
10686
if test "$am__include" = "#"; then
10687
   echo '.include "confinc"' > confmf
10688 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10689
   *the\ am__doit\ target*)
10690
     am__include=.include
10691
     am__quote="\""
10692
     _am_result=BSD
10693
     ;;
10694
   esac
10695 19 jeremybenn
fi
10696
 
10697
 
10698 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10699 82 jeremybenn
$as_echo "$_am_result" >&6; }
10700 19 jeremybenn
rm -f confinc confmf
10701
 
10702
# Check whether --enable-dependency-tracking was given.
10703 346 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10704 19 jeremybenn
  enableval=$enable_dependency_tracking;
10705
fi
10706
 
10707
if test "x$enable_dependency_tracking" != xno; then
10708
  am_depcomp="$ac_aux_dir/depcomp"
10709
  AMDEPBACKSLASH='\'
10710
fi
10711
 if test "x$enable_dependency_tracking" != xno; then
10712
  AMDEP_TRUE=
10713
  AMDEP_FALSE='#'
10714
else
10715
  AMDEP_TRUE='#'
10716
  AMDEP_FALSE=
10717
fi
10718
 
10719
 
10720
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10721
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10722
  # is not polluted with repeated "-I."
10723
  am__isrc=' -I$(srcdir)'
10724
  # test to see if srcdir already configured
10725
  if test -f $srcdir/config.status; then
10726 625 jeremybenn
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10727 19 jeremybenn
  fi
10728
fi
10729
 
10730
# test whether we have cygpath
10731
if test -z "$CYGPATH_W"; then
10732
  if (cygpath --version) >/dev/null 2>/dev/null; then
10733
    CYGPATH_W='cygpath -w'
10734
  else
10735
    CYGPATH_W=echo
10736
  fi
10737
fi
10738
 
10739
 
10740
# Define the identity of the package.
10741
 PACKAGE='or1ksim'
10742 625 jeremybenn
 VERSION='2011-08-15'
10743 19 jeremybenn
 
10744
 
10745
cat >>confdefs.h <<_ACEOF
10746
#define PACKAGE "$PACKAGE"
10747
_ACEOF
10748
 
10749
 
10750
cat >>confdefs.h <<_ACEOF
10751
#define VERSION "$VERSION"
10752
_ACEOF
10753
 
10754
# Some tools Automake needs.
10755
 
10756
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10757
 
10758
 
10759
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10760
 
10761
 
10762
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10763
 
10764
 
10765
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10766
 
10767
 
10768
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10769
 
10770
# We need awk for the "check" target.  The system "awk" is bad on
10771
# some platforms.
10772
# Always define AMTAR for backward compatibility.
10773
 
10774
AMTAR=${AMTAR-"${am_missing_run}tar"}
10775
 
10776
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10777
 
10778
 
10779
 
10780
 
10781
depcc="$CC"   am_compiler_list=
10782
 
10783 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10784 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10785 625 jeremybenn
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10786 82 jeremybenn
  $as_echo_n "(cached) " >&6
10787 19 jeremybenn
else
10788
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10789
  # We make a subdir and do the tests there.  Otherwise we can end up
10790
  # making bogus files that we don't know about and never remove.  For
10791
  # instance it was reported that on HP-UX the gcc test will end up
10792
  # making a dummy file named `D' -- because `-MD' means `put the output
10793
  # in D'.
10794
  mkdir conftest.dir
10795
  # Copy depcomp to subdir because otherwise we won't find it if we're
10796
  # using a relative directory.
10797
  cp "$am_depcomp" conftest.dir
10798
  cd conftest.dir
10799
  # We will build objects and dependencies in a subdirectory because
10800
  # it helps to detect inapplicable dependency modes.  For instance
10801
  # both Tru64's cc and ICC support -MD to output dependencies as a
10802
  # side effect of compilation, but ICC will put the dependencies in
10803
  # the current directory while Tru64 will put them in the object
10804
  # directory.
10805
  mkdir sub
10806
 
10807
  am_cv_CC_dependencies_compiler_type=none
10808
  if test "$am_compiler_list" = ""; then
10809
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10810
  fi
10811 82 jeremybenn
  am__universal=false
10812
  case " $depcc " in #(
10813
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10814
     esac
10815
 
10816 19 jeremybenn
  for depmode in $am_compiler_list; do
10817
    # Setup a source with many dependencies, because some compilers
10818
    # like to wrap large dependency lists on column 80 (with \), and
10819
    # we should not choose a depcomp mode which is confused by this.
10820
    #
10821
    # We need to recreate these files for each test, as the compiler may
10822
    # overwrite some of them when testing with obscure command lines.
10823
    # This happens at least with the AIX C compiler.
10824
    : > sub/conftest.c
10825
    for i in 1 2 3 4 5 6; do
10826
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10827
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10828
      # Solaris 8's {/usr,}/bin/sh.
10829
      touch sub/conftst$i.h
10830
    done
10831
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10832
 
10833 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10834
    # mode.  It turns out that the SunPro C++ compiler does not properly
10835
    # handle `-M -o', and we need to detect this.  Also, some Intel
10836
    # versions had trouble with output in subdirs
10837
    am__obj=sub/conftest.${OBJEXT-o}
10838
    am__minus_obj="-o $am__obj"
10839 19 jeremybenn
    case $depmode in
10840 82 jeremybenn
    gcc)
10841
      # This depmode causes a compiler race in universal mode.
10842
      test "$am__universal" = false || continue
10843
      ;;
10844 19 jeremybenn
    nosideeffect)
10845
      # after this tag, mechanisms are not by side-effect, so they'll
10846
      # only be used when explicitly requested
10847
      if test "x$enable_dependency_tracking" = xyes; then
10848
        continue
10849
      else
10850
        break
10851
      fi
10852
      ;;
10853 82 jeremybenn
    msvisualcpp | msvcmsys)
10854
      # This compiler won't grok `-c -o', but also, the minuso test has
10855
      # not run yet.  These depmodes are late enough in the game, and
10856
      # so weak that their functioning should not be impacted.
10857
      am__obj=conftest.${OBJEXT-o}
10858
      am__minus_obj=
10859
      ;;
10860 19 jeremybenn
    none) break ;;
10861
    esac
10862
    if depmode=$depmode \
10863 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10864 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10865 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10866 19 jeremybenn
         >/dev/null 2>conftest.err &&
10867
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10868
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10869 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10870 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10871
      # icc doesn't choke on unknown options, it will just issue warnings
10872
      # or remarks (even with -Werror).  So we grep stderr for any message
10873
      # that says an option was ignored or not supported.
10874
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10875
      #   icc: Command line warning: ignoring option '-M'; no argument required
10876
      # The diagnosis changed in icc 8.0:
10877
      #   icc: Command line remark: option '-MP' not supported
10878
      if (grep 'ignoring option' conftest.err ||
10879
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10880
        am_cv_CC_dependencies_compiler_type=$depmode
10881
        break
10882
      fi
10883
    fi
10884
  done
10885
 
10886
  cd ..
10887
  rm -rf conftest.dir
10888
else
10889
  am_cv_CC_dependencies_compiler_type=none
10890
fi
10891
 
10892
fi
10893 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10894 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10895 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10896
 
10897
 if
10898
  test "x$enable_dependency_tracking" != xno \
10899
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10900
  am__fastdepCC_TRUE=
10901
  am__fastdepCC_FALSE='#'
10902
else
10903
  am__fastdepCC_TRUE='#'
10904
  am__fastdepCC_FALSE=
10905
fi
10906
 
10907
 
10908
 
10909 625 jeremybenn
# Check whether --enable-silent-rules was given.
10910
if test "${enable_silent_rules+set}" = set; then :
10911
  enableval=$enable_silent_rules;
10912
fi
10913 91 jeremybenn
 
10914 625 jeremybenn
case $enable_silent_rules in
10915
yes) AM_DEFAULT_VERBOSITY=0;;
10916
no)  AM_DEFAULT_VERBOSITY=1;;
10917
*)   AM_DEFAULT_VERBOSITY=0;;
10918
esac
10919
AM_BACKSLASH='\'
10920
 
10921
 
10922 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10923
 
10924
 
10925
 
10926
 
10927
# make sure we are using a recent autoconf version
10928
 
10929
 
10930
# yuck.
10931
case "$target_cpu" in
10932
or32*)  CPU_ARCH=or32;
10933
        ARCH_ISA=OR32;
10934
 
10935 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10936 82 jeremybenn
;;
10937 385 jeremybenn
 
10938
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
10939
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
10940 82 jeremybenn
        CPU_ARCH=or32;
10941
        ARCH_ISA=OR32;
10942
 
10943 346 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10944 82 jeremybenn
;;
10945
esac
10946
 
10947
# determine endianism from target CPU name. If it has "little" in the name,
10948
# then its litte endian, otherwise its big endian (default for OR1K)
10949
case "$target_cpu" in
10950
*little*)
10951 346 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10952 82 jeremybenn
;;
10953
       *)
10954 346 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10955 82 jeremybenn
;;
10956
esac
10957
 
10958
 
10959
 
10960 236 jeremybenn
# Set the CFLAGS we want. We put the user flags last, so that if the user
10961
# changes the optimization level, that will take precedence.
10962 625 jeremybenn
# CFLAGS="-g -Wall -Werror -O2 -D$ARCH_ISA $CFLAGS"
10963
# 15-Aug-11: Jeremy Bennett. TODO temporarily remove -Werror to get round
10964
#            GCC 4.6 issues.
10965
CFLAGS="-g -Wall -O2 -D$ARCH_ISA $CFLAGS"
10966 82 jeremybenn
 
10967
# By default we simply use the C compiler to build assembly code.
10968
 
10969
test "${CCAS+set}" = set || CCAS=$CC
10970
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10971
 
10972
 
10973
 
10974
depcc="$CCAS"   am_compiler_list=
10975
 
10976 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10977 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10978 625 jeremybenn
if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
10979 82 jeremybenn
  $as_echo_n "(cached) " >&6
10980 19 jeremybenn
else
10981
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10982
  # We make a subdir and do the tests there.  Otherwise we can end up
10983
  # making bogus files that we don't know about and never remove.  For
10984
  # instance it was reported that on HP-UX the gcc test will end up
10985
  # making a dummy file named `D' -- because `-MD' means `put the output
10986
  # in D'.
10987
  mkdir conftest.dir
10988
  # Copy depcomp to subdir because otherwise we won't find it if we're
10989
  # using a relative directory.
10990
  cp "$am_depcomp" conftest.dir
10991
  cd conftest.dir
10992
  # We will build objects and dependencies in a subdirectory because
10993
  # it helps to detect inapplicable dependency modes.  For instance
10994
  # both Tru64's cc and ICC support -MD to output dependencies as a
10995
  # side effect of compilation, but ICC will put the dependencies in
10996
  # the current directory while Tru64 will put them in the object
10997
  # directory.
10998
  mkdir sub
10999
 
11000 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11001 19 jeremybenn
  if test "$am_compiler_list" = ""; then
11002
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11003
  fi
11004 82 jeremybenn
  am__universal=false
11005
 
11006
 
11007 19 jeremybenn
  for depmode in $am_compiler_list; do
11008
    # Setup a source with many dependencies, because some compilers
11009
    # like to wrap large dependency lists on column 80 (with \), and
11010
    # we should not choose a depcomp mode which is confused by this.
11011
    #
11012
    # We need to recreate these files for each test, as the compiler may
11013
    # overwrite some of them when testing with obscure command lines.
11014
    # This happens at least with the AIX C compiler.
11015
    : > sub/conftest.c
11016
    for i in 1 2 3 4 5 6; do
11017
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11018
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11019
      # Solaris 8's {/usr,}/bin/sh.
11020
      touch sub/conftst$i.h
11021
    done
11022
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11023
 
11024 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
11025
    # mode.  It turns out that the SunPro C++ compiler does not properly
11026
    # handle `-M -o', and we need to detect this.  Also, some Intel
11027
    # versions had trouble with output in subdirs
11028
    am__obj=sub/conftest.${OBJEXT-o}
11029
    am__minus_obj="-o $am__obj"
11030 19 jeremybenn
    case $depmode in
11031 82 jeremybenn
    gcc)
11032
      # This depmode causes a compiler race in universal mode.
11033
      test "$am__universal" = false || continue
11034
      ;;
11035 19 jeremybenn
    nosideeffect)
11036
      # after this tag, mechanisms are not by side-effect, so they'll
11037
      # only be used when explicitly requested
11038
      if test "x$enable_dependency_tracking" = xyes; then
11039
        continue
11040
      else
11041
        break
11042
      fi
11043
      ;;
11044 82 jeremybenn
    msvisualcpp | msvcmsys)
11045
      # This compiler won't grok `-c -o', but also, the minuso test has
11046
      # not run yet.  These depmodes are late enough in the game, and
11047
      # so weak that their functioning should not be impacted.
11048
      am__obj=conftest.${OBJEXT-o}
11049
      am__minus_obj=
11050
      ;;
11051 19 jeremybenn
    none) break ;;
11052
    esac
11053
    if depmode=$depmode \
11054 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11055 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11056 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11057 19 jeremybenn
         >/dev/null 2>conftest.err &&
11058
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11059
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11060 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11061 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11062
      # icc doesn't choke on unknown options, it will just issue warnings
11063
      # or remarks (even with -Werror).  So we grep stderr for any message
11064
      # that says an option was ignored or not supported.
11065
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11066
      #   icc: Command line warning: ignoring option '-M'; no argument required
11067
      # The diagnosis changed in icc 8.0:
11068
      #   icc: Command line remark: option '-MP' not supported
11069
      if (grep 'ignoring option' conftest.err ||
11070
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11071 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11072 19 jeremybenn
        break
11073
      fi
11074
    fi
11075
  done
11076
 
11077
  cd ..
11078
  rm -rf conftest.dir
11079
else
11080 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11081 19 jeremybenn
fi
11082
 
11083
fi
11084 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11085 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11086
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11087 19 jeremybenn
 
11088
 if
11089
  test "x$enable_dependency_tracking" != xno \
11090 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11091
  am__fastdepCCAS_TRUE=
11092
  am__fastdepCCAS_FALSE='#'
11093 19 jeremybenn
else
11094 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11095
  am__fastdepCCAS_FALSE=
11096 19 jeremybenn
fi
11097
 
11098
 
11099
 
11100
ac_ext=c
11101
ac_cpp='$CPP $CPPFLAGS'
11102
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11103
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11104
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11105
if test -n "$ac_tool_prefix"; then
11106
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11107
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11108 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11110 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11111 82 jeremybenn
  $as_echo_n "(cached) " >&6
11112 19 jeremybenn
else
11113
  if test -n "$CC"; then
11114
  ac_cv_prog_CC="$CC" # Let the user override the test.
11115
else
11116
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117
for as_dir in $PATH
11118
do
11119
  IFS=$as_save_IFS
11120
  test -z "$as_dir" && as_dir=.
11121 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11122 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11123
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11124 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11125 19 jeremybenn
    break 2
11126
  fi
11127
done
11128 346 jeremybenn
  done
11129 19 jeremybenn
IFS=$as_save_IFS
11130
 
11131
fi
11132
fi
11133
CC=$ac_cv_prog_CC
11134
if test -n "$CC"; then
11135 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11136 82 jeremybenn
$as_echo "$CC" >&6; }
11137 19 jeremybenn
else
11138 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 82 jeremybenn
$as_echo "no" >&6; }
11140 19 jeremybenn
fi
11141
 
11142
 
11143
fi
11144
if test -z "$ac_cv_prog_CC"; then
11145
  ac_ct_CC=$CC
11146
  # Extract the first word of "gcc", so it can be a program name with args.
11147
set dummy gcc; ac_word=$2
11148 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11150 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11151 82 jeremybenn
  $as_echo_n "(cached) " >&6
11152 19 jeremybenn
else
11153
  if test -n "$ac_ct_CC"; then
11154
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11155
else
11156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157
for as_dir in $PATH
11158
do
11159
  IFS=$as_save_IFS
11160
  test -z "$as_dir" && as_dir=.
11161 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11162 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11163
    ac_cv_prog_ac_ct_CC="gcc"
11164 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11165 19 jeremybenn
    break 2
11166
  fi
11167
done
11168 346 jeremybenn
  done
11169 19 jeremybenn
IFS=$as_save_IFS
11170
 
11171
fi
11172
fi
11173
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11174
if test -n "$ac_ct_CC"; then
11175 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11176 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11177 19 jeremybenn
else
11178 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 82 jeremybenn
$as_echo "no" >&6; }
11180 19 jeremybenn
fi
11181
 
11182
  if test "x$ac_ct_CC" = x; then
11183
    CC=""
11184
  else
11185
    case $cross_compiling:$ac_tool_warned in
11186
yes:)
11187 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11188 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11189 19 jeremybenn
ac_tool_warned=yes ;;
11190
esac
11191
    CC=$ac_ct_CC
11192
  fi
11193
else
11194
  CC="$ac_cv_prog_CC"
11195
fi
11196
 
11197
if test -z "$CC"; then
11198
          if test -n "$ac_tool_prefix"; then
11199
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11200
set dummy ${ac_tool_prefix}cc; ac_word=$2
11201 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11203 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11204 82 jeremybenn
  $as_echo_n "(cached) " >&6
11205 19 jeremybenn
else
11206
  if test -n "$CC"; then
11207
  ac_cv_prog_CC="$CC" # Let the user override the test.
11208
else
11209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210
for as_dir in $PATH
11211
do
11212
  IFS=$as_save_IFS
11213
  test -z "$as_dir" && as_dir=.
11214 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11215 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11216
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11217 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11218 19 jeremybenn
    break 2
11219
  fi
11220
done
11221 346 jeremybenn
  done
11222 19 jeremybenn
IFS=$as_save_IFS
11223
 
11224
fi
11225
fi
11226
CC=$ac_cv_prog_CC
11227
if test -n "$CC"; then
11228 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11229 82 jeremybenn
$as_echo "$CC" >&6; }
11230 19 jeremybenn
else
11231 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 82 jeremybenn
$as_echo "no" >&6; }
11233 19 jeremybenn
fi
11234
 
11235
 
11236
  fi
11237
fi
11238
if test -z "$CC"; then
11239
  # Extract the first word of "cc", so it can be a program name with args.
11240
set dummy cc; ac_word=$2
11241 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11243 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11244 82 jeremybenn
  $as_echo_n "(cached) " >&6
11245 19 jeremybenn
else
11246
  if test -n "$CC"; then
11247
  ac_cv_prog_CC="$CC" # Let the user override the test.
11248
else
11249
  ac_prog_rejected=no
11250
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251
for as_dir in $PATH
11252
do
11253
  IFS=$as_save_IFS
11254
  test -z "$as_dir" && as_dir=.
11255 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11256 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11258
       ac_prog_rejected=yes
11259
       continue
11260
     fi
11261
    ac_cv_prog_CC="cc"
11262 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 19 jeremybenn
    break 2
11264
  fi
11265
done
11266 346 jeremybenn
  done
11267 19 jeremybenn
IFS=$as_save_IFS
11268
 
11269
if test $ac_prog_rejected = yes; then
11270
  # We found a bogon in the path, so make sure we never use it.
11271
  set dummy $ac_cv_prog_CC
11272
  shift
11273
  if test $# != 0; then
11274
    # We chose a different compiler from the bogus one.
11275
    # However, it has the same basename, so the bogon will be chosen
11276
    # first if we set CC to just the basename; use the full file name.
11277
    shift
11278
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11279
  fi
11280
fi
11281
fi
11282
fi
11283
CC=$ac_cv_prog_CC
11284
if test -n "$CC"; then
11285 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11286 82 jeremybenn
$as_echo "$CC" >&6; }
11287 19 jeremybenn
else
11288 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 82 jeremybenn
$as_echo "no" >&6; }
11290 19 jeremybenn
fi
11291
 
11292
 
11293
fi
11294
if test -z "$CC"; then
11295
  if test -n "$ac_tool_prefix"; then
11296
  for ac_prog in cl.exe
11297
  do
11298
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11299
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11300 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11302 625 jeremybenn
if ${ac_cv_prog_CC+:} false; then :
11303 82 jeremybenn
  $as_echo_n "(cached) " >&6
11304 19 jeremybenn
else
11305
  if test -n "$CC"; then
11306
  ac_cv_prog_CC="$CC" # Let the user override the test.
11307
else
11308
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309
for as_dir in $PATH
11310
do
11311
  IFS=$as_save_IFS
11312
  test -z "$as_dir" && as_dir=.
11313 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11314 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11316 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 19 jeremybenn
    break 2
11318
  fi
11319
done
11320 346 jeremybenn
  done
11321 19 jeremybenn
IFS=$as_save_IFS
11322
 
11323
fi
11324
fi
11325
CC=$ac_cv_prog_CC
11326
if test -n "$CC"; then
11327 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11328 82 jeremybenn
$as_echo "$CC" >&6; }
11329 19 jeremybenn
else
11330 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 82 jeremybenn
$as_echo "no" >&6; }
11332 19 jeremybenn
fi
11333
 
11334
 
11335
    test -n "$CC" && break
11336
  done
11337
fi
11338
if test -z "$CC"; then
11339
  ac_ct_CC=$CC
11340
  for ac_prog in cl.exe
11341
do
11342
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11343
set dummy $ac_prog; ac_word=$2
11344 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11346 625 jeremybenn
if ${ac_cv_prog_ac_ct_CC+:} false; then :
11347 82 jeremybenn
  $as_echo_n "(cached) " >&6
11348 19 jeremybenn
else
11349
  if test -n "$ac_ct_CC"; then
11350
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11351
else
11352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353
for as_dir in $PATH
11354
do
11355
  IFS=$as_save_IFS
11356
  test -z "$as_dir" && as_dir=.
11357 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11358 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11359
    ac_cv_prog_ac_ct_CC="$ac_prog"
11360 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 19 jeremybenn
    break 2
11362
  fi
11363
done
11364 346 jeremybenn
  done
11365 19 jeremybenn
IFS=$as_save_IFS
11366
 
11367
fi
11368
fi
11369
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11370
if test -n "$ac_ct_CC"; then
11371 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11372 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11373 19 jeremybenn
else
11374 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 82 jeremybenn
$as_echo "no" >&6; }
11376 19 jeremybenn
fi
11377
 
11378
 
11379
  test -n "$ac_ct_CC" && break
11380
done
11381
 
11382
  if test "x$ac_ct_CC" = x; then
11383
    CC=""
11384
  else
11385
    case $cross_compiling:$ac_tool_warned in
11386
yes:)
11387 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11388 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11389 19 jeremybenn
ac_tool_warned=yes ;;
11390
esac
11391
    CC=$ac_ct_CC
11392
  fi
11393
fi
11394
 
11395
fi
11396
 
11397
 
11398 346 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11399 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11400 625 jeremybenn
as_fn_error $? "no acceptable C compiler found in \$PATH
11401
See \`config.log' for more details" "$LINENO" 5; }
11402 19 jeremybenn
 
11403
# Provide some information about the compiler.
11404 346 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11405 82 jeremybenn
set X $ac_compile
11406
ac_compiler=$2
11407 346 jeremybenn
for ac_option in --version -v -V -qversion; do
11408
  { { ac_try="$ac_compiler $ac_option >&5"
11409 19 jeremybenn
case "(($ac_try" in
11410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411
  *) ac_try_echo=$ac_try;;
11412
esac
11413 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11414
$as_echo "$ac_try_echo"; } >&5
11415
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11416 19 jeremybenn
  ac_status=$?
11417 346 jeremybenn
  if test -s conftest.err; then
11418
    sed '10a\
11419
... rest of stderr output deleted ...
11420
         10q' conftest.err >conftest.er1
11421
    cat conftest.er1 >&5
11422
  fi
11423 625 jeremybenn
  rm -f conftest.er1 conftest.err
11424 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11425
  test $ac_status = 0; }
11426
done
11427 19 jeremybenn
 
11428 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11429 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11430 625 jeremybenn
if ${ac_cv_c_compiler_gnu+:} false; then :
11431 82 jeremybenn
  $as_echo_n "(cached) " >&6
11432 19 jeremybenn
else
11433 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 19 jeremybenn
/* end confdefs.h.  */
11435
 
11436
int
11437
main ()
11438
{
11439
#ifndef __GNUC__
11440
       choke me
11441
#endif
11442
 
11443
  ;
11444
  return 0;
11445
}
11446
_ACEOF
11447 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11448 19 jeremybenn
  ac_compiler_gnu=yes
11449
else
11450 346 jeremybenn
  ac_compiler_gnu=no
11451 19 jeremybenn
fi
11452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11453
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11454
 
11455
fi
11456 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11457 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11458
if test $ac_compiler_gnu = yes; then
11459
  GCC=yes
11460
else
11461
  GCC=
11462
fi
11463 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11464
ac_save_CFLAGS=$CFLAGS
11465 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11466 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11467 625 jeremybenn
if ${ac_cv_prog_cc_g+:} false; then :
11468 82 jeremybenn
  $as_echo_n "(cached) " >&6
11469 19 jeremybenn
else
11470
  ac_save_c_werror_flag=$ac_c_werror_flag
11471
   ac_c_werror_flag=yes
11472
   ac_cv_prog_cc_g=no
11473
   CFLAGS="-g"
11474 346 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 19 jeremybenn
/* end confdefs.h.  */
11476
 
11477
int
11478
main ()
11479
{
11480
 
11481
  ;
11482
  return 0;
11483
}
11484
_ACEOF
11485 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11486 19 jeremybenn
  ac_cv_prog_cc_g=yes
11487
else
11488 346 jeremybenn
  CFLAGS=""
11489
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 19 jeremybenn
/* end confdefs.h.  */
11491
 
11492
int
11493
main ()
11494
{
11495
 
11496
  ;
11497
  return 0;
11498
}
11499
_ACEOF
11500 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11501
 
11502 236 jeremybenn
else
11503 346 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11504 19 jeremybenn
         CFLAGS="-g"
11505 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 19 jeremybenn
/* end confdefs.h.  */
11507
 
11508
int
11509
main ()
11510
{
11511
 
11512
  ;
11513
  return 0;
11514
}
11515
_ACEOF
11516 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11517 19 jeremybenn
  ac_cv_prog_cc_g=yes
11518
fi
11519
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520
fi
11521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522
fi
11523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524
   ac_c_werror_flag=$ac_save_c_werror_flag
11525
fi
11526 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11527 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11528 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11529
  CFLAGS=$ac_save_CFLAGS
11530
elif test $ac_cv_prog_cc_g = yes; then
11531
  if test "$GCC" = yes; then
11532
    CFLAGS="-g -O2"
11533
  else
11534
    CFLAGS="-g"
11535
  fi
11536
else
11537
  if test "$GCC" = yes; then
11538
    CFLAGS="-O2"
11539
  else
11540
    CFLAGS=
11541
  fi
11542
fi
11543 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11544 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11545 625 jeremybenn
if ${ac_cv_prog_cc_c89+:} false; then :
11546 82 jeremybenn
  $as_echo_n "(cached) " >&6
11547 19 jeremybenn
else
11548
  ac_cv_prog_cc_c89=no
11549
ac_save_CC=$CC
11550 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 19 jeremybenn
/* end confdefs.h.  */
11552
#include 
11553
#include 
11554
#include 
11555
#include 
11556
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11557
struct buf { int x; };
11558
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11559
static char *e (p, i)
11560
     char **p;
11561
     int i;
11562
{
11563
  return p[i];
11564
}
11565
static char *f (char * (*g) (char **, int), char **p, ...)
11566
{
11567
  char *s;
11568
  va_list v;
11569
  va_start (v,p);
11570
  s = g (p, va_arg (v,int));
11571
  va_end (v);
11572
  return s;
11573
}
11574
 
11575
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11576
   function prototypes and stuff, but not '\xHH' hex character constants.
11577
   These don't provoke an error unfortunately, instead are silently treated
11578
   as 'x'.  The following induces an error, until -std is added to get
11579
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11580
   array size at least.  It's necessary to write '\x00'==0 to get something
11581
   that's true only with -std.  */
11582
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11583
 
11584
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11585
   inside strings and character constants.  */
11586
#define FOO(x) 'x'
11587
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11588
 
11589
int test (int i, double x);
11590
struct s1 {int (*f) (int a);};
11591
struct s2 {int (*f) (double a);};
11592
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11593
int argc;
11594
char **argv;
11595
int
11596
main ()
11597
{
11598
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11599
  ;
11600
  return 0;
11601
}
11602
_ACEOF
11603
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11604
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11605
do
11606
  CC="$ac_save_CC $ac_arg"
11607 346 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11608 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11609
fi
11610
rm -f core conftest.err conftest.$ac_objext
11611
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11612
done
11613
rm -f conftest.$ac_ext
11614
CC=$ac_save_CC
11615
 
11616
fi
11617
# AC_CACHE_VAL
11618
case "x$ac_cv_prog_cc_c89" in
11619
  x)
11620 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11621 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11622 19 jeremybenn
  xno)
11623 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11624 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11625 19 jeremybenn
  *)
11626
    CC="$CC $ac_cv_prog_cc_c89"
11627 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11628 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11629 19 jeremybenn
esac
11630 346 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11631 19 jeremybenn
 
11632 346 jeremybenn
fi
11633 19 jeremybenn
 
11634
ac_ext=c
11635
ac_cpp='$CPP $CPPFLAGS'
11636
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11637
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11638
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11639
 
11640
if test "x$CC" != xcc; then
11641 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11642 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11643 19 jeremybenn
else
11644 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11645 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11646 19 jeremybenn
fi
11647 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11648 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11649 625 jeremybenn
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11650 82 jeremybenn
  $as_echo_n "(cached) " >&6
11651 19 jeremybenn
else
11652 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 19 jeremybenn
/* end confdefs.h.  */
11654
 
11655
int
11656
main ()
11657
{
11658
 
11659
  ;
11660
  return 0;
11661
}
11662
_ACEOF
11663
# Make sure it works both with $CC and with simple cc.
11664
# We do the test twice because some compilers refuse to overwrite an
11665
# existing .o file with -o, though they will create one.
11666
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11667
rm -f conftest2.*
11668 346 jeremybenn
if { { case "(($ac_try" in
11669 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670
  *) ac_try_echo=$ac_try;;
11671
esac
11672 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11673
$as_echo "$ac_try_echo"; } >&5
11674 19 jeremybenn
  (eval "$ac_try") 2>&5
11675
  ac_status=$?
11676 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677
  test $ac_status = 0; } &&
11678
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11679 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680
  *) ac_try_echo=$ac_try;;
11681
esac
11682 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11683
$as_echo "$ac_try_echo"; } >&5
11684 19 jeremybenn
  (eval "$ac_try") 2>&5
11685
  ac_status=$?
11686 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687
  test $ac_status = 0; };
11688 19 jeremybenn
then
11689
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11690
  if test "x$CC" != xcc; then
11691
    # Test first that cc exists at all.
11692
    if { ac_try='cc -c conftest.$ac_ext >&5'
11693 346 jeremybenn
  { { case "(($ac_try" in
11694 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695
  *) ac_try_echo=$ac_try;;
11696
esac
11697 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11698
$as_echo "$ac_try_echo"; } >&5
11699 19 jeremybenn
  (eval "$ac_try") 2>&5
11700
  ac_status=$?
11701 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702
  test $ac_status = 0; }; }; then
11703 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11704
      rm -f conftest2.*
11705 346 jeremybenn
      if { { case "(($ac_try" in
11706 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707
  *) ac_try_echo=$ac_try;;
11708
esac
11709 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11710
$as_echo "$ac_try_echo"; } >&5
11711 19 jeremybenn
  (eval "$ac_try") 2>&5
11712
  ac_status=$?
11713 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714
  test $ac_status = 0; } &&
11715
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11716 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717
  *) ac_try_echo=$ac_try;;
11718
esac
11719 346 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11720
$as_echo "$ac_try_echo"; } >&5
11721 19 jeremybenn
  (eval "$ac_try") 2>&5
11722
  ac_status=$?
11723 346 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11724
  test $ac_status = 0; };
11725 19 jeremybenn
      then
11726
        # cc works too.
11727
        :
11728
      else
11729
        # cc exists but doesn't like -o.
11730
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11731
      fi
11732
    fi
11733
  fi
11734
else
11735
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11736
fi
11737
rm -f core conftest*
11738
 
11739
fi
11740
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11741 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11742 82 jeremybenn
$as_echo "yes" >&6; }
11743 19 jeremybenn
else
11744 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 82 jeremybenn
$as_echo "no" >&6; }
11746 19 jeremybenn
 
11747 346 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11748 19 jeremybenn
 
11749
fi
11750
 
11751
# FIXME: we rely on the cache variable name because
11752
# there is no other way.
11753
set dummy $CC
11754 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11755
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11756
if test "$am_t" != yes; then
11757 19 jeremybenn
   # Losing compiler, so override with the script.
11758
   # FIXME: It is wrong to rewrite CC.
11759
   # But if we don't then we get into trouble of one sort or another.
11760
   # A longer-term fix would be to have automake use am__CC in this case,
11761
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11762
   CC="$am_aux_dir/compile $CC"
11763
fi
11764
 
11765
 
11766
 
11767 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11768 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11769
set x ${MAKE-make}
11770
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11771 625 jeremybenn
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11772 82 jeremybenn
  $as_echo_n "(cached) " >&6
11773 19 jeremybenn
else
11774
  cat >conftest.make <<\_ACEOF
11775
SHELL = /bin/sh
11776
all:
11777
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11778
_ACEOF
11779 625 jeremybenn
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11780 19 jeremybenn
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11781
  *@@@%%%=?*=@@@%%%*)
11782
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11783
  *)
11784
    eval ac_cv_prog_make_${ac_make}_set=no;;
11785
esac
11786
rm -f conftest.make
11787
fi
11788
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11789 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11790 82 jeremybenn
$as_echo "yes" >&6; }
11791 19 jeremybenn
  SET_MAKE=
11792
else
11793 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 82 jeremybenn
$as_echo "no" >&6; }
11795 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11796
fi
11797
 
11798
 
11799 82 jeremybenn
 
11800 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11801
set dummy ar; ac_word=$2
11802 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11804 625 jeremybenn
if ${ac_cv_prog_AR+:} false; then :
11805 82 jeremybenn
  $as_echo_n "(cached) " >&6
11806 19 jeremybenn
else
11807
  if test -n "$AR"; then
11808
  ac_cv_prog_AR="$AR" # Let the user override the test.
11809
else
11810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811
for as_dir in $PATH
11812
do
11813
  IFS=$as_save_IFS
11814
  test -z "$as_dir" && as_dir=.
11815 346 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11816 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11817
    ac_cv_prog_AR="ar"
11818 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11819 19 jeremybenn
    break 2
11820
  fi
11821
done
11822 346 jeremybenn
  done
11823 19 jeremybenn
IFS=$as_save_IFS
11824
 
11825
fi
11826
fi
11827
AR=$ac_cv_prog_AR
11828
if test -n "$AR"; then
11829 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11830 82 jeremybenn
$as_echo "$AR" >&6; }
11831 19 jeremybenn
else
11832 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 82 jeremybenn
$as_echo "no" >&6; }
11834 19 jeremybenn
fi
11835
 
11836
 
11837
 
11838
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11839
# This allows people to set it when running configure or make
11840
test -n "$ARFLAGS" || ARFLAGS="cr"
11841
 
11842 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11843 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11844 625 jeremybenn
if ${ac_cv_type_signal+:} false; then :
11845 82 jeremybenn
  $as_echo_n "(cached) " >&6
11846 19 jeremybenn
else
11847 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11848 19 jeremybenn
/* end confdefs.h.  */
11849
#include 
11850
#include 
11851
 
11852
int
11853
main ()
11854
{
11855
return *(signal (0, 0)) (0) == 1;
11856
  ;
11857
  return 0;
11858
}
11859
_ACEOF
11860 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11861 19 jeremybenn
  ac_cv_type_signal=int
11862
else
11863 346 jeremybenn
  ac_cv_type_signal=void
11864 19 jeremybenn
fi
11865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866
fi
11867 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11868 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11869 19 jeremybenn
 
11870
cat >>confdefs.h <<_ACEOF
11871
#define RETSIGTYPE $ac_cv_type_signal
11872
_ACEOF
11873
 
11874
 
11875 236 jeremybenn
for ac_header in unistd.h stdlib.h stdarg.h string.h strings.h      \
11876 82 jeremybenn
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11877
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11878 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11879 538 julius
                 limits.h linux/if_tun.h
11880 346 jeremybenn
do :
11881
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11882
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11883 625 jeremybenn
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11884 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11885
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11886 19 jeremybenn
_ACEOF
11887
 
11888
fi
11889
 
11890
done
11891
 
11892
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11893 346 jeremybenn
do :
11894
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11895
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11896 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11897 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11898 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11899 19 jeremybenn
_ACEOF
11900
 
11901
fi
11902
done
11903
 
11904 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11905 346 jeremybenn
do :
11906
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11907
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11908 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11909 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11910 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11911 19 jeremybenn
_ACEOF
11912
 
11913
fi
11914
done
11915
 
11916
for ac_func in basename
11917 346 jeremybenn
do :
11918
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11919 625 jeremybenn
if test "x$ac_cv_func_basename" = xyes; then :
11920 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11921 346 jeremybenn
#define HAVE_BASENAME 1
11922 19 jeremybenn
_ACEOF
11923
 
11924
fi
11925
done
11926
 
11927 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11928 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11929 625 jeremybenn
if ${ac_cv_func_strcoll_works+:} false; then :
11930 82 jeremybenn
  $as_echo_n "(cached) " >&6
11931 19 jeremybenn
else
11932 346 jeremybenn
  if test "$cross_compiling" = yes; then :
11933 19 jeremybenn
  ac_cv_func_strcoll_works=no
11934
else
11935 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 19 jeremybenn
/* end confdefs.h.  */
11937
$ac_includes_default
11938
int
11939
main ()
11940
{
11941
return (strcoll ("abc", "def") >= 0 ||
11942
         strcoll ("ABC", "DEF") >= 0 ||
11943
         strcoll ("123", "456") >= 0)
11944
  ;
11945
  return 0;
11946
}
11947
_ACEOF
11948 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11949 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11950
else
11951 346 jeremybenn
  ac_cv_func_strcoll_works=no
11952 19 jeremybenn
fi
11953 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11954
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11955 19 jeremybenn
fi
11956
 
11957
fi
11958 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11959 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11960 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11961
 
11962 346 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11963 19 jeremybenn
 
11964
fi
11965
 
11966 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11967 82 jeremybenn
               #include 
11968 346 jeremybenn
"
11969 625 jeremybenn
if test "x$ac_cv_have_decl_I_PUSH" = xyes; then :
11970 346 jeremybenn
  ac_have_decl=1
11971 19 jeremybenn
else
11972 346 jeremybenn
  ac_have_decl=0
11973 19 jeremybenn
fi
11974
 
11975 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11976 346 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11977 19 jeremybenn
_ACEOF
11978 346 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11979 82 jeremybenn
               #include 
11980 346 jeremybenn
"
11981 625 jeremybenn
if test "x$ac_cv_have_decl_rl_event_hook" = xyes; then :
11982 346 jeremybenn
  ac_have_decl=1
11983 19 jeremybenn
else
11984 346 jeremybenn
  ac_have_decl=0
11985 19 jeremybenn
fi
11986
 
11987 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11988 346 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11989 19 jeremybenn
_ACEOF
11990
 
11991 346 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11992 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11993 625 jeremybenn
if ${ac_cv_c_bigendian+:} false; then :
11994 82 jeremybenn
  $as_echo_n "(cached) " >&6
11995 19 jeremybenn
else
11996 82 jeremybenn
  ac_cv_c_bigendian=unknown
11997
    # See if we're dealing with a universal compiler.
11998 346 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 19 jeremybenn
/* end confdefs.h.  */
12000 82 jeremybenn
#ifndef __APPLE_CC__
12001
               not a universal capable compiler
12002
             #endif
12003
             typedef int dummy;
12004
 
12005 19 jeremybenn
_ACEOF
12006 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12007 82 jeremybenn
 
12008
        # Check for potential -arch flags.  It is not universal unless
12009 346 jeremybenn
        # there are at least two -arch flags with different values.
12010
        ac_arch=
12011
        ac_prev=
12012
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12013
         if test -n "$ac_prev"; then
12014
           case $ac_word in
12015
             i?86 | x86_64 | ppc | ppc64)
12016
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12017
                 ac_arch=$ac_word
12018
               else
12019
                 ac_cv_c_bigendian=universal
12020
                 break
12021
               fi
12022
               ;;
12023
           esac
12024
           ac_prev=
12025
         elif test "x$ac_word" = "x-arch"; then
12026
           ac_prev=arch
12027
         fi
12028
       done
12029 19 jeremybenn
fi
12030
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
12032
      # See if sys/param.h defines the BYTE_ORDER macro.
12033 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 19 jeremybenn
/* end confdefs.h.  */
12035 82 jeremybenn
#include 
12036
             #include 
12037
 
12038
int
12039
main ()
12040
{
12041
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12042
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12043
                     && LITTLE_ENDIAN)
12044
              bogus endian macros
12045
             #endif
12046
 
12047
  ;
12048
  return 0;
12049
}
12050 19 jeremybenn
_ACEOF
12051 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12052 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
12053 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 19 jeremybenn
/* end confdefs.h.  */
12055 82 jeremybenn
#include 
12056
                #include 
12057
 
12058 19 jeremybenn
int
12059
main ()
12060
{
12061 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12062
                 not big endian
12063
                #endif
12064 19 jeremybenn
 
12065
  ;
12066
  return 0;
12067
}
12068
_ACEOF
12069 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12070 82 jeremybenn
  ac_cv_c_bigendian=yes
12071 19 jeremybenn
else
12072 346 jeremybenn
  ac_cv_c_bigendian=no
12073 19 jeremybenn
fi
12074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075
fi
12076 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077
    fi
12078
    if test $ac_cv_c_bigendian = unknown; then
12079
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12080 346 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 19 jeremybenn
/* end confdefs.h.  */
12082 82 jeremybenn
#include 
12083 19 jeremybenn
 
12084
int
12085
main ()
12086
{
12087 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12088
              bogus endian macros
12089
             #endif
12090 19 jeremybenn
 
12091
  ;
12092
  return 0;
12093
}
12094
_ACEOF
12095 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12096 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12097 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 19 jeremybenn
/* end confdefs.h.  */
12099 82 jeremybenn
#include 
12100 19 jeremybenn
 
12101
int
12102
main ()
12103
{
12104 82 jeremybenn
#ifndef _BIG_ENDIAN
12105
                 not big endian
12106
                #endif
12107 19 jeremybenn
 
12108
  ;
12109
  return 0;
12110
}
12111
_ACEOF
12112 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12113 19 jeremybenn
  ac_cv_c_bigendian=yes
12114
else
12115 346 jeremybenn
  ac_cv_c_bigendian=no
12116 19 jeremybenn
fi
12117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 82 jeremybenn
fi
12119
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12120
    fi
12121
    if test $ac_cv_c_bigendian = unknown; then
12122
      # Compile a test program.
12123 346 jeremybenn
      if test "$cross_compiling" = yes; then :
12124 82 jeremybenn
  # Try to guess by grepping values from an object file.
12125 346 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 19 jeremybenn
/* end confdefs.h.  */
12127 82 jeremybenn
short int ascii_mm[] =
12128
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12129
                short int ascii_ii[] =
12130
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12131
                int use_ascii (int i) {
12132
                  return ascii_mm[i] + ascii_ii[i];
12133
                }
12134
                short int ebcdic_ii[] =
12135
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12136
                short int ebcdic_mm[] =
12137
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12138
                int use_ebcdic (int i) {
12139
                  return ebcdic_mm[i] + ebcdic_ii[i];
12140
                }
12141
                extern int foo;
12142
 
12143 19 jeremybenn
int
12144
main ()
12145
{
12146 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12147 19 jeremybenn
  ;
12148
  return 0;
12149
}
12150
_ACEOF
12151 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12152 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12153
              ac_cv_c_bigendian=yes
12154
            fi
12155
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12156
              if test "$ac_cv_c_bigendian" = unknown; then
12157
                ac_cv_c_bigendian=no
12158
              else
12159
                # finding both strings is unlikely to happen, but who knows?
12160
                ac_cv_c_bigendian=unknown
12161
              fi
12162
            fi
12163 19 jeremybenn
fi
12164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165
else
12166 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 19 jeremybenn
/* end confdefs.h.  */
12168
$ac_includes_default
12169
int
12170
main ()
12171
{
12172
 
12173 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12174
             union
12175
             {
12176
               long int l;
12177
               char c[sizeof (long int)];
12178
             } u;
12179
             u.l = 1;
12180
             return u.c[sizeof (long int) - 1] == 1;
12181 19 jeremybenn
 
12182
  ;
12183
  return 0;
12184
}
12185
_ACEOF
12186 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12187 19 jeremybenn
  ac_cv_c_bigendian=no
12188
else
12189 346 jeremybenn
  ac_cv_c_bigendian=yes
12190 19 jeremybenn
fi
12191 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12192
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12193 19 jeremybenn
fi
12194
 
12195 82 jeremybenn
    fi
12196 19 jeremybenn
fi
12197 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12198 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12199
 case $ac_cv_c_bigendian in #(
12200
   yes)
12201 346 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12202 82 jeremybenn
;; #(
12203
   no)
12204
      ;; #(
12205
   universal)
12206 19 jeremybenn
 
12207 346 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12208 82 jeremybenn
 
12209
     ;; #(
12210
   *)
12211 625 jeremybenn
     as_fn_error $? "unknown endianness
12212 346 jeremybenn
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12213 82 jeremybenn
 esac
12214
 
12215
 
12216
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12217
# think it's because GCC 4 does not like the way autoconf overrides the built
12218
# in type declaration. So we must check for them by steam.
12219 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12220 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12221 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 82 jeremybenn
/* end confdefs.h.  */
12223
#ifdef HAVE_STRING_H
12224
                                  #include 
12225
                                  #else
12226
                                  char *strndup (const char *s,
12227
                                                 size_t      n);
12228
                                  #endif
12229
int
12230
main ()
12231
{
12232
\
12233
                                const char *s = "test";
12234 625 jeremybenn
                                  (void) strndup (s, 3);
12235 82 jeremybenn
  ;
12236
  return 0;
12237
}
12238
_ACEOF
12239 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12240 82 jeremybenn
  \
12241
 
12242 346 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12243 82 jeremybenn
 \
12244 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 82 jeremybenn
$as_echo "yes" >&6; }
12246
else
12247 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 82 jeremybenn
$as_echo "no" >&6; }
12249 19 jeremybenn
fi
12250 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12251
    conftest$ac_exeext conftest.$ac_ext
12252 19 jeremybenn
 
12253 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12254 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12255 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 82 jeremybenn
/* end confdefs.h.  */
12257
#ifdef HAVE_STRINGS_H
12258
                                  #include 
12259
                                  #else
12260
                                  int strcasecmp (const char *s1,
12261
                                                  const char *s2);
12262
                                  #endif
12263
int
12264
main ()
12265
{
12266
\
12267
                                const char *s = "test";
12268
                                  const char *t = "TEST";
12269 625 jeremybenn
                                  (void) strcasecmp (s, t);
12270 82 jeremybenn
  ;
12271
  return 0;
12272
}
12273
_ACEOF
12274 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12275 82 jeremybenn
  \
12276
 
12277 346 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12278 82 jeremybenn
 \
12279 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280 82 jeremybenn
$as_echo "yes" >&6; }
12281
else
12282 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 82 jeremybenn
$as_echo "no" >&6; }
12284
fi
12285 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12286
    conftest$ac_exeext conftest.$ac_ext
12287 82 jeremybenn
 
12288 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12289 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12290 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 82 jeremybenn
/* end confdefs.h.  */
12292
#ifdef HAVE_CTYPE_H
12293
                                  #include 
12294
                                  #else
12295
                                  int isblank (int  c);
12296
                                  #endif
12297
int
12298
main ()
12299
{
12300
\
12301
                                return isblank ('x');
12302
  ;
12303
  return 0;
12304
}
12305
_ACEOF
12306 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12307 82 jeremybenn
  \
12308 19 jeremybenn
 
12309 346 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12310 82 jeremybenn
 \
12311 346 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12312 82 jeremybenn
$as_echo "yes" >&6; }
12313
else
12314 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12315 82 jeremybenn
$as_echo "no" >&6; }
12316
fi
12317 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12318
    conftest$ac_exeext conftest.$ac_ext
12319 82 jeremybenn
 
12320 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12321 346 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12322 625 jeremybenn
if test "x$ac_cv_type_size_t" = xyes; then :
12323 19 jeremybenn
 
12324
else
12325
 
12326
cat >>confdefs.h <<_ACEOF
12327
#define size_t unsigned int
12328
_ACEOF
12329
 
12330
fi
12331
 
12332 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12333 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12334 625 jeremybenn
if ${ac_cv_struct_tm+:} false; then :
12335 82 jeremybenn
  $as_echo_n "(cached) " >&6
12336 19 jeremybenn
else
12337 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338 19 jeremybenn
/* end confdefs.h.  */
12339
#include 
12340
#include 
12341
 
12342
int
12343
main ()
12344
{
12345
struct tm tm;
12346
                                     int *p = &tm.tm_sec;
12347 82 jeremybenn
                                     return !p;
12348 19 jeremybenn
  ;
12349
  return 0;
12350
}
12351
_ACEOF
12352 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12353 19 jeremybenn
  ac_cv_struct_tm=time.h
12354
else
12355 346 jeremybenn
  ac_cv_struct_tm=sys/time.h
12356 19 jeremybenn
fi
12357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358
fi
12359 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12360 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12361 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12362
 
12363 346 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12364 19 jeremybenn
 
12365
fi
12366
 
12367
 
12368
# Checks for library functions (for argtable2).
12369
for ac_header in stdlib.h
12370 346 jeremybenn
do :
12371
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12372 625 jeremybenn
if test "x$ac_cv_header_stdlib_h" = xyes; then :
12373 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12374 346 jeremybenn
#define HAVE_STDLIB_H 1
12375 19 jeremybenn
_ACEOF
12376
 
12377
fi
12378
 
12379
done
12380
 
12381 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12382 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12383 625 jeremybenn
if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12384 82 jeremybenn
  $as_echo_n "(cached) " >&6
12385 19 jeremybenn
else
12386 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12387 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12388
else
12389 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 19 jeremybenn
/* end confdefs.h.  */
12391
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12392
# include 
12393
#else
12394
char *malloc ();
12395
#endif
12396
 
12397
int
12398
main ()
12399
{
12400
return ! malloc (0);
12401
  ;
12402
  return 0;
12403
}
12404
_ACEOF
12405 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12406 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12407
else
12408 346 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12409 19 jeremybenn
fi
12410 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12411
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12412 19 jeremybenn
fi
12413
 
12414
fi
12415 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12416 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12417 346 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12418 19 jeremybenn
 
12419 346 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12420 19 jeremybenn
 
12421
else
12422 346 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12423 19 jeremybenn
 
12424
   case " $LIBOBJS " in
12425
  *" malloc.$ac_objext "* ) ;;
12426
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12427
 ;;
12428
esac
12429
 
12430
 
12431 346 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12432 19 jeremybenn
 
12433
fi
12434
 
12435
 
12436
for ac_func in strftime
12437 346 jeremybenn
do :
12438
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12439 625 jeremybenn
if test "x$ac_cv_func_strftime" = xyes; then :
12440 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12441 346 jeremybenn
#define HAVE_STRFTIME 1
12442 19 jeremybenn
_ACEOF
12443
 
12444
else
12445
  # strftime is in -lintl on SCO UNIX.
12446 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12447 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12448 625 jeremybenn
if ${ac_cv_lib_intl_strftime+:} false; then :
12449 82 jeremybenn
  $as_echo_n "(cached) " >&6
12450 19 jeremybenn
else
12451
  ac_check_lib_save_LIBS=$LIBS
12452
LIBS="-lintl  $LIBS"
12453 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 19 jeremybenn
/* end confdefs.h.  */
12455
 
12456
/* Override any GCC internal prototype to avoid an error.
12457
   Use char because int might match the return type of a GCC
12458
   builtin and then its argument prototype would still apply.  */
12459
#ifdef __cplusplus
12460
extern "C"
12461
#endif
12462
char strftime ();
12463
int
12464
main ()
12465
{
12466
return strftime ();
12467
  ;
12468
  return 0;
12469
}
12470
_ACEOF
12471 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12472 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12473
else
12474 346 jeremybenn
  ac_cv_lib_intl_strftime=no
12475 19 jeremybenn
fi
12476 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12477
    conftest$ac_exeext conftest.$ac_ext
12478 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12479
fi
12480 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12481 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12482 625 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12483 346 jeremybenn
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12484 19 jeremybenn
 
12485
LIBS="-lintl $LIBS"
12486
fi
12487
 
12488
fi
12489
done
12490
 
12491 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12492 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12493 625 jeremybenn
if ${ac_cv_func_strtod+:} false; then :
12494 82 jeremybenn
  $as_echo_n "(cached) " >&6
12495 19 jeremybenn
else
12496 346 jeremybenn
  if test "$cross_compiling" = yes; then :
12497 19 jeremybenn
  ac_cv_func_strtod=no
12498
else
12499 346 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 19 jeremybenn
/* end confdefs.h.  */
12501
 
12502
$ac_includes_default
12503
#ifndef strtod
12504
double strtod ();
12505
#endif
12506
int
12507
main()
12508
{
12509
  {
12510
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12511
    char *string = " +69";
12512
    char *term;
12513
    double value;
12514
    value = strtod (string, &term);
12515
    if (value != 69 || term != (string + 4))
12516
      return 1;
12517
  }
12518
 
12519
  {
12520
    /* Under Solaris 2.4, strtod returns the wrong value for the
12521
       terminating character under some conditions.  */
12522
    char *string = "NaN";
12523
    char *term;
12524
    strtod (string, &term);
12525
    if (term != string && *(term - 1) == 0)
12526
      return 1;
12527
  }
12528
  return 0;
12529
}
12530
 
12531
_ACEOF
12532 346 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12533 19 jeremybenn
  ac_cv_func_strtod=yes
12534
else
12535 346 jeremybenn
  ac_cv_func_strtod=no
12536 19 jeremybenn
fi
12537 346 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12538
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12539 19 jeremybenn
fi
12540
 
12541
fi
12542 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12543 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12544 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12545
  case " $LIBOBJS " in
12546
  *" strtod.$ac_objext "* ) ;;
12547
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12548
 ;;
12549
esac
12550
 
12551 346 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12552 625 jeremybenn
if test "x$ac_cv_func_pow" = xyes; then :
12553 19 jeremybenn
 
12554
fi
12555
 
12556
if test $ac_cv_func_pow = no; then
12557 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12558 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12559 625 jeremybenn
if ${ac_cv_lib_m_pow+:} false; then :
12560 82 jeremybenn
  $as_echo_n "(cached) " >&6
12561 19 jeremybenn
else
12562
  ac_check_lib_save_LIBS=$LIBS
12563
LIBS="-lm  $LIBS"
12564 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 19 jeremybenn
/* end confdefs.h.  */
12566
 
12567
/* Override any GCC internal prototype to avoid an error.
12568
   Use char because int might match the return type of a GCC
12569
   builtin and then its argument prototype would still apply.  */
12570
#ifdef __cplusplus
12571
extern "C"
12572
#endif
12573
char pow ();
12574
int
12575
main ()
12576
{
12577
return pow ();
12578
  ;
12579
  return 0;
12580
}
12581
_ACEOF
12582 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12583 19 jeremybenn
  ac_cv_lib_m_pow=yes
12584
else
12585 346 jeremybenn
  ac_cv_lib_m_pow=no
12586 19 jeremybenn
fi
12587 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12588
    conftest$ac_exeext conftest.$ac_ext
12589 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12590
fi
12591 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12592 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12593 625 jeremybenn
if test "x$ac_cv_lib_m_pow" = xyes; then :
12594 19 jeremybenn
  POW_LIB=-lm
12595
else
12596 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12597 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12598 19 jeremybenn
fi
12599
 
12600
fi
12601
 
12602
fi
12603
 
12604
for ac_func in bzero strchr strcspn strrchr strtol
12605 346 jeremybenn
do :
12606
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12608 625 jeremybenn
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12609 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12610 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12611 19 jeremybenn
_ACEOF
12612
 
12613
fi
12614
done
12615
 
12616 346 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12617 625 jeremybenn
if test "x$ac_cv_func_getopt_long" = xyes; then :
12618 19 jeremybenn
  SYS_GETOPTLONG=1
12619
else
12620
  SYS_GETOPTLONG=0
12621
fi
12622
 
12623 346 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12624 625 jeremybenn
if test "x$ac_cv_func_regcomp" = xyes; then :
12625 19 jeremybenn
  SYS_REGEX=1
12626
else
12627
  SYS_REGEX=0
12628
fi
12629
 
12630 346 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12631 625 jeremybenn
if test "x$ac_cv_func_strptime" = xyes; then :
12632 19 jeremybenn
  SYS_STRPTIME=1
12633
else
12634
  SYS_STRPTIME=0
12635
fi
12636
 
12637
 
12638
# Define automake conditionals (for argtable2)
12639
 if test "$SYS_GETOPTLONG" = "1"; then
12640
  USE_SYS_GETOPTLONG_TRUE=
12641
  USE_SYS_GETOPTLONG_FALSE='#'
12642
else
12643
  USE_SYS_GETOPTLONG_TRUE='#'
12644
  USE_SYS_GETOPTLONG_FALSE=
12645
fi
12646
 
12647
 if test "$SYS_REGEX" = "1"; then
12648
  USE_ARGREX_TRUE=
12649
  USE_ARGREX_FALSE='#'
12650
else
12651
  USE_ARGREX_TRUE='#'
12652
  USE_ARGREX_FALSE=
12653
fi
12654
 
12655
 if test "$SYS_STRPTIME" = "1"; then
12656
  USE_ARGDATE_TRUE=
12657
  USE_ARGDATE_FALSE='#'
12658
else
12659
  USE_ARGDATE_TRUE='#'
12660
  USE_ARGDATE_FALSE=
12661
fi
12662
 
12663
 
12664
# check for "long long" (added by Erez)
12665 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 19 jeremybenn
/* end confdefs.h.  */
12667
 
12668
int
12669
main ()
12670
{
12671
long long ll; unsigned long long ull;
12672
  ;
12673
  return 0;
12674
}
12675
_ACEOF
12676 346 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12677 19 jeremybenn
 
12678 346 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12679 19 jeremybenn
 
12680
fi
12681
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682
 
12683
# check for {u,}int{8,16,32}_t in inttypes.h.
12684 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12685
"
12686 625 jeremybenn
if test "x$ac_cv_type_uint8_t" = xyes; then :
12687 82 jeremybenn
 
12688 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12689
#define HAVE_UINT8_T 1
12690
_ACEOF
12691
 
12692
 
12693
fi
12694 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12695
"
12696 625 jeremybenn
if test "x$ac_cv_type_uint16_t" = xyes; then :
12697 82 jeremybenn
 
12698 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12699
#define HAVE_UINT16_T 1
12700
_ACEOF
12701
 
12702
 
12703
fi
12704 346 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12705
"
12706 625 jeremybenn
if test "x$ac_cv_type_uint32_t" = xyes; then :
12707 82 jeremybenn
 
12708 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12709
#define HAVE_UINT32_T 1
12710
_ACEOF
12711
 
12712
 
12713
fi
12714
 
12715 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12716
"
12717 625 jeremybenn
if test "x$ac_cv_type_int8_t" = xyes; then :
12718 82 jeremybenn
 
12719 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12720
#define HAVE_INT8_T 1
12721
_ACEOF
12722
 
12723
 
12724
fi
12725 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12726
"
12727 625 jeremybenn
if test "x$ac_cv_type_int16_t" = xyes; then :
12728 82 jeremybenn
 
12729 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12730
#define HAVE_INT16_T 1
12731
_ACEOF
12732
 
12733
 
12734
fi
12735 346 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12736
"
12737 625 jeremybenn
if test "x$ac_cv_type_int32_t" = xyes; then :
12738 19 jeremybenn
 
12739 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12740
#define HAVE_INT32_T 1
12741
_ACEOF
12742
 
12743
 
12744
fi
12745
 
12746
 
12747 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12748
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12749
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12750
# This bug is HP SR number 8606223364.
12751 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12752 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12753 625 jeremybenn
if ${ac_cv_sizeof_char+:} false; then :
12754 82 jeremybenn
  $as_echo_n "(cached) " >&6
12755 19 jeremybenn
else
12756 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12757 19 jeremybenn
 
12758
else
12759 346 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12760
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12761 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12762 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (char)
12763
See \`config.log' for more details" "$LINENO" 5; }
12764 19 jeremybenn
   else
12765
     ac_cv_sizeof_char=0
12766
   fi
12767
fi
12768 346 jeremybenn
 
12769 19 jeremybenn
fi
12770 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12771 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12772 19 jeremybenn
 
12773
 
12774
 
12775
cat >>confdefs.h <<_ACEOF
12776
#define SIZEOF_CHAR $ac_cv_sizeof_char
12777
_ACEOF
12778
 
12779
 
12780
# The cast to long int works around a bug in the HP C Compiler
12781
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12782
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12783
# This bug is HP SR number 8606223364.
12784 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12785 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12786 625 jeremybenn
if ${ac_cv_sizeof_short+:} false; then :
12787 82 jeremybenn
  $as_echo_n "(cached) " >&6
12788 19 jeremybenn
else
12789 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12790 19 jeremybenn
 
12791
else
12792 346 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12793
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12794 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12795 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (short)
12796
See \`config.log' for more details" "$LINENO" 5; }
12797 19 jeremybenn
   else
12798
     ac_cv_sizeof_short=0
12799
   fi
12800
fi
12801 346 jeremybenn
 
12802 19 jeremybenn
fi
12803 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12804 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12805 19 jeremybenn
 
12806
 
12807
 
12808
cat >>confdefs.h <<_ACEOF
12809
#define SIZEOF_SHORT $ac_cv_sizeof_short
12810
_ACEOF
12811
 
12812
 
12813
# The cast to long int works around a bug in the HP C Compiler
12814
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12815
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12816
# This bug is HP SR number 8606223364.
12817 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12818 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12819 625 jeremybenn
if ${ac_cv_sizeof_int+:} false; then :
12820 82 jeremybenn
  $as_echo_n "(cached) " >&6
12821 19 jeremybenn
else
12822 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12823 19 jeremybenn
 
12824
else
12825 346 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12826
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12827 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12828 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (int)
12829
See \`config.log' for more details" "$LINENO" 5; }
12830 19 jeremybenn
   else
12831
     ac_cv_sizeof_int=0
12832
   fi
12833
fi
12834 346 jeremybenn
 
12835 19 jeremybenn
fi
12836 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12837 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12838 19 jeremybenn
 
12839
 
12840
 
12841
cat >>confdefs.h <<_ACEOF
12842
#define SIZEOF_INT $ac_cv_sizeof_int
12843
_ACEOF
12844
 
12845
 
12846
# The cast to long int works around a bug in the HP C Compiler
12847
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12848
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12849
# This bug is HP SR number 8606223364.
12850 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12851 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12852 625 jeremybenn
if ${ac_cv_sizeof_long+:} false; then :
12853 82 jeremybenn
  $as_echo_n "(cached) " >&6
12854 19 jeremybenn
else
12855 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12856 19 jeremybenn
 
12857
else
12858 346 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12859
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12860 233 julius
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12861 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (long)
12862
See \`config.log' for more details" "$LINENO" 5; }
12863 233 julius
   else
12864
     ac_cv_sizeof_long=0
12865
   fi
12866 230 jeremybenn
fi
12867 346 jeremybenn
 
12868 230 jeremybenn
fi
12869 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12870 233 julius
$as_echo "$ac_cv_sizeof_long" >&6; }
12871 230 jeremybenn
 
12872
 
12873
 
12874 233 julius
cat >>confdefs.h <<_ACEOF
12875
#define SIZEOF_LONG $ac_cv_sizeof_long
12876 230 jeremybenn
_ACEOF
12877
 
12878
 
12879 233 julius
# The cast to long int works around a bug in the HP C Compiler
12880
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12881
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12882
# This bug is HP SR number 8606223364.
12883 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12884 233 julius
$as_echo_n "checking size of long long... " >&6; }
12885 625 jeremybenn
if ${ac_cv_sizeof_long_long+:} false; then :
12886 233 julius
  $as_echo_n "(cached) " >&6
12887 230 jeremybenn
else
12888 346 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12889 230 jeremybenn
 
12890
else
12891 346 jeremybenn
  if test "$ac_cv_type_long_long" = yes; then
12892
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12893 230 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12894 625 jeremybenn
as_fn_error 77 "cannot compute sizeof (long long)
12895
See \`config.log' for more details" "$LINENO" 5; }
12896 230 jeremybenn
   else
12897 233 julius
     ac_cv_sizeof_long_long=0
12898 19 jeremybenn
   fi
12899
fi
12900 346 jeremybenn
 
12901 19 jeremybenn
fi
12902 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12903 233 julius
$as_echo "$ac_cv_sizeof_long_long" >&6; }
12904 19 jeremybenn
 
12905
 
12906
 
12907
cat >>confdefs.h <<_ACEOF
12908 233 julius
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12909 19 jeremybenn
_ACEOF
12910
 
12911
 
12912
 
12913
#Check for compare function type for qsort (needed by some Linuxes)
12914 346 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12915 625 jeremybenn
if test "x$ac_cv_type___compar_fn_t" = xyes; then :
12916 19 jeremybenn
 
12917
cat >>confdefs.h <<_ACEOF
12918
#define HAVE___COMPAR_FN_T 1
12919
_ACEOF
12920
 
12921
 
12922
fi
12923
 
12924
 
12925
# check for GNU readline
12926 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12927 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12928 625 jeremybenn
if ${ac_cv_lib_readline_add_history+:} false; then :
12929 82 jeremybenn
  $as_echo_n "(cached) " >&6
12930 19 jeremybenn
else
12931
  ac_check_lib_save_LIBS=$LIBS
12932
LIBS="-lreadline  $LIBS"
12933 346 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 19 jeremybenn
/* end confdefs.h.  */
12935
 
12936
/* Override any GCC internal prototype to avoid an error.
12937
   Use char because int might match the return type of a GCC
12938
   builtin and then its argument prototype would still apply.  */
12939
#ifdef __cplusplus
12940
extern "C"
12941
#endif
12942
char add_history ();
12943
int
12944
main ()
12945
{
12946
return add_history ();
12947
  ;
12948
  return 0;
12949
}
12950
_ACEOF
12951 346 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12952 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12953
else
12954 346 jeremybenn
  ac_cv_lib_readline_add_history=no
12955 19 jeremybenn
fi
12956 346 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12957
    conftest$ac_exeext conftest.$ac_ext
12958 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12959
fi
12960 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12961 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12962 625 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = xyes; then :
12963 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12964
#define HAVE_LIBREADLINE 1
12965
_ACEOF
12966
 
12967
  LIBS="-lreadline $LIBS"
12968
 
12969
fi
12970
 
12971
 
12972
# yuck
12973
case "$host_os" in
12974
aix*)   prefer_curses=yes ;;
12975
esac
12976
 
12977
case "$host_cpu" in
12978
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12979
esac
12980
 
12981
case "$host_os" in
12982
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12983
esac
12984
 
12985
case "$host_os" in
12986
solaris*) LIBS="-lsocket -lnsl" ;;
12987
esac
12988
 
12989
# define options
12990 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12991 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12992 19 jeremybenn
# Check whether --enable-profiling was given.
12993 346 jeremybenn
if test "${enable_profiling+set}" = set; then :
12994 19 jeremybenn
  enableval=$enable_profiling;
12995
    case "$enableval" in
12996
        yes) profile="-pg" ;;
12997
    esac
12998
 
12999
fi
13000
 
13001 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
13002 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
13003 19 jeremybenn
 
13004
execution="1"
13005
 
13006
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
13007 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
13008 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
13009 19 jeremybenn
# Check whether --enable-execution was given.
13010 346 jeremybenn
if test "${enable_execution+set}" = set; then :
13011 19 jeremybenn
  enableval=$enable_execution;
13012
    case "$enableval" in
13013
    simple)
13014
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
13015
      execution="0"
13016 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
13017 82 jeremybenn
$as_echo "simple" >&6; }
13018 19 jeremybenn
      ;;
13019
    complex)
13020
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
13021
      execution="1"
13022 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13023 82 jeremybenn
$as_echo "complex" >&6; }
13024 19 jeremybenn
      ;;
13025
    *)
13026 625 jeremybenn
      as_fn_error $? "\"execution must one of simple/complex\"" "$LINENO" 5
13027 19 jeremybenn
      ;;
13028
    esac
13029
 
13030
else
13031
 
13032 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
13033 82 jeremybenn
$as_echo "complex" >&6; }
13034 19 jeremybenn
 
13035
fi
13036
 
13037
 
13038
eth_phy="0"
13039 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
13040 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
13041 19 jeremybenn
# Check whether --enable-ethphy was given.
13042 346 jeremybenn
if test "${enable_ethphy+set}" = set; then :
13043 19 jeremybenn
  enableval=$enable_ethphy;
13044
    case "$enableval" in
13045
  no)  eth_phy="0" ;;
13046
        yes) eth_phy="1" ;;
13047
    esac
13048
 
13049
fi
13050
 
13051 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
13052 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13053 19 jeremybenn
 
13054 127 jeremybenn
unsigned_xori="0"
13055 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether l.xori takes an unsigned immediate operand" >&5
13056 127 jeremybenn
$as_echo_n "checking whether l.xori takes an unsigned immediate operand... " >&6; }
13057
# Check whether --enable-unsigned-xori was given.
13058 346 jeremybenn
if test "${enable_unsigned_xori+set}" = set; then :
13059 127 jeremybenn
  enableval=$enable_unsigned_xori;
13060
    case "$enableval" in
13061
  no)  unsigned_xori="0" ;;
13062
        yes) unsigned_xori="1" ;;
13063
    esac
13064 19 jeremybenn
 
13065 127 jeremybenn
fi
13066
 
13067 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_unsigned_xori-no}" >&5
13068 127 jeremybenn
$as_echo "${enable_unsigned_xori-no}" >&6; }
13069
 
13070 19 jeremybenn
raw_range_stats="0"
13071 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13072 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13073 19 jeremybenn
# Check whether --enable-range_stats was given.
13074 346 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13075 19 jeremybenn
  enableval=$enable_range_stats;
13076
    case "$enableval" in
13077
  no)  raw_range_stats="0" ;;
13078
        yes) raw_range_stats="1" simple_execution="1" ;;
13079
    esac
13080
 
13081
fi
13082
 
13083 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13084 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13085 19 jeremybenn
 
13086
# check for --enable-debug argument (for argtable2)
13087
# Check whether --enable-debug was given.
13088 346 jeremybenn
if test "${enable_debug+set}" = set; then :
13089 19 jeremybenn
  enableval=$enable_debug;
13090
       case $enableval in
13091
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13092
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13093
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13094
       esac
13095
 
13096
else
13097
  DEBUGFLAGS="-DNDEBUG"
13098
 
13099
fi
13100
 
13101
 
13102
 
13103
 
13104
cat >>confdefs.h <<_ACEOF
13105
#define RAW_RANGE_STATS $raw_range_stats
13106
_ACEOF
13107
 
13108
 
13109
cat >>confdefs.h <<_ACEOF
13110
#define HAVE_ETH_PHY $eth_phy
13111
_ACEOF
13112
 
13113
 
13114
cat >>confdefs.h <<_ACEOF
13115 127 jeremybenn
#define HAVE_UNSIGNED_XORI $unsigned_xori
13116
_ACEOF
13117
 
13118
 
13119
cat >>confdefs.h <<_ACEOF
13120 19 jeremybenn
#define SIMPLE_EXECUTION $execution == 0
13121
_ACEOF
13122
 
13123
 
13124
cat >>confdefs.h <<_ACEOF
13125
#define COMPLEX_EXECUTION $execution == 1
13126
_ACEOF
13127
 
13128
 if test x$execution = x1; then
13129
  GENERATE_NEEDED_TRUE=
13130
  GENERATE_NEEDED_FALSE='#'
13131
else
13132
  GENERATE_NEEDED_TRUE='#'
13133
  GENERATE_NEEDED_FALSE=
13134
fi
13135
 
13136
 
13137
 
13138
 
13139
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13140
 
13141 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13142
# ourselves. This stops runtest complaining
13143 387 jeremybenn
DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13144 90 jeremybenn
 
13145 96 jeremybenn
 
13146
 
13147
# The following line will override the default definition of the srcdir, and
13148
# ensure that short names are used for the test names.
13149
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13150
 
13151
 
13152 19 jeremybenn
BUILD_DIR=`pwd`
13153
 
13154
 
13155
 
13156
 
13157
 
13158
 
13159
 
13160
 
13161
 
13162
 
13163
 
13164
 
13165
 
13166
 
13167
 
13168
 
13169
 
13170
 
13171 346 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13172 19 jeremybenn
 
13173
 
13174
# yuck
13175
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13176
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13177
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13178
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13179
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13180 233 julius
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2 \
13181 556 julius
-I\${top_srcdir}/softfloat -I\${top_srcdir}/pcu"
13182 19 jeremybenn
 
13183
 
13184 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"
13185 19 jeremybenn
 
13186
 
13187
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13188
case "$CPU_ARCH" in
13189
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13190
;;
13191
esac
13192
 
13193 82 jeremybenn
# Generate the output
13194
 
13195
 
13196 19 jeremybenn
cat >confcache <<\_ACEOF
13197
# This file is a shell script that caches the results of configure
13198
# tests run on this system so they can be shared between configure
13199
# scripts and configure runs, see configure's option --config-cache.
13200
# It is not useful on other systems.  If it contains results you don't
13201
# want to keep, you may remove or edit it.
13202
#
13203
# config.status only pays attention to the cache file if you give it
13204
# the --recheck option to rerun configure.
13205
#
13206
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13207
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13208
# following values.
13209
 
13210
_ACEOF
13211
 
13212
# The following way of writing the cache mishandles newlines in values,
13213
# but we know of no workaround that is simple, portable, and efficient.
13214
# So, we kill variables containing newlines.
13215
# Ultrix sh set writes to stderr and can't be redirected directly,
13216
# and sets the high bit in the cache file unless we assign to the vars.
13217
(
13218
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13219
    eval ac_val=\$$ac_var
13220
    case $ac_val in #(
13221
    *${as_nl}*)
13222
      case $ac_var in #(
13223 346 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13224 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13225 19 jeremybenn
      esac
13226
      case $ac_var in #(
13227
      _ | IFS | as_nl) ;; #(
13228 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13229 346 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13230 19 jeremybenn
      esac ;;
13231
    esac
13232
  done
13233
 
13234
  (set) 2>&1 |
13235
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13236
    *${as_nl}ac_space=\ *)
13237 346 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13238
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13239 19 jeremybenn
      sed -n \
13240
        "s/'/'\\\\''/g;
13241
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13242
      ;; #(
13243
    *)
13244
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13245
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13246
      ;;
13247
    esac |
13248
    sort
13249
) |
13250
  sed '
13251
     /^ac_cv_env_/b end
13252
     t clear
13253
     :clear
13254
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13255
     t end
13256
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13257
     :end' >>confcache
13258
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13259
  if test -w "$cache_file"; then
13260 625 jeremybenn
    if test "x$cache_file" != "x/dev/null"; then
13261 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13262 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13263 625 jeremybenn
      if test ! -f "$cache_file" || test -h "$cache_file"; then
13264
        cat confcache >"$cache_file"
13265
      else
13266
        case $cache_file in #(
13267
        */* | ?:*)
13268
          mv -f confcache "$cache_file"$$ &&
13269
          mv -f "$cache_file"$$ "$cache_file" ;; #(
13270
        *)
13271
          mv -f confcache "$cache_file" ;;
13272
        esac
13273
      fi
13274
    fi
13275 19 jeremybenn
  else
13276 346 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13277 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13278 19 jeremybenn
  fi
13279
fi
13280
rm -f confcache
13281
 
13282
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13283
# Let make expand exec_prefix.
13284
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13285
 
13286
DEFS=-DHAVE_CONFIG_H
13287
 
13288
ac_libobjs=
13289
ac_ltlibobjs=
13290 625 jeremybenn
U=
13291 19 jeremybenn
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13292
  # 1. Remove the extension, and $U if already installed.
13293
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13294 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13295 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13296
  #    will be set to the directory where LIBOBJS objects are built.
13297 346 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13298
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13299 19 jeremybenn
done
13300
LIBOBJS=$ac_libobjs
13301
 
13302
LTLIBOBJS=$ac_ltlibobjs
13303
 
13304
 
13305
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13306 625 jeremybenn
  as_fn_error $? "conditional \"AMDEP\" was never defined.
13307 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13308 19 jeremybenn
fi
13309
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13310 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13311 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13312 19 jeremybenn
fi
13313 82 jeremybenn
 if test -n "$EXEEXT"; then
13314
  am__EXEEXT_TRUE=
13315
  am__EXEEXT_FALSE='#'
13316
else
13317
  am__EXEEXT_TRUE='#'
13318
  am__EXEEXT_FALSE=
13319
fi
13320
 
13321
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13322 625 jeremybenn
  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13323 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13324 19 jeremybenn
fi
13325 82 jeremybenn
 
13326 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13327 625 jeremybenn
  as_fn_error $? "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13328 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13329 19 jeremybenn
fi
13330
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13331 625 jeremybenn
  as_fn_error $? "conditional \"USE_ARGREX\" was never defined.
13332 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13333 19 jeremybenn
fi
13334
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13335 625 jeremybenn
  as_fn_error $? "conditional \"USE_ARGDATE\" was never defined.
13336 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13337 19 jeremybenn
fi
13338
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13339 625 jeremybenn
  as_fn_error $? "conditional \"GENERATE_NEEDED\" was never defined.
13340 346 jeremybenn
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13341 19 jeremybenn
fi
13342
 
13343 625 jeremybenn
: "${CONFIG_STATUS=./config.status}"
13344 82 jeremybenn
ac_write_fail=0
13345 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13346
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13347 346 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13348 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13349 346 jeremybenn
as_write_fail=0
13350
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13351 19 jeremybenn
#! $SHELL
13352
# Generated by $as_me.
13353
# Run this file to recreate the current configuration.
13354
# Compiler output produced by configure, useful for debugging
13355
# configure, is in config.log if it exists.
13356
 
13357
debug=false
13358
ac_cs_recheck=false
13359
ac_cs_silent=false
13360 346 jeremybenn
 
13361 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13362 346 jeremybenn
export SHELL
13363
_ASEOF
13364
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13365
## -------------------- ##
13366
## M4sh Initialization. ##
13367
## -------------------- ##
13368 19 jeremybenn
 
13369
# Be more Bourne compatible
13370
DUALCASE=1; export DUALCASE # for MKS sh
13371 346 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13372 19 jeremybenn
  emulate sh
13373
  NULLCMD=:
13374 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13375 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13376
  alias -g '${1+"$@"}'='"$@"'
13377
  setopt NO_GLOB_SUBST
13378
else
13379 346 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13380
  *posix*) :
13381
    set -o posix ;; #(
13382
  *) :
13383
     ;;
13384 19 jeremybenn
esac
13385
fi
13386
 
13387
 
13388 82 jeremybenn
as_nl='
13389
'
13390
export as_nl
13391
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13392
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13393
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13394
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13395 346 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13396
# but without wasting forks for bash or zsh.
13397
if test -z "$BASH_VERSION$ZSH_VERSION" \
13398
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13399
  as_echo='print -r --'
13400
  as_echo_n='print -rn --'
13401
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13402 82 jeremybenn
  as_echo='printf %s\n'
13403
  as_echo_n='printf %s'
13404
else
13405
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13406
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13407
    as_echo_n='/usr/ucb/echo -n'
13408 19 jeremybenn
  else
13409 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13410
    as_echo_n_body='eval
13411
      arg=$1;
13412 346 jeremybenn
      case $arg in #(
13413 82 jeremybenn
      *"$as_nl"*)
13414
        expr "X$arg" : "X\\(.*\\)$as_nl";
13415
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13416
      esac;
13417
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13418
    '
13419
    export as_echo_n_body
13420
    as_echo_n='sh -c $as_echo_n_body as_echo'
13421 19 jeremybenn
  fi
13422 82 jeremybenn
  export as_echo_body
13423
  as_echo='sh -c $as_echo_body as_echo'
13424 19 jeremybenn
fi
13425
 
13426 82 jeremybenn
# The user is always right.
13427
if test "${PATH_SEPARATOR+set}" != set; then
13428
  PATH_SEPARATOR=:
13429
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13430
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13431
      PATH_SEPARATOR=';'
13432
  }
13433
fi
13434
 
13435 19 jeremybenn
 
13436
# IFS
13437
# We need space, tab and new line, in precisely that order.  Quoting is
13438
# there to prevent editors from complaining about space-tab.
13439
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13440
# splitting by setting IFS to empty value.)
13441
IFS=" ""        $as_nl"
13442
 
13443
# Find who we are.  Look in the path if we contain no directory separator.
13444 625 jeremybenn
as_myself=
13445 346 jeremybenn
case $0 in #((
13446 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13447
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448
for as_dir in $PATH
13449
do
13450
  IFS=$as_save_IFS
13451
  test -z "$as_dir" && as_dir=.
13452 346 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13453
  done
13454 19 jeremybenn
IFS=$as_save_IFS
13455
 
13456
     ;;
13457
esac
13458
# We did not find ourselves, most probably we were run as `sh COMMAND'
13459
# in which case we are not to be found in the path.
13460
if test "x$as_myself" = x; then
13461
  as_myself=$0
13462
fi
13463
if test ! -f "$as_myself"; then
13464 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13465 346 jeremybenn
  exit 1
13466 19 jeremybenn
fi
13467
 
13468 346 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13469
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13470
# suppresses any "Segmentation fault" message there.  '((' could
13471
# trigger a bug in pdksh 5.2.14.
13472
for as_var in BASH_ENV ENV MAIL MAILPATH
13473
do eval test x\${$as_var+set} = xset \
13474
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13475 19 jeremybenn
done
13476
PS1='$ '
13477
PS2='> '
13478
PS4='+ '
13479
 
13480
# NLS nuisances.
13481 82 jeremybenn
LC_ALL=C
13482
export LC_ALL
13483
LANGUAGE=C
13484
export LANGUAGE
13485 19 jeremybenn
 
13486 346 jeremybenn
# CDPATH.
13487
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13488
 
13489
 
13490 625 jeremybenn
# as_fn_error STATUS ERROR [LINENO LOG_FD]
13491
# ----------------------------------------
13492 346 jeremybenn
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13493
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13494 625 jeremybenn
# script with STATUS, using 1 if that was 0.
13495 346 jeremybenn
as_fn_error ()
13496
{
13497 625 jeremybenn
  as_status=$1; test $as_status -eq 0 && as_status=1
13498
  if test "$4"; then
13499
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13500
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13501 346 jeremybenn
  fi
13502 625 jeremybenn
  $as_echo "$as_me: error: $2" >&2
13503 346 jeremybenn
  as_fn_exit $as_status
13504
} # as_fn_error
13505
 
13506
 
13507
# as_fn_set_status STATUS
13508
# -----------------------
13509
# Set $? to STATUS, without forking.
13510
as_fn_set_status ()
13511
{
13512
  return $1
13513
} # as_fn_set_status
13514
 
13515
# as_fn_exit STATUS
13516
# -----------------
13517
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13518
as_fn_exit ()
13519
{
13520
  set +e
13521
  as_fn_set_status $1
13522
  exit $1
13523
} # as_fn_exit
13524
 
13525
# as_fn_unset VAR
13526
# ---------------
13527
# Portably unset VAR.
13528
as_fn_unset ()
13529
{
13530
  { eval $1=; unset $1;}
13531
}
13532
as_unset=as_fn_unset
13533
# as_fn_append VAR VALUE
13534
# ----------------------
13535
# Append the text in VALUE to the end of the definition contained in VAR. Take
13536
# advantage of any shell optimizations that allow amortized linear growth over
13537
# repeated appends, instead of the typical quadratic growth present in naive
13538
# implementations.
13539
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13540
  eval 'as_fn_append ()
13541
  {
13542
    eval $1+=\$2
13543
  }'
13544
else
13545
  as_fn_append ()
13546
  {
13547
    eval $1=\$$1\$2
13548
  }
13549
fi # as_fn_append
13550
 
13551
# as_fn_arith ARG...
13552
# ------------------
13553
# Perform arithmetic evaluation on the ARGs, and store the result in the
13554
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13555
# must be portable across $(()) and expr.
13556
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13557
  eval 'as_fn_arith ()
13558
  {
13559
    as_val=$(( $* ))
13560
  }'
13561
else
13562
  as_fn_arith ()
13563
  {
13564
    as_val=`expr "$@" || test $? -eq 1`
13565
  }
13566
fi # as_fn_arith
13567
 
13568
 
13569 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13570
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13571
  as_expr=expr
13572
else
13573
  as_expr=false
13574
fi
13575
 
13576
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13577
  as_basename=basename
13578
else
13579
  as_basename=false
13580
fi
13581
 
13582 346 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13583
  as_dirname=dirname
13584
else
13585
  as_dirname=false
13586
fi
13587 19 jeremybenn
 
13588
as_me=`$as_basename -- "$0" ||
13589
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13590
         X"$0" : 'X\(//\)$' \| \
13591
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13592 82 jeremybenn
$as_echo X/"$0" |
13593 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13594
            s//\1/
13595
            q
13596
          }
13597
          /^X\/\(\/\/\)$/{
13598
            s//\1/
13599
            q
13600
          }
13601
          /^X\/\(\/\).*/{
13602
            s//\1/
13603
            q
13604
          }
13605
          s/.*/./; q'`
13606
 
13607 346 jeremybenn
# Avoid depending upon Character Ranges.
13608
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13609
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13610
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13611
as_cr_digits='0123456789'
13612
as_cr_alnum=$as_cr_Letters$as_cr_digits
13613 19 jeremybenn
 
13614
ECHO_C= ECHO_N= ECHO_T=
13615 346 jeremybenn
case `echo -n x` in #(((((
13616 19 jeremybenn
-n*)
13617 346 jeremybenn
  case `echo 'xy\c'` in
13618 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13619 346 jeremybenn
  xy)  ECHO_C='\c';;
13620
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13621
       ECHO_T=' ';;
13622 19 jeremybenn
  esac;;
13623
*)
13624
  ECHO_N='-n';;
13625
esac
13626
 
13627
rm -f conf$$ conf$$.exe conf$$.file
13628
if test -d conf$$.dir; then
13629
  rm -f conf$$.dir/conf$$.file
13630
else
13631
  rm -f conf$$.dir
13632 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13633 19 jeremybenn
fi
13634 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13635
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13636
    as_ln_s='ln -s'
13637
    # ... but there are two gotchas:
13638
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13639
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13640
    # In both cases, we have to default to `cp -p'.
13641
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13642
      as_ln_s='cp -p'
13643
  elif ln conf$$.file conf$$ 2>/dev/null; then
13644
    as_ln_s=ln
13645
  else
13646 19 jeremybenn
    as_ln_s='cp -p'
13647 82 jeremybenn
  fi
13648 19 jeremybenn
else
13649
  as_ln_s='cp -p'
13650
fi
13651
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13652
rmdir conf$$.dir 2>/dev/null
13653
 
13654 346 jeremybenn
 
13655
# as_fn_mkdir_p
13656
# -------------
13657
# Create "$as_dir" as a directory, including parents if necessary.
13658
as_fn_mkdir_p ()
13659
{
13660
 
13661
  case $as_dir in #(
13662
  -*) as_dir=./$as_dir;;
13663
  esac
13664
  test -d "$as_dir" || eval $as_mkdir_p || {
13665
    as_dirs=
13666
    while :; do
13667
      case $as_dir in #(
13668
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13669
      *) as_qdir=$as_dir;;
13670
      esac
13671
      as_dirs="'$as_qdir' $as_dirs"
13672
      as_dir=`$as_dirname -- "$as_dir" ||
13673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13674
         X"$as_dir" : 'X\(//\)[^/]' \| \
13675
         X"$as_dir" : 'X\(//\)$' \| \
13676
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13677
$as_echo X"$as_dir" |
13678
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13679
            s//\1/
13680
            q
13681
          }
13682
          /^X\(\/\/\)[^/].*/{
13683
            s//\1/
13684
            q
13685
          }
13686
          /^X\(\/\/\)$/{
13687
            s//\1/
13688
            q
13689
          }
13690
          /^X\(\/\).*/{
13691
            s//\1/
13692
            q
13693
          }
13694
          s/.*/./; q'`
13695
      test -d "$as_dir" && break
13696
    done
13697
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13698 625 jeremybenn
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13699 346 jeremybenn
 
13700
 
13701
} # as_fn_mkdir_p
13702 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13703 346 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13704 19 jeremybenn
else
13705
  test -d ./-p && rmdir ./-p
13706
  as_mkdir_p=false
13707
fi
13708
 
13709
if test -x / >/dev/null 2>&1; then
13710
  as_test_x='test -x'
13711
else
13712
  if ls -dL / >/dev/null 2>&1; then
13713
    as_ls_L_option=L
13714
  else
13715
    as_ls_L_option=
13716
  fi
13717
  as_test_x='
13718
    eval sh -c '\''
13719
      if test -d "$1"; then
13720 82 jeremybenn
        test -d "$1/.";
13721 19 jeremybenn
      else
13722 346 jeremybenn
        case $1 in #(
13723 82 jeremybenn
        -*)set "./$1";;
13724 19 jeremybenn
        esac;
13725 346 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13726 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13727
    '\'' sh
13728
  '
13729
fi
13730
as_executable_p=$as_test_x
13731
 
13732
# Sed expression to map a string onto a valid CPP name.
13733
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13734
 
13735
# Sed expression to map a string onto a valid variable name.
13736
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13737
 
13738
 
13739
exec 6>&1
13740 346 jeremybenn
## ----------------------------------- ##
13741
## Main body of $CONFIG_STATUS script. ##
13742
## ----------------------------------- ##
13743
_ASEOF
13744
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13745 19 jeremybenn
 
13746 346 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13747
# Save the log message, to keep $0 and so on meaningful, and to
13748 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13749
# values after options handling.
13750
ac_log="
13751 625 jeremybenn
This file was extended by or1ksim $as_me 2011-08-15, which was
13752
generated by GNU Autoconf 2.68.  Invocation command line was
13753 19 jeremybenn
 
13754
  CONFIG_FILES    = $CONFIG_FILES
13755
  CONFIG_HEADERS  = $CONFIG_HEADERS
13756
  CONFIG_LINKS    = $CONFIG_LINKS
13757
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13758
  $ $0 $@
13759
 
13760
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13761
"
13762
 
13763
_ACEOF
13764
 
13765 82 jeremybenn
case $ac_config_files in *"
13766
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13767
esac
13768
 
13769
case $ac_config_headers in *"
13770
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13771
esac
13772
 
13773
 
13774
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13775 19 jeremybenn
# Files that config.status was made for.
13776
config_files="$ac_config_files"
13777
config_headers="$ac_config_headers"
13778
config_commands="$ac_config_commands"
13779
 
13780
_ACEOF
13781
 
13782 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13783 19 jeremybenn
ac_cs_usage="\
13784 346 jeremybenn
\`$as_me' instantiates files and other configuration actions
13785
from templates according to the current configuration.  Unless the files
13786
and actions are specified as TAGs, all are instantiated by default.
13787 19 jeremybenn
 
13788 346 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13789 19 jeremybenn
 
13790
  -h, --help       print this help, then exit
13791
  -V, --version    print version number and configuration settings, then exit
13792 625 jeremybenn
      --config     print configuration, then exit
13793 82 jeremybenn
  -q, --quiet, --silent
13794
                   do not print progress messages
13795 19 jeremybenn
  -d, --debug      don't remove temporary files
13796
      --recheck    update $as_me by reconfiguring in the same conditions
13797 82 jeremybenn
      --file=FILE[:TEMPLATE]
13798
                   instantiate the configuration file FILE
13799
      --header=FILE[:TEMPLATE]
13800
                   instantiate the configuration header FILE
13801 19 jeremybenn
 
13802
Configuration files:
13803
$config_files
13804
 
13805
Configuration headers:
13806
$config_headers
13807
 
13808
Configuration commands:
13809
$config_commands
13810
 
13811 346 jeremybenn
Report bugs to ."
13812 19 jeremybenn
 
13813
_ACEOF
13814 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13815 625 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13816 19 jeremybenn
ac_cs_version="\\
13817 625 jeremybenn
or1ksim config.status 2011-08-15
13818
configured by $0, generated by GNU Autoconf 2.68,
13819
  with options \\"\$ac_cs_config\\"
13820 19 jeremybenn
 
13821 625 jeremybenn
Copyright (C) 2010 Free Software Foundation, Inc.
13822 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13823
gives unlimited permission to copy, distribute and modify it."
13824
 
13825
ac_pwd='$ac_pwd'
13826
srcdir='$srcdir'
13827
INSTALL='$INSTALL'
13828
MKDIR_P='$MKDIR_P'
13829 82 jeremybenn
AWK='$AWK'
13830
test -n "\$AWK" || AWK=awk
13831 19 jeremybenn
_ACEOF
13832
 
13833 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13834
# The default lists apply if the user does not specify any file.
13835 19 jeremybenn
ac_need_defaults=:
13836
while test $# != 0
13837
do
13838
  case $1 in
13839 625 jeremybenn
  --*=?*)
13840 19 jeremybenn
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13841
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13842
    ac_shift=:
13843
    ;;
13844 625 jeremybenn
  --*=)
13845
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13846
    ac_optarg=
13847
    ac_shift=:
13848
    ;;
13849 19 jeremybenn
  *)
13850
    ac_option=$1
13851
    ac_optarg=$2
13852
    ac_shift=shift
13853
    ;;
13854
  esac
13855
 
13856
  case $ac_option in
13857
  # Handling of the options.
13858
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13859
    ac_cs_recheck=: ;;
13860
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13861 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13862 625 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
13863
    $as_echo "$ac_cs_config"; exit ;;
13864 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13865
    debug=: ;;
13866
  --file | --fil | --fi | --f )
13867
    $ac_shift
13868 82 jeremybenn
    case $ac_optarg in
13869
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13870 625 jeremybenn
    '') as_fn_error $? "missing file argument" ;;
13871 82 jeremybenn
    esac
13872 346 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13873 19 jeremybenn
    ac_need_defaults=false;;
13874
  --header | --heade | --head | --hea )
13875
    $ac_shift
13876 82 jeremybenn
    case $ac_optarg in
13877
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13878
    esac
13879 346 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13880 19 jeremybenn
    ac_need_defaults=false;;
13881
  --he | --h)
13882
    # Conflict between --help and --header
13883 625 jeremybenn
    as_fn_error $? "ambiguous option: \`$1'
13884 346 jeremybenn
Try \`$0 --help' for more information.";;
13885 19 jeremybenn
  --help | --hel | -h )
13886 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13887 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13888
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13889
    ac_cs_silent=: ;;
13890
 
13891
  # This is an error.
13892 625 jeremybenn
  -*) as_fn_error $? "unrecognized option: \`$1'
13893 346 jeremybenn
Try \`$0 --help' for more information." ;;
13894 19 jeremybenn
 
13895 346 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13896 19 jeremybenn
     ac_need_defaults=false ;;
13897
 
13898
  esac
13899
  shift
13900
done
13901
 
13902
ac_configure_extra_args=
13903
 
13904
if $ac_cs_silent; then
13905
  exec 6>/dev/null
13906
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13907
fi
13908
 
13909
_ACEOF
13910 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 19 jeremybenn
if \$ac_cs_recheck; then
13912 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13913
  shift
13914
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13915
  CONFIG_SHELL='$SHELL'
13916 19 jeremybenn
  export CONFIG_SHELL
13917 82 jeremybenn
  exec "\$@"
13918 19 jeremybenn
fi
13919
 
13920
_ACEOF
13921 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13922 19 jeremybenn
exec 5>>config.log
13923
{
13924
  echo
13925
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13926
## Running $as_me. ##
13927
_ASBOX
13928 82 jeremybenn
  $as_echo "$ac_log"
13929 19 jeremybenn
} >&5
13930
 
13931
_ACEOF
13932 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13933 19 jeremybenn
#
13934
# INIT-COMMANDS
13935
#
13936 82 jeremybenn
 
13937
 
13938
# The HP-UX ksh and POSIX shell print the target directory to stdout
13939
# if CDPATH is set.
13940
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13941
 
13942
sed_quote_subst='$sed_quote_subst'
13943
double_quote_subst='$double_quote_subst'
13944
delay_variable_subst='$delay_variable_subst'
13945
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13946
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13947
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13948
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13949
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13950
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13951
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13952
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13953
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13954
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13955
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13956
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13957
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13958
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13959
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13960
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13961
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13962
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13963
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13964
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13965
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13966
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13967
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13968
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13969
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13970
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13971
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13972
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13973
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13974
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13975
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13976
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13977
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13978
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13979
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13980
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13981
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13982
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13983
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13984
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13985
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13986
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13987
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13988
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13989
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13990
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13991
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13992
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13993
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13994
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13995
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13996
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13997
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13998
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13999
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14000
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14001
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14002
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14003
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14004
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14005
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14006
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14007
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14008
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14009
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14010
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14011
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14012
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14013
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14014
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14015
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14016
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14017
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14018
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14019
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14020
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14021
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14022
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14023
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14024
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14025
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14026
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14027
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14028
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14029
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14030
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14031
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14032
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14033
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14034
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14035
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14036
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14037
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14038
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14039
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14040
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14041
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14042
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14043
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14044
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14045
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14046
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14047
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14048
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14049
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14050
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14051
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14052
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14053
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14054
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14055
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14056
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14057
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14058
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14059
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14060
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14061
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14062
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14063
 
14064
LTCC='$LTCC'
14065
LTCFLAGS='$LTCFLAGS'
14066
compiler='$compiler_DEFAULT'
14067
 
14068
# Quote evaled strings.
14069
for var in SED \
14070
GREP \
14071
EGREP \
14072
FGREP \
14073
LD \
14074
NM \
14075
LN_S \
14076
lt_SP2NL \
14077
lt_NL2SP \
14078
reload_flag \
14079
OBJDUMP \
14080
deplibs_check_method \
14081
file_magic_cmd \
14082
AR \
14083
AR_FLAGS \
14084
STRIP \
14085
RANLIB \
14086
CC \
14087
CFLAGS \
14088
compiler \
14089
lt_cv_sys_global_symbol_pipe \
14090
lt_cv_sys_global_symbol_to_cdecl \
14091
lt_cv_sys_global_symbol_to_c_name_address \
14092
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14093
SHELL \
14094
ECHO \
14095
lt_prog_compiler_no_builtin_flag \
14096
lt_prog_compiler_wl \
14097
lt_prog_compiler_pic \
14098
lt_prog_compiler_static \
14099
lt_cv_prog_compiler_c_o \
14100
need_locks \
14101
DSYMUTIL \
14102
NMEDIT \
14103
LIPO \
14104
OTOOL \
14105
OTOOL64 \
14106
shrext_cmds \
14107
export_dynamic_flag_spec \
14108
whole_archive_flag_spec \
14109
compiler_needs_object \
14110
with_gnu_ld \
14111
allow_undefined_flag \
14112
no_undefined_flag \
14113
hardcode_libdir_flag_spec \
14114
hardcode_libdir_flag_spec_ld \
14115
hardcode_libdir_separator \
14116
fix_srcfile_path \
14117
exclude_expsyms \
14118
include_expsyms \
14119
file_list_spec \
14120
variables_saved_for_relink \
14121
libname_spec \
14122
library_names_spec \
14123
soname_spec \
14124
finish_eval \
14125
old_striplib \
14126
striplib; do
14127
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14128
    *[\\\\\\\`\\"\\\$]*)
14129
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14130
      ;;
14131
    *)
14132
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14133
      ;;
14134
    esac
14135
done
14136
 
14137
# Double-quote double-evaled strings.
14138
for var in reload_cmds \
14139
old_postinstall_cmds \
14140
old_postuninstall_cmds \
14141
old_archive_cmds \
14142
extract_expsyms_cmds \
14143
old_archive_from_new_cmds \
14144
old_archive_from_expsyms_cmds \
14145
archive_cmds \
14146
archive_expsym_cmds \
14147
module_cmds \
14148
module_expsym_cmds \
14149
export_symbols_cmds \
14150
prelink_cmds \
14151
postinstall_cmds \
14152
postuninstall_cmds \
14153
finish_cmds \
14154
sys_lib_search_path_spec \
14155
sys_lib_dlsearch_path_spec; do
14156
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14157
    *[\\\\\\\`\\"\\\$]*)
14158
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14159
      ;;
14160
    *)
14161
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14162
      ;;
14163
    esac
14164
done
14165
 
14166
# Fix-up fallback echo if it was mangled by the above quoting rules.
14167
case \$lt_ECHO in
14168
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14169
  ;;
14170
esac
14171
 
14172
ac_aux_dir='$ac_aux_dir'
14173
xsi_shell='$xsi_shell'
14174
lt_shell_append='$lt_shell_append'
14175
 
14176
# See if we are running on zsh, and set the options which allow our
14177
# commands through without removal of \ escapes INIT.
14178
if test -n "\${ZSH_VERSION+set}" ; then
14179
   setopt NO_GLOB_SUBST
14180
fi
14181
 
14182
 
14183
    PACKAGE='$PACKAGE'
14184
    VERSION='$VERSION'
14185
    TIMESTAMP='$TIMESTAMP'
14186
    RM='$RM'
14187
    ofile='$ofile'
14188
 
14189
 
14190
 
14191 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14192
 
14193
_ACEOF
14194
 
14195 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 19 jeremybenn
 
14197
# Handling of arguments.
14198
for ac_config_target in $ac_config_targets
14199
do
14200
  case $ac_config_target in
14201 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14202 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14203
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14204
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14205
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14206
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14207
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14208
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14209
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14210
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14211
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14212 233 julius
    "softfloat/Makefile") CONFIG_FILES="$CONFIG_FILES softfloat/Makefile" ;;
14213 19 jeremybenn
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14214
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14215
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14216
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14217
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14218
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14219
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14220 556 julius
    "pcu/Makefile") CONFIG_FILES="$CONFIG_FILES pcu/Makefile" ;;
14221 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14222
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14223
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14224
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14225
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14226
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14227
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14228
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14229
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14230 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14231 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14232 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14233 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14234 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14235
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14236
 
14237 625 jeremybenn
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14238 19 jeremybenn
  esac
14239
done
14240
 
14241
 
14242
# If the user did not use the arguments to specify the items to instantiate,
14243
# then the envvar interface is used.  Set only those that are not.
14244
# We use the long form for the default assignment because of an extremely
14245
# bizarre bug on SunOS 4.1.3.
14246
if $ac_need_defaults; then
14247
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14248
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14249
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14250
fi
14251
 
14252
# Have a temporary directory for convenience.  Make it in the build tree
14253
# simply because there is no reason against having it here, and in addition,
14254
# creating and moving files from /tmp can sometimes cause problems.
14255
# Hook for its removal unless debugging.
14256
# Note that there is a small window in which the directory will not be cleaned:
14257
# after its creation but before its name has been assigned to `$tmp'.
14258
$debug ||
14259
{
14260 625 jeremybenn
  tmp= ac_tmp=
14261 19 jeremybenn
  trap 'exit_status=$?
14262 625 jeremybenn
  : "${ac_tmp:=$tmp}"
14263
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14264 19 jeremybenn
' 0
14265 346 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14266 19 jeremybenn
}
14267
# Create a (secure) tmp directory for tmp files.
14268
 
14269
{
14270
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14271 625 jeremybenn
  test -d "$tmp"
14272 19 jeremybenn
}  ||
14273
{
14274
  tmp=./conf$$-$RANDOM
14275
  (umask 077 && mkdir "$tmp")
14276 625 jeremybenn
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14277
ac_tmp=$tmp
14278 19 jeremybenn
 
14279 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14280
# No need to generate them if there are no CONFIG_FILES.
14281
# This happens for instance with `./config.status config.h'.
14282 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14283
 
14284 82 jeremybenn
 
14285 346 jeremybenn
ac_cr=`echo X | tr X '\015'`
14286
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14287
# But we know of no other shell where ac_cr would be empty at this
14288
# point, so we can use a bashism as a fallback.
14289
if test "x$ac_cr" = x; then
14290
  eval ac_cr=\$\'\\r\'
14291
fi
14292 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14293
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14294 625 jeremybenn
  ac_cs_awk_cr='\\r'
14295 82 jeremybenn
else
14296
  ac_cs_awk_cr=$ac_cr
14297
fi
14298
 
14299 625 jeremybenn
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14300 19 jeremybenn
_ACEOF
14301
 
14302
 
14303 82 jeremybenn
{
14304
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14305
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14306
  echo "_ACEOF"
14307
} >conf$$subs.sh ||
14308 625 jeremybenn
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14309
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14310 19 jeremybenn
ac_delim='%!_!# '
14311
for ac_last_try in false false false false false :; do
14312 82 jeremybenn
  . ./conf$$subs.sh ||
14313 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14314 19 jeremybenn
 
14315 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14316
  if test $ac_delim_n = $ac_delim_num; then
14317 19 jeremybenn
    break
14318
  elif $ac_last_try; then
14319 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14320 19 jeremybenn
  else
14321
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14322
  fi
14323
done
14324 82 jeremybenn
rm -f conf$$subs.sh
14325 19 jeremybenn
 
14326 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14327 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14328 19 jeremybenn
_ACEOF
14329 82 jeremybenn
sed -n '
14330
h
14331
s/^/S["/; s/!.*/"]=/
14332
p
14333
g
14334
s/^[^!]*!//
14335
:repl
14336
t repl
14337
s/'"$ac_delim"'$//
14338
t delim
14339
:nl
14340
h
14341 625 jeremybenn
s/\(.\{148\}\)..*/\1/
14342 82 jeremybenn
t more1
14343
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14344
p
14345
n
14346
b repl
14347
:more1
14348
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14349
p
14350
g
14351
s/.\{148\}//
14352
t nl
14353
:delim
14354
h
14355 625 jeremybenn
s/\(.\{148\}\)..*/\1/
14356 82 jeremybenn
t more2
14357
s/["\\]/\\&/g; s/^/"/; s/$/"/
14358
p
14359
b
14360
:more2
14361
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14362
p
14363
g
14364
s/.\{148\}//
14365
t delim
14366
' 
14367
/^[^""]/{
14368
  N
14369
  s/\n//
14370
}
14371
' >>$CONFIG_STATUS || ac_write_fail=1
14372
rm -f conf$$subs.awk
14373
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14374
_ACAWK
14375 625 jeremybenn
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14376 82 jeremybenn
  for (key in S) S_is_set[key] = 1
14377
  FS = ""
14378 19 jeremybenn
 
14379 82 jeremybenn
}
14380
{
14381
  line = $ 0
14382
  nfields = split(line, field, "@")
14383
  substed = 0
14384
  len = length(field[1])
14385
  for (i = 2; i < nfields; i++) {
14386
    key = field[i]
14387
    keylen = length(key)
14388
    if (S_is_set[key]) {
14389
      value = S[key]
14390
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14391
      len += length(value) + length(field[++i])
14392
      substed = 1
14393
    } else
14394
      len += 1 + keylen
14395
  }
14396 19 jeremybenn
 
14397 82 jeremybenn
  print line
14398
}
14399
 
14400
_ACAWK
14401 19 jeremybenn
_ACEOF
14402 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14403
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14404
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14405
else
14406
  cat
14407 625 jeremybenn
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14408
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14409 19 jeremybenn
_ACEOF
14410
 
14411 625 jeremybenn
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14412
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14413 19 jeremybenn
# trailing colons and then remove the whole line if VPATH becomes empty
14414
# (actually we leave an empty line to preserve line numbers).
14415
if test "x$srcdir" = x.; then
14416 625 jeremybenn
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14417
h
14418
s///
14419
s/^/:/
14420
s/[      ]*$/:/
14421
s/:\$(srcdir):/:/g
14422
s/:\${srcdir}:/:/g
14423
s/:@srcdir@:/:/g
14424
s/^:*//
14425 19 jeremybenn
s/:*$//
14426 625 jeremybenn
x
14427
s/\(=[   ]*\).*/\1/
14428
G
14429
s/\n//
14430 19 jeremybenn
s/^[^=]*=[       ]*$//
14431
}'
14432
fi
14433
 
14434 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14435 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14436
 
14437 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14438
# No need to generate them if there are no CONFIG_HEADERS.
14439
# This happens for instance with `./config.status Makefile'.
14440
if test -n "$CONFIG_HEADERS"; then
14441 625 jeremybenn
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14442 82 jeremybenn
BEGIN {
14443
_ACEOF
14444 19 jeremybenn
 
14445 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14446
# here-document in config.status, that substitutes the proper values into
14447
# config.h.in to produce config.h.
14448
 
14449
# Create a delimiter string that does not exist in confdefs.h, to ease
14450
# handling of long lines.
14451
ac_delim='%!_!# '
14452
for ac_last_try in false false :; do
14453 625 jeremybenn
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14454
  if test -z "$ac_tt"; then
14455 82 jeremybenn
    break
14456
  elif $ac_last_try; then
14457 625 jeremybenn
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14458 82 jeremybenn
  else
14459
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14460
  fi
14461
done
14462
 
14463
# For the awk script, D is an array of macro values keyed by name,
14464
# likewise P contains macro parameters if any.  Preserve backslash
14465
# newline sequences.
14466
 
14467
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14468
sed -n '
14469
s/.\{148\}/&'"$ac_delim"'/g
14470
t rset
14471
:rset
14472
s/^[     ]*#[    ]*define[       ][      ]*/ /
14473
t def
14474
d
14475
:def
14476
s/\\$//
14477
t bsnl
14478
s/["\\]/\\&/g
14479
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14480
D["\1"]=" \3"/p
14481
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14482
d
14483
:bsnl
14484
s/["\\]/\\&/g
14485
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14486
D["\1"]=" \3\\\\\\n"\\/p
14487
t cont
14488
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14489
t cont
14490
d
14491
:cont
14492
n
14493
s/.\{148\}/&'"$ac_delim"'/g
14494
t clear
14495
:clear
14496
s/\\$//
14497
t bsnlc
14498
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14499
d
14500
:bsnlc
14501
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14502
b cont
14503
' 
14504
s/'"$ac_delim"'/"\\\
14505
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14506
 
14507
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14508
  for (key in D) D_is_set[key] = 1
14509
  FS = ""
14510
}
14511
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14512
  line = \$ 0
14513
  split(line, arg, " ")
14514
  if (arg[1] == "#") {
14515
    defundef = arg[2]
14516
    mac1 = arg[3]
14517
  } else {
14518
    defundef = substr(arg[1], 2)
14519
    mac1 = arg[2]
14520
  }
14521
  split(mac1, mac2, "(") #)
14522
  macro = mac2[1]
14523
  prefix = substr(line, 1, index(line, defundef) - 1)
14524
  if (D_is_set[macro]) {
14525
    # Preserve the white space surrounding the "#".
14526
    print prefix "define", macro P[macro] D[macro]
14527
    next
14528
  } else {
14529
    # Replace #undef with comments.  This is necessary, for example,
14530
    # in the case of _POSIX_SOURCE, which is predefined and required
14531
    # on some systems where configure will not decide to define it.
14532
    if (defundef == "undef") {
14533
      print "/*", prefix defundef, macro, "*/"
14534
      next
14535
    }
14536
  }
14537
}
14538
{ print }
14539
_ACAWK
14540
_ACEOF
14541
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14542 625 jeremybenn
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14543 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14544
 
14545
 
14546
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14547
shift
14548
for ac_tag
14549 19 jeremybenn
do
14550
  case $ac_tag in
14551
  :[FHLC]) ac_mode=$ac_tag; continue;;
14552
  esac
14553
  case $ac_mode$ac_tag in
14554
  :[FHL]*:*);;
14555 625 jeremybenn
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14556 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14557
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14558
  esac
14559
  ac_save_IFS=$IFS
14560
  IFS=:
14561
  set x $ac_tag
14562
  IFS=$ac_save_IFS
14563
  shift
14564
  ac_file=$1
14565
  shift
14566
 
14567
  case $ac_mode in
14568
  :L) ac_source=$1;;
14569
  :[FH])
14570
    ac_file_inputs=
14571
    for ac_f
14572
    do
14573
      case $ac_f in
14574 625 jeremybenn
      -) ac_f="$ac_tmp/stdin";;
14575 19 jeremybenn
      *) # Look for the file first in the build tree, then in the source tree
14576
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14577
         # because $ac_f cannot contain `:'.
14578
         test -f "$ac_f" ||
14579
           case $ac_f in
14580
           [\\/$]*) false;;
14581
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14582
           esac ||
14583 625 jeremybenn
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14584 19 jeremybenn
      esac
14585 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14586 346 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14587 19 jeremybenn
    done
14588
 
14589
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14590
    # use $as_me), people would be surprised to read:
14591
    #    /* config.h.  Generated by config.status.  */
14592 82 jeremybenn
    configure_input='Generated from '`
14593
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14594
        `' by configure.'
14595 19 jeremybenn
    if test x"$ac_file" != x-; then
14596
      configure_input="$ac_file.  $configure_input"
14597 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14598 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14599 19 jeremybenn
    fi
14600 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14601
    case $configure_input in #(
14602
    *\&* | *\|* | *\\* )
14603
       ac_sed_conf_input=`$as_echo "$configure_input" |
14604
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14605
    *) ac_sed_conf_input=$configure_input;;
14606
    esac
14607 19 jeremybenn
 
14608
    case $ac_tag in
14609 625 jeremybenn
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14610
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14611 19 jeremybenn
    esac
14612
    ;;
14613
  esac
14614
 
14615
  ac_dir=`$as_dirname -- "$ac_file" ||
14616
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14617
         X"$ac_file" : 'X\(//\)[^/]' \| \
14618
         X"$ac_file" : 'X\(//\)$' \| \
14619
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14620 82 jeremybenn
$as_echo X"$ac_file" |
14621 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14622
            s//\1/
14623
            q
14624
          }
14625
          /^X\(\/\/\)[^/].*/{
14626
            s//\1/
14627
            q
14628
          }
14629
          /^X\(\/\/\)$/{
14630
            s//\1/
14631
            q
14632
          }
14633
          /^X\(\/\).*/{
14634
            s//\1/
14635
            q
14636
          }
14637
          s/.*/./; q'`
14638 346 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14639 19 jeremybenn
  ac_builddir=.
14640
 
14641
case "$ac_dir" in
14642
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14643
*)
14644 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14645 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14646 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14647 19 jeremybenn
  case $ac_top_builddir_sub in
14648
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14649
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14650
  esac ;;
14651
esac
14652
ac_abs_top_builddir=$ac_pwd
14653
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14654
# for backward compatibility:
14655
ac_top_builddir=$ac_top_build_prefix
14656
 
14657
case $srcdir in
14658
  .)  # We are building in place.
14659
    ac_srcdir=.
14660
    ac_top_srcdir=$ac_top_builddir_sub
14661
    ac_abs_top_srcdir=$ac_pwd ;;
14662
  [\\/]* | ?:[\\/]* )  # Absolute name.
14663
    ac_srcdir=$srcdir$ac_dir_suffix;
14664
    ac_top_srcdir=$srcdir
14665
    ac_abs_top_srcdir=$srcdir ;;
14666
  *) # Relative name.
14667
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14668
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14669
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14670
esac
14671
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14672
 
14673
 
14674
  case $ac_mode in
14675
  :F)
14676
  #
14677
  # CONFIG_FILE
14678
  #
14679
 
14680
  case $INSTALL in
14681
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14682
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14683
  esac
14684
  ac_MKDIR_P=$MKDIR_P
14685
  case $MKDIR_P in
14686
  [\\/$]* | ?:[\\/]* ) ;;
14687
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14688
  esac
14689
_ACEOF
14690
 
14691 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14693
# FIXME: This hack should be removed a few years after 2.60.
14694
ac_datarootdir_hack=; ac_datarootdir_seen=
14695 82 jeremybenn
ac_sed_dataroot='
14696
/datarootdir/ {
14697 19 jeremybenn
  p
14698
  q
14699
}
14700
/@datadir@/p
14701
/@docdir@/p
14702
/@infodir@/p
14703
/@localedir@/p
14704 346 jeremybenn
/@mandir@/p'
14705 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14706 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14707
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14708 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14709 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14710 19 jeremybenn
_ACEOF
14711 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 19 jeremybenn
  ac_datarootdir_hack='
14713
  s&@datadir@&$datadir&g
14714
  s&@docdir@&$docdir&g
14715
  s&@infodir@&$infodir&g
14716
  s&@localedir@&$localedir&g
14717
  s&@mandir@&$mandir&g
14718 346 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14719 19 jeremybenn
esac
14720
_ACEOF
14721
 
14722
# Neutralize VPATH when `$srcdir' = `.'.
14723
# Shell code in configure.ac might set extrasub.
14724
# FIXME: do we really want to maintain this feature?
14725 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14726
ac_sed_extra="$ac_vpsub
14727 19 jeremybenn
$extrasub
14728
_ACEOF
14729 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14730 19 jeremybenn
:t
14731
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14732 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14733 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14734 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14735 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14736
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14737
s&@top_srcdir@&$ac_top_srcdir&;t t
14738
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14739
s&@builddir@&$ac_builddir&;t t
14740
s&@abs_builddir@&$ac_abs_builddir&;t t
14741
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14742
s&@INSTALL@&$ac_INSTALL&;t t
14743
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14744
$ac_datarootdir_hack
14745 82 jeremybenn
"
14746 625 jeremybenn
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14747
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14748 19 jeremybenn
 
14749
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14750 625 jeremybenn
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14751
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14752
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14753 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14754 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&5
14755 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14756 625 jeremybenn
which seems to be undefined.  Please make sure it is defined" >&2;}
14757 19 jeremybenn
 
14758 625 jeremybenn
  rm -f "$ac_tmp/stdin"
14759 19 jeremybenn
  case $ac_file in
14760 625 jeremybenn
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14761
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14762 82 jeremybenn
  esac \
14763 625 jeremybenn
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14764 19 jeremybenn
 ;;
14765
  :H)
14766
  #
14767
  # CONFIG_HEADER
14768
  #
14769
  if test x"$ac_file" != x-; then
14770 82 jeremybenn
    {
14771
      $as_echo "/* $configure_input  */" \
14772 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14773
    } >"$ac_tmp/config.h" \
14774
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14775
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14776 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14777 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14778 19 jeremybenn
    else
14779 82 jeremybenn
      rm -f "$ac_file"
14780 625 jeremybenn
      mv "$ac_tmp/config.h" "$ac_file" \
14781
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14782 19 jeremybenn
    fi
14783
  else
14784 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14785 625 jeremybenn
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14786
      || as_fn_error $? "could not create -" "$LINENO" 5
14787 19 jeremybenn
  fi
14788 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14789
_am_arg="$ac_file"
14790 19 jeremybenn
_am_stamp_count=1
14791
for _am_header in $config_headers :; do
14792
  case $_am_header in
14793
    $_am_arg | $_am_arg:* )
14794
      break ;;
14795
    * )
14796
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14797
  esac
14798
done
14799
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14800
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14801
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14802
         X"$_am_arg" : 'X\(//\)$' \| \
14803
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14804 82 jeremybenn
$as_echo X"$_am_arg" |
14805 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14806
            s//\1/
14807
            q
14808
          }
14809
          /^X\(\/\/\)[^/].*/{
14810
            s//\1/
14811
            q
14812
          }
14813
          /^X\(\/\/\)$/{
14814
            s//\1/
14815
            q
14816
          }
14817
          /^X\(\/\).*/{
14818
            s//\1/
14819
            q
14820
          }
14821
          s/.*/./; q'`/stamp-h$_am_stamp_count
14822
 ;;
14823
 
14824 346 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14825 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14826 19 jeremybenn
 ;;
14827
  esac
14828
 
14829
 
14830
  case $ac_file$ac_mode in
14831 82 jeremybenn
    "libtool":C)
14832
 
14833
    # See if we are running on zsh, and set the options which allow our
14834
    # commands through without removal of \ escapes.
14835
    if test -n "${ZSH_VERSION+set}" ; then
14836
      setopt NO_GLOB_SUBST
14837
    fi
14838
 
14839
    cfgfile="${ofile}T"
14840
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14841
    $RM "$cfgfile"
14842
 
14843
    cat <<_LT_EOF >> "$cfgfile"
14844
#! $SHELL
14845
 
14846
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14847
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14848
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14849
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14850
#
14851
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14852
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14853
#   Written by Gordon Matzigkeit, 1996
14854
#
14855
#   This file is part of GNU Libtool.
14856
#
14857
# GNU Libtool is free software; you can redistribute it and/or
14858
# modify it under the terms of the GNU General Public License as
14859
# published by the Free Software Foundation; either version 2 of
14860
# the License, or (at your option) any later version.
14861
#
14862
# As a special exception to the GNU General Public License,
14863
# if you distribute this file as part of a program or library that
14864
# is built using GNU Libtool, you may include this file under the
14865
# same distribution terms that you use for the rest of that program.
14866
#
14867
# GNU Libtool is distributed in the hope that it will be useful,
14868
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14869
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14870
# GNU General Public License for more details.
14871
#
14872
# You should have received a copy of the GNU General Public License
14873
# along with GNU Libtool; see the file COPYING.  If not, a copy
14874
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14875
# obtained by writing to the Free Software Foundation, Inc.,
14876
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14877
 
14878
 
14879
# The names of the tagged configurations supported by this script.
14880
available_tags=""
14881
 
14882
# ### BEGIN LIBTOOL CONFIG
14883
 
14884
# Which release of libtool.m4 was used?
14885
macro_version=$macro_version
14886
macro_revision=$macro_revision
14887
 
14888
# Whether or not to build shared libraries.
14889
build_libtool_libs=$enable_shared
14890
 
14891
# Whether or not to build static libraries.
14892
build_old_libs=$enable_static
14893
 
14894
# What type of objects to build.
14895
pic_mode=$pic_mode
14896
 
14897
# Whether or not to optimize for fast installation.
14898
fast_install=$enable_fast_install
14899
 
14900
# The host system.
14901
host_alias=$host_alias
14902
host=$host
14903
host_os=$host_os
14904
 
14905
# The build system.
14906
build_alias=$build_alias
14907
build=$build
14908
build_os=$build_os
14909
 
14910
# A sed program that does not truncate output.
14911
SED=$lt_SED
14912
 
14913
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14914
Xsed="\$SED -e 1s/^X//"
14915
 
14916
# A grep program that handles long lines.
14917
GREP=$lt_GREP
14918
 
14919
# An ERE matcher.
14920
EGREP=$lt_EGREP
14921
 
14922
# A literal string matcher.
14923
FGREP=$lt_FGREP
14924
 
14925
# A BSD- or MS-compatible name lister.
14926
NM=$lt_NM
14927
 
14928
# Whether we need soft or hard links.
14929
LN_S=$lt_LN_S
14930
 
14931
# What is the maximum length of a command?
14932
max_cmd_len=$max_cmd_len
14933
 
14934
# Object file suffix (normally "o").
14935
objext=$ac_objext
14936
 
14937
# Executable file suffix (normally "").
14938
exeext=$exeext
14939
 
14940
# whether the shell understands "unset".
14941
lt_unset=$lt_unset
14942
 
14943
# turn spaces into newlines.
14944
SP2NL=$lt_lt_SP2NL
14945
 
14946
# turn newlines into spaces.
14947
NL2SP=$lt_lt_NL2SP
14948
 
14949
# How to create reloadable object files.
14950
reload_flag=$lt_reload_flag
14951
reload_cmds=$lt_reload_cmds
14952
 
14953
# An object symbol dumper.
14954
OBJDUMP=$lt_OBJDUMP
14955
 
14956
# Method to check whether dependent libraries are shared objects.
14957
deplibs_check_method=$lt_deplibs_check_method
14958
 
14959
# Command to use when deplibs_check_method == "file_magic".
14960
file_magic_cmd=$lt_file_magic_cmd
14961
 
14962
# The archiver.
14963
AR=$lt_AR
14964
AR_FLAGS=$lt_AR_FLAGS
14965
 
14966
# A symbol stripping program.
14967
STRIP=$lt_STRIP
14968
 
14969
# Commands used to install an old-style archive.
14970
RANLIB=$lt_RANLIB
14971
old_postinstall_cmds=$lt_old_postinstall_cmds
14972
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14973
 
14974
# A C compiler.
14975
LTCC=$lt_CC
14976
 
14977
# LTCC compiler flags.
14978
LTCFLAGS=$lt_CFLAGS
14979
 
14980
# Take the output of nm and produce a listing of raw symbols and C names.
14981
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14982
 
14983
# Transform the output of nm in a proper C declaration.
14984
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14985
 
14986
# Transform the output of nm in a C name address pair.
14987
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14988
 
14989
# Transform the output of nm in a C name address pair when lib prefix is needed.
14990
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14991
 
14992
# The name of the directory that contains temporary libtool files.
14993
objdir=$objdir
14994
 
14995
# Shell to use when invoking shell scripts.
14996
SHELL=$lt_SHELL
14997
 
14998
# An echo program that does not interpret backslashes.
14999
ECHO=$lt_ECHO
15000
 
15001
# Used to examine libraries when file_magic_cmd begins with "file".
15002
MAGIC_CMD=$MAGIC_CMD
15003
 
15004
# Must we lock files when doing compilation?
15005
need_locks=$lt_need_locks
15006
 
15007
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15008
DSYMUTIL=$lt_DSYMUTIL
15009
 
15010
# Tool to change global to local symbols on Mac OS X.
15011
NMEDIT=$lt_NMEDIT
15012
 
15013
# Tool to manipulate fat objects and archives on Mac OS X.
15014
LIPO=$lt_LIPO
15015
 
15016
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15017
OTOOL=$lt_OTOOL
15018
 
15019
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15020
OTOOL64=$lt_OTOOL64
15021
 
15022
# Old archive suffix (normally "a").
15023
libext=$libext
15024
 
15025
# Shared library suffix (normally ".so").
15026
shrext_cmds=$lt_shrext_cmds
15027
 
15028
# The commands to extract the exported symbol list from a shared archive.
15029
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15030
 
15031
# Variables whose values should be saved in libtool wrapper scripts and
15032
# restored at link time.
15033
variables_saved_for_relink=$lt_variables_saved_for_relink
15034
 
15035
# Do we need the "lib" prefix for modules?
15036
need_lib_prefix=$need_lib_prefix
15037
 
15038
# Do we need a version for libraries?
15039
need_version=$need_version
15040
 
15041
# Library versioning type.
15042
version_type=$version_type
15043
 
15044
# Shared library runtime path variable.
15045
runpath_var=$runpath_var
15046
 
15047
# Shared library path variable.
15048
shlibpath_var=$shlibpath_var
15049
 
15050
# Is shlibpath searched before the hard-coded library search path?
15051
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15052
 
15053
# Format of library name prefix.
15054
libname_spec=$lt_libname_spec
15055
 
15056
# List of archive names.  First name is the real one, the rest are links.
15057
# The last name is the one that the linker finds with -lNAME
15058
library_names_spec=$lt_library_names_spec
15059
 
15060
# The coded name of the library, if different from the real name.
15061
soname_spec=$lt_soname_spec
15062
 
15063
# Command to use after installation of a shared archive.
15064
postinstall_cmds=$lt_postinstall_cmds
15065
 
15066
# Command to use after uninstallation of a shared archive.
15067
postuninstall_cmds=$lt_postuninstall_cmds
15068
 
15069
# Commands used to finish a libtool library installation in a directory.
15070
finish_cmds=$lt_finish_cmds
15071
 
15072
# As "finish_cmds", except a single script fragment to be evaled but
15073
# not shown.
15074
finish_eval=$lt_finish_eval
15075
 
15076
# Whether we should hardcode library paths into libraries.
15077
hardcode_into_libs=$hardcode_into_libs
15078
 
15079
# Compile-time system search path for libraries.
15080
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15081
 
15082
# Run-time system search path for libraries.
15083
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15084
 
15085
# Whether dlopen is supported.
15086
dlopen_support=$enable_dlopen
15087
 
15088
# Whether dlopen of programs is supported.
15089
dlopen_self=$enable_dlopen_self
15090
 
15091
# Whether dlopen of statically linked programs is supported.
15092
dlopen_self_static=$enable_dlopen_self_static
15093
 
15094
# Commands to strip libraries.
15095
old_striplib=$lt_old_striplib
15096
striplib=$lt_striplib
15097
 
15098
 
15099
# The linker used to build libraries.
15100
LD=$lt_LD
15101
 
15102
# Commands used to build an old-style archive.
15103
old_archive_cmds=$lt_old_archive_cmds
15104
 
15105
# A language specific compiler.
15106
CC=$lt_compiler
15107
 
15108
# Is the compiler the GNU compiler?
15109
with_gcc=$GCC
15110
 
15111
# Compiler flag to turn off builtin functions.
15112
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15113
 
15114
# How to pass a linker flag through the compiler.
15115
wl=$lt_lt_prog_compiler_wl
15116
 
15117
# Additional compiler flags for building library objects.
15118
pic_flag=$lt_lt_prog_compiler_pic
15119
 
15120
# Compiler flag to prevent dynamic linking.
15121
link_static_flag=$lt_lt_prog_compiler_static
15122
 
15123
# Does compiler simultaneously support -c and -o options?
15124
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15125
 
15126
# Whether or not to add -lc for building shared libraries.
15127
build_libtool_need_lc=$archive_cmds_need_lc
15128
 
15129
# Whether or not to disallow shared libs when runtime libs are static.
15130
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15131
 
15132
# Compiler flag to allow reflexive dlopens.
15133
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15134
 
15135
# Compiler flag to generate shared objects directly from archives.
15136
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15137
 
15138
# Whether the compiler copes with passing no objects directly.
15139
compiler_needs_object=$lt_compiler_needs_object
15140
 
15141
# Create an old-style archive from a shared archive.
15142
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15143
 
15144
# Create a temporary old-style archive to link instead of a shared archive.
15145
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15146
 
15147
# Commands used to build a shared archive.
15148
archive_cmds=$lt_archive_cmds
15149
archive_expsym_cmds=$lt_archive_expsym_cmds
15150
 
15151
# Commands used to build a loadable module if different from building
15152
# a shared archive.
15153
module_cmds=$lt_module_cmds
15154
module_expsym_cmds=$lt_module_expsym_cmds
15155
 
15156
# Whether we are building with GNU ld or not.
15157
with_gnu_ld=$lt_with_gnu_ld
15158
 
15159
# Flag that allows shared libraries with undefined symbols to be built.
15160
allow_undefined_flag=$lt_allow_undefined_flag
15161
 
15162
# Flag that enforces no undefined symbols.
15163
no_undefined_flag=$lt_no_undefined_flag
15164
 
15165
# Flag to hardcode \$libdir into a binary during linking.
15166
# This must work even if \$libdir does not exist
15167
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15168
 
15169
# If ld is used when linking, flag to hardcode \$libdir into a binary
15170
# during linking.  This must work even if \$libdir does not exist.
15171
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15172
 
15173
# Whether we need a single "-rpath" flag with a separated argument.
15174
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15175
 
15176
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15177
# DIR into the resulting binary.
15178
hardcode_direct=$hardcode_direct
15179
 
15180
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15181
# DIR into the resulting binary and the resulting library dependency is
15182
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15183
# library is relocated.
15184
hardcode_direct_absolute=$hardcode_direct_absolute
15185
 
15186
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15187
# into the resulting binary.
15188
hardcode_minus_L=$hardcode_minus_L
15189
 
15190
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15191
# into the resulting binary.
15192
hardcode_shlibpath_var=$hardcode_shlibpath_var
15193
 
15194
# Set to "yes" if building a shared library automatically hardcodes DIR
15195
# into the library and all subsequent libraries and executables linked
15196
# against it.
15197
hardcode_automatic=$hardcode_automatic
15198
 
15199
# Set to yes if linker adds runtime paths of dependent libraries
15200
# to runtime path list.
15201
inherit_rpath=$inherit_rpath
15202
 
15203
# Whether libtool must link a program against all its dependency libraries.
15204
link_all_deplibs=$link_all_deplibs
15205
 
15206
# Fix the shell variable \$srcfile for the compiler.
15207
fix_srcfile_path=$lt_fix_srcfile_path
15208
 
15209
# Set to "yes" if exported symbols are required.
15210
always_export_symbols=$always_export_symbols
15211
 
15212
# The commands to list exported symbols.
15213
export_symbols_cmds=$lt_export_symbols_cmds
15214
 
15215
# Symbols that should not be listed in the preloaded symbols.
15216
exclude_expsyms=$lt_exclude_expsyms
15217
 
15218
# Symbols that must always be exported.
15219
include_expsyms=$lt_include_expsyms
15220
 
15221
# Commands necessary for linking programs (against libraries) with templates.
15222
prelink_cmds=$lt_prelink_cmds
15223
 
15224
# Specify filename containing input files.
15225
file_list_spec=$lt_file_list_spec
15226
 
15227
# How to hardcode a shared library path into an executable.
15228
hardcode_action=$hardcode_action
15229
 
15230
# ### END LIBTOOL CONFIG
15231
 
15232
_LT_EOF
15233
 
15234
  case $host_os in
15235
  aix3*)
15236
    cat <<\_LT_EOF >> "$cfgfile"
15237
# AIX sometimes has problems with the GCC collect2 program.  For some
15238
# reason, if we set the COLLECT_NAMES environment variable, the problems
15239
# vanish in a puff of smoke.
15240
if test "X${COLLECT_NAMES+set}" != Xset; then
15241
  COLLECT_NAMES=
15242
  export COLLECT_NAMES
15243
fi
15244
_LT_EOF
15245
    ;;
15246
  esac
15247
 
15248
 
15249
ltmain="$ac_aux_dir/ltmain.sh"
15250
 
15251
 
15252
  # We use sed instead of cat because bash on DJGPP gets confused if
15253
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15254
  # text mode, it properly converts lines to CR/LF.  This bash problem
15255
  # is reportedly fixed, but why not run on old versions too?
15256
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15257
    || (rm -f "$cfgfile"; exit 1)
15258
 
15259
  case $xsi_shell in
15260
  yes)
15261
    cat << \_LT_EOF >> "$cfgfile"
15262
 
15263
# func_dirname file append nondir_replacement
15264
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15265
# otherwise set result to NONDIR_REPLACEMENT.
15266
func_dirname ()
15267
{
15268
  case ${1} in
15269
    */*) func_dirname_result="${1%/*}${2}" ;;
15270
    *  ) func_dirname_result="${3}" ;;
15271
  esac
15272
}
15273
 
15274
# func_basename file
15275
func_basename ()
15276
{
15277
  func_basename_result="${1##*/}"
15278
}
15279
 
15280
# func_dirname_and_basename file append nondir_replacement
15281
# perform func_basename and func_dirname in a single function
15282
# call:
15283
#   dirname:  Compute the dirname of FILE.  If nonempty,
15284
#             add APPEND to the result, otherwise set result
15285
#             to NONDIR_REPLACEMENT.
15286
#             value returned in "$func_dirname_result"
15287
#   basename: Compute filename of FILE.
15288
#             value retuned in "$func_basename_result"
15289
# Implementation must be kept synchronized with func_dirname
15290
# and func_basename. For efficiency, we do not delegate to
15291
# those functions but instead duplicate the functionality here.
15292
func_dirname_and_basename ()
15293
{
15294
  case ${1} in
15295
    */*) func_dirname_result="${1%/*}${2}" ;;
15296
    *  ) func_dirname_result="${3}" ;;
15297
  esac
15298
  func_basename_result="${1##*/}"
15299
}
15300
 
15301
# func_stripname prefix suffix name
15302
# strip PREFIX and SUFFIX off of NAME.
15303
# PREFIX and SUFFIX must not contain globbing or regex special
15304
# characters, hashes, percent signs, but SUFFIX may contain a leading
15305
# dot (in which case that matches only a dot).
15306
func_stripname ()
15307
{
15308
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15309
  # positional parameters, so assign one to ordinary parameter first.
15310
  func_stripname_result=${3}
15311
  func_stripname_result=${func_stripname_result#"${1}"}
15312
  func_stripname_result=${func_stripname_result%"${2}"}
15313
}
15314
 
15315
# func_opt_split
15316
func_opt_split ()
15317
{
15318
  func_opt_split_opt=${1%%=*}
15319
  func_opt_split_arg=${1#*=}
15320
}
15321
 
15322
# func_lo2o object
15323
func_lo2o ()
15324
{
15325
  case ${1} in
15326
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15327
    *)    func_lo2o_result=${1} ;;
15328
  esac
15329
}
15330
 
15331
# func_xform libobj-or-source
15332
func_xform ()
15333
{
15334
  func_xform_result=${1%.*}.lo
15335
}
15336
 
15337
# func_arith arithmetic-term...
15338
func_arith ()
15339
{
15340
  func_arith_result=$(( $* ))
15341
}
15342
 
15343
# func_len string
15344
# STRING may not start with a hyphen.
15345
func_len ()
15346
{
15347
  func_len_result=${#1}
15348
}
15349
 
15350
_LT_EOF
15351
    ;;
15352
  *) # Bourne compatible functions.
15353
    cat << \_LT_EOF >> "$cfgfile"
15354
 
15355
# func_dirname file append nondir_replacement
15356
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15357
# otherwise set result to NONDIR_REPLACEMENT.
15358
func_dirname ()
15359
{
15360
  # Extract subdirectory from the argument.
15361
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15362
  if test "X$func_dirname_result" = "X${1}"; then
15363
    func_dirname_result="${3}"
15364
  else
15365
    func_dirname_result="$func_dirname_result${2}"
15366
  fi
15367
}
15368
 
15369
# func_basename file
15370
func_basename ()
15371
{
15372
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15373
}
15374
 
15375
 
15376
# func_stripname prefix suffix name
15377
# strip PREFIX and SUFFIX off of NAME.
15378
# PREFIX and SUFFIX must not contain globbing or regex special
15379
# characters, hashes, percent signs, but SUFFIX may contain a leading
15380
# dot (in which case that matches only a dot).
15381
# func_strip_suffix prefix name
15382
func_stripname ()
15383
{
15384
  case ${2} in
15385
    .*) func_stripname_result=`$ECHO "X${3}" \
15386
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15387
    *)  func_stripname_result=`$ECHO "X${3}" \
15388
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15389
  esac
15390
}
15391
 
15392
# sed scripts:
15393
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15394
my_sed_long_arg='1s/^-[^=]*=//'
15395
 
15396
# func_opt_split
15397
func_opt_split ()
15398
{
15399
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15400
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15401
}
15402
 
15403
# func_lo2o object
15404
func_lo2o ()
15405
{
15406
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15407
}
15408
 
15409
# func_xform libobj-or-source
15410
func_xform ()
15411
{
15412
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15413
}
15414
 
15415
# func_arith arithmetic-term...
15416
func_arith ()
15417
{
15418
  func_arith_result=`expr "$@"`
15419
}
15420
 
15421
# func_len string
15422
# STRING may not start with a hyphen.
15423
func_len ()
15424
{
15425
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15426
}
15427
 
15428
_LT_EOF
15429
esac
15430
 
15431
case $lt_shell_append in
15432
  yes)
15433
    cat << \_LT_EOF >> "$cfgfile"
15434
 
15435
# func_append var value
15436
# Append VALUE to the end of shell variable VAR.
15437
func_append ()
15438
{
15439
  eval "$1+=\$2"
15440
}
15441
_LT_EOF
15442
    ;;
15443
  *)
15444
    cat << \_LT_EOF >> "$cfgfile"
15445
 
15446
# func_append var value
15447
# Append VALUE to the end of shell variable VAR.
15448
func_append ()
15449
{
15450
  eval "$1=\$$1\$2"
15451
}
15452
 
15453
_LT_EOF
15454
    ;;
15455
  esac
15456
 
15457
 
15458
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15459
    || (rm -f "$cfgfile"; exit 1)
15460
 
15461
  mv -f "$cfgfile" "$ofile" ||
15462
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15463
  chmod +x "$ofile"
15464
 
15465
 ;;
15466
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15467
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15468
  # are listed without --file.  Let's play safe and only enable the eval
15469
  # if we detect the quoting.
15470
  case $CONFIG_FILES in
15471
  *\'*) eval set x "$CONFIG_FILES" ;;
15472
  *)   set x $CONFIG_FILES ;;
15473
  esac
15474
  shift
15475
  for mf
15476
  do
15477
    # Strip MF so we end up with the name of the file.
15478
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15479
    # Check whether this is an Automake generated Makefile or not.
15480
    # We used to match only the files named `Makefile.in', but
15481
    # some people rename them; so instead we look at the file content.
15482
    # Grep'ing the first line is not enough: some people post-process
15483
    # each Makefile.in and add a new line on top of each file to say so.
15484
    # Grep'ing the whole file is not good either: AIX grep has a line
15485
    # limit of 2048, but all sed's we know have understand at least 4000.
15486
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15487
      dirpart=`$as_dirname -- "$mf" ||
15488 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15489
         X"$mf" : 'X\(//\)[^/]' \| \
15490
         X"$mf" : 'X\(//\)$' \| \
15491
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15492 82 jeremybenn
$as_echo X"$mf" |
15493 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15494
            s//\1/
15495
            q
15496
          }
15497
          /^X\(\/\/\)[^/].*/{
15498
            s//\1/
15499
            q
15500
          }
15501
          /^X\(\/\/\)$/{
15502
            s//\1/
15503
            q
15504
          }
15505
          /^X\(\/\).*/{
15506
            s//\1/
15507
            q
15508
          }
15509
          s/.*/./; q'`
15510 82 jeremybenn
    else
15511
      continue
15512
    fi
15513
    # Extract the definition of DEPDIR, am__include, and am__quote
15514
    # from the Makefile without running `make'.
15515
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15516
    test -z "$DEPDIR" && continue
15517
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15518
    test -z "am__include" && continue
15519
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15520
    # When using ansi2knr, U may be empty or an underscore; expand it
15521
    U=`sed -n 's/^U = //p' < "$mf"`
15522
    # Find all dependency output files, they are included files with
15523
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15524
    # simplest approach to changing $(DEPDIR) to its actual value in the
15525
    # expansion.
15526
    for file in `sed -n "
15527
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15528
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15529
      # Make sure the directory exists.
15530
      test -f "$dirpart/$file" && continue
15531
      fdir=`$as_dirname -- "$file" ||
15532 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15533
         X"$file" : 'X\(//\)[^/]' \| \
15534
         X"$file" : 'X\(//\)$' \| \
15535
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15536 82 jeremybenn
$as_echo X"$file" |
15537 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15538
            s//\1/
15539
            q
15540
          }
15541
          /^X\(\/\/\)[^/].*/{
15542
            s//\1/
15543
            q
15544
          }
15545
          /^X\(\/\/\)$/{
15546
            s//\1/
15547
            q
15548
          }
15549
          /^X\(\/\).*/{
15550
            s//\1/
15551
            q
15552
          }
15553
          s/.*/./; q'`
15554 346 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15555 82 jeremybenn
      # echo "creating $dirpart/$file"
15556
      echo '# dummy' > "$dirpart/$file"
15557
    done
15558 19 jeremybenn
  done
15559 82 jeremybenn
}
15560 19 jeremybenn
 ;;
15561
 
15562
  esac
15563
done # for ac_tag
15564
 
15565
 
15566 346 jeremybenn
as_fn_exit 0
15567 19 jeremybenn
_ACEOF
15568
ac_clean_files=$ac_clean_files_save
15569
 
15570 82 jeremybenn
test $ac_write_fail = 0 ||
15571 625 jeremybenn
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15572 19 jeremybenn
 
15573 82 jeremybenn
 
15574 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15575
# config.status does its own redirection, appending to config.log.
15576
# Unfortunately, on DOS this fails, as config.log is still kept open
15577
# by configure, so config.status won't be able to write to it; its
15578
# output is simply discarded.  So we exec the FD to /dev/null,
15579
# effectively closing config.log, so it can be properly (re)opened and
15580
# appended to by config.status.  When coming back to configure, we
15581
# need to make the FD available again.
15582
if test "$no_create" != yes; then
15583
  ac_cs_success=:
15584
  ac_config_status_args=
15585
  test "$silent" = yes &&
15586
    ac_config_status_args="$ac_config_status_args --quiet"
15587
  exec 5>/dev/null
15588
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15589
  exec 5>>config.log
15590
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15591
  # would make configure fail if this is the last instruction.
15592 625 jeremybenn
  $ac_cs_success || as_fn_exit 1
15593 19 jeremybenn
fi
15594
 
15595 82 jeremybenn
#
15596
# CONFIG_SUBDIRS section.
15597
#
15598
if test "$no_recursion" != yes; then
15599
 
15600
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15601
  # so they do not pile up.
15602
  ac_sub_configure_args=
15603
  ac_prev=
15604
  eval "set x $ac_configure_args"
15605
  shift
15606
  for ac_arg
15607
  do
15608
    if test -n "$ac_prev"; then
15609
      ac_prev=
15610
      continue
15611
    fi
15612
    case $ac_arg in
15613
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15614
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15615
      ac_prev=cache_file ;;
15616
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15617
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15618
    | --c=*)
15619
      ;;
15620
    --config-cache | -C)
15621
      ;;
15622
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15623
      ac_prev=srcdir ;;
15624
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15625
      ;;
15626
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15627
      ac_prev=prefix ;;
15628
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15629
      ;;
15630
    --disable-option-checking)
15631
      ;;
15632
    *)
15633
      case $ac_arg in
15634
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15635
      esac
15636 346 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15637 82 jeremybenn
    esac
15638
  done
15639
 
15640
  # Always prepend --prefix to ensure using the same prefix
15641
  # in subdir configurations.
15642
  ac_arg="--prefix=$prefix"
15643
  case $ac_arg in
15644
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15645
  esac
15646
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15647
 
15648
  # Pass --silent
15649
  if test "$silent" = yes; then
15650
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15651
  fi
15652
 
15653
  # Always prepend --disable-option-checking to silence warnings, since
15654
  # different subdirs can have different --enable and --with options.
15655
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15656
 
15657
  ac_popdir=`pwd`
15658
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15659
 
15660
    # Do not complain, so a configure script can configure whichever
15661
    # parts of a large source tree are present.
15662
    test -d "$srcdir/$ac_dir" || continue
15663
 
15664
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15665 346 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15666 82 jeremybenn
    $as_echo "$ac_msg" >&6
15667 346 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15668 82 jeremybenn
    ac_builddir=.
15669
 
15670
case "$ac_dir" in
15671
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15672
*)
15673
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15674
  # A ".." for each directory in $ac_dir_suffix.
15675
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15676
  case $ac_top_builddir_sub in
15677
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15678
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15679
  esac ;;
15680
esac
15681
ac_abs_top_builddir=$ac_pwd
15682
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15683
# for backward compatibility:
15684
ac_top_builddir=$ac_top_build_prefix
15685
 
15686
case $srcdir in
15687
  .)  # We are building in place.
15688
    ac_srcdir=.
15689
    ac_top_srcdir=$ac_top_builddir_sub
15690
    ac_abs_top_srcdir=$ac_pwd ;;
15691
  [\\/]* | ?:[\\/]* )  # Absolute name.
15692
    ac_srcdir=$srcdir$ac_dir_suffix;
15693
    ac_top_srcdir=$srcdir
15694
    ac_abs_top_srcdir=$srcdir ;;
15695
  *) # Relative name.
15696
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15697
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15698
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15699
esac
15700
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15701
 
15702
 
15703
    cd "$ac_dir"
15704
 
15705
    # Check for guested configure; otherwise get Cygnus style configure.
15706
    if test -f "$ac_srcdir/configure.gnu"; then
15707
      ac_sub_configure=$ac_srcdir/configure.gnu
15708
    elif test -f "$ac_srcdir/configure"; then
15709
      ac_sub_configure=$ac_srcdir/configure
15710
    elif test -f "$ac_srcdir/configure.in"; then
15711
      # This should be Cygnus configure.
15712
      ac_sub_configure=$ac_aux_dir/configure
15713
    else
15714 346 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15715 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15716
      ac_sub_configure=
15717
    fi
15718
 
15719
    # The recursion is here.
15720
    if test -n "$ac_sub_configure"; then
15721
      # Make the cache file name correct relative to the subdirectory.
15722
      case $cache_file in
15723
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15724
      *) # Relative name.
15725
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15726
      esac
15727
 
15728 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
15729 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;}
15730
      # The eval makes quoting arguments work.
15731
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15732
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15733 625 jeremybenn
        as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15734 82 jeremybenn
    fi
15735
 
15736
    cd "$ac_popdir"
15737
  done
15738
fi
15739
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15740 346 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15741 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15742
fi
15743
 

powered by: WebSVN 2.1.0

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