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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 96 jeremybenn
# From configure.ac Id: configure.ac 971 2010-05-02 15:18:48Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 96 jeremybenn
# Generated by GNU Autoconf 2.65 for or1ksim 2010-05-02.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8 96 jeremybenn
#
9 19 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 96 jeremybenn
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11
# Inc.
12
#
13
#
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 96 jeremybenn
## -------------------- ##
37
## M4sh Initialization. ##
38
## -------------------- ##
39 19 jeremybenn
 
40
# Be more Bourne compatible
41
DUALCASE=1; export DUALCASE # for MKS sh
42 96 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 96 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 96 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 96 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 96 jeremybenn
case $0 in #((
116 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
117
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118
for as_dir in $PATH
119
do
120
  IFS=$as_save_IFS
121
  test -z "$as_dir" && as_dir=.
122 96 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123
  done
124 19 jeremybenn
IFS=$as_save_IFS
125
 
126
     ;;
127
esac
128
# We did not find ourselves, most probably we were run as `sh COMMAND'
129
# in which case we are not to be found in the path.
130
if test "x$as_myself" = x; then
131
  as_myself=$0
132
fi
133
if test ! -f "$as_myself"; then
134 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135 96 jeremybenn
  exit 1
136 19 jeremybenn
fi
137
 
138 96 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
139
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
140
# suppresses any "Segmentation fault" message there.  '((' could
141
# trigger a bug in pdksh 5.2.14.
142
for as_var in BASH_ENV ENV MAIL MAILPATH
143
do eval test x\${$as_var+set} = xset \
144
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
145 19 jeremybenn
done
146
PS1='$ '
147
PS2='> '
148
PS4='+ '
149
 
150
# NLS nuisances.
151 82 jeremybenn
LC_ALL=C
152
export LC_ALL
153
LANGUAGE=C
154
export LANGUAGE
155 19 jeremybenn
 
156
# CDPATH.
157 96 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158 19 jeremybenn
 
159
if test "x$CONFIG_SHELL" = x; then
160 96 jeremybenn
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
161
  emulate sh
162
  NULLCMD=:
163
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164
  # is contrary to our usage.  Disable this feature.
165
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
166
  setopt NO_GLOB_SUBST
167 19 jeremybenn
else
168 96 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
169
  *posix*) :
170
    set -o posix ;; #(
171
  *) :
172
     ;;
173
esac
174 19 jeremybenn
fi
175 96 jeremybenn
"
176
  as_required="as_fn_return () { (exit \$1); }
177
as_fn_success () { as_fn_return 0; }
178
as_fn_failure () { as_fn_return 1; }
179
as_fn_ret_success () { return 0; }
180
as_fn_ret_failure () { return 1; }
181 19 jeremybenn
 
182
exitcode=0
183 96 jeremybenn
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
184
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188 19 jeremybenn
 
189
else
190 96 jeremybenn
  exitcode=1; echo positional parameters were not saved.
191 19 jeremybenn
fi
192 96 jeremybenn
test x\$exitcode = x0 || exit 1"
193
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
194
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
195
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
196
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
197
test \$(( 1 + 1 )) = 2 || exit 1"
198
  if (eval "$as_required") 2>/dev/null; then :
199
  as_have_required=yes
200 19 jeremybenn
else
201 96 jeremybenn
  as_have_required=no
202 19 jeremybenn
fi
203 96 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
204 19 jeremybenn
 
205
else
206 96 jeremybenn
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207
as_found=false
208 19 jeremybenn
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
209
do
210
  IFS=$as_save_IFS
211
  test -z "$as_dir" && as_dir=.
212 96 jeremybenn
  as_found=:
213
  case $as_dir in #(
214 19 jeremybenn
         /*)
215
           for as_base in sh bash ksh sh5; do
216 96 jeremybenn
             # Try only shells that exist, to save several forks.
217
             as_shell=$as_dir/$as_base
218
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
220
  CONFIG_SHELL=$as_shell as_have_required=yes
221
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
  break 2
223
fi
224
fi
225 19 jeremybenn
           done;;
226
       esac
227 96 jeremybenn
  as_found=false
228 19 jeremybenn
done
229 96 jeremybenn
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
231
  CONFIG_SHELL=$SHELL as_have_required=yes
232
fi; }
233 19 jeremybenn
IFS=$as_save_IFS
234
 
235
 
236 96 jeremybenn
      if test "x$CONFIG_SHELL" != x; then :
237
  # We cannot yet assume a decent shell, so we have to provide a
238
        # neutralization value for shells without unset; and this also
239
        # works around shells that cannot unset nonexistent variables.
240
        BASH_ENV=/dev/null
241
        ENV=/dev/null
242
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
243
        export CONFIG_SHELL
244
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
245 19 jeremybenn
fi
246
 
247 96 jeremybenn
    if test x$as_have_required = xno; then :
248
  $as_echo "$0: This script requires a shell more modern than all"
249
  $as_echo "$0: the shells that I found on your system."
250
  if test x${ZSH_VERSION+set} = xset ; then
251
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
252
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
253
  else
254
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
255
$0: openrisc@opencores.org about your system, including any
256
$0: error possibly output before this message. Then install
257
$0: a modern shell, or manually run the script under such a
258
$0: shell if you do have one."
259
  fi
260
  exit 1
261 19 jeremybenn
fi
262
fi
263
fi
264 96 jeremybenn
SHELL=${CONFIG_SHELL-/bin/sh}
265
export SHELL
266
# Unset more variables known to interfere with behavior of common tools.
267
CLICOLOR_FORCE= GREP_OPTIONS=
268
unset CLICOLOR_FORCE GREP_OPTIONS
269 19 jeremybenn
 
270 96 jeremybenn
## --------------------- ##
271
## M4sh Shell Functions. ##
272
## --------------------- ##
273
# as_fn_unset VAR
274
# ---------------
275
# Portably unset VAR.
276
as_fn_unset ()
277
{
278
  { eval $1=; unset $1;}
279
}
280
as_unset=as_fn_unset
281 19 jeremybenn
 
282 96 jeremybenn
# as_fn_set_status STATUS
283
# -----------------------
284
# Set $? to STATUS, without forking.
285
as_fn_set_status ()
286
{
287
  return $1
288
} # as_fn_set_status
289 19 jeremybenn
 
290 96 jeremybenn
# as_fn_exit STATUS
291
# -----------------
292
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
293
as_fn_exit ()
294
{
295
  set +e
296
  as_fn_set_status $1
297
  exit $1
298
} # as_fn_exit
299 19 jeremybenn
 
300 96 jeremybenn
# as_fn_mkdir_p
301
# -------------
302
# Create "$as_dir" as a directory, including parents if necessary.
303
as_fn_mkdir_p ()
304
{
305 19 jeremybenn
 
306 96 jeremybenn
  case $as_dir in #(
307
  -*) as_dir=./$as_dir;;
308
  esac
309
  test -d "$as_dir" || eval $as_mkdir_p || {
310
    as_dirs=
311
    while :; do
312
      case $as_dir in #(
313
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
314
      *) as_qdir=$as_dir;;
315
      esac
316
      as_dirs="'$as_qdir' $as_dirs"
317
      as_dir=`$as_dirname -- "$as_dir" ||
318
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
319
         X"$as_dir" : 'X\(//\)[^/]' \| \
320
         X"$as_dir" : 'X\(//\)$' \| \
321
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
322
$as_echo X"$as_dir" |
323
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324
            s//\1/
325
            q
326
          }
327
          /^X\(\/\/\)[^/].*/{
328
            s//\1/
329
            q
330
          }
331
          /^X\(\/\/\)$/{
332
            s//\1/
333
            q
334
          }
335
          /^X\(\/\).*/{
336
            s//\1/
337
            q
338
          }
339
          s/.*/./; q'`
340
      test -d "$as_dir" && break
341
    done
342
    test -z "$as_dirs" || eval "mkdir $as_dirs"
343
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
344 19 jeremybenn
 
345
 
346 96 jeremybenn
} # as_fn_mkdir_p
347
# as_fn_append VAR VALUE
348
# ----------------------
349
# Append the text in VALUE to the end of the definition contained in VAR. Take
350
# advantage of any shell optimizations that allow amortized linear growth over
351
# repeated appends, instead of the typical quadratic growth present in naive
352
# implementations.
353
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
354
  eval 'as_fn_append ()
355
  {
356
    eval $1+=\$2
357
  }'
358
else
359
  as_fn_append ()
360
  {
361
    eval $1=\$$1\$2
362
  }
363
fi # as_fn_append
364 19 jeremybenn
 
365 96 jeremybenn
# as_fn_arith ARG...
366
# ------------------
367
# Perform arithmetic evaluation on the ARGs, and store the result in the
368
# global $as_val. Take advantage of shells that can avoid forks. The arguments
369
# must be portable across $(()) and expr.
370
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
371
  eval 'as_fn_arith ()
372
  {
373
    as_val=$(( $* ))
374
  }'
375
else
376
  as_fn_arith ()
377
  {
378
    as_val=`expr "$@" || test $? -eq 1`
379
  }
380
fi # as_fn_arith
381 19 jeremybenn
 
382
 
383 96 jeremybenn
# as_fn_error ERROR [LINENO LOG_FD]
384
# ---------------------------------
385
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
386
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
387
# script with status $?, using 1 if that was 0.
388
as_fn_error ()
389
{
390
  as_status=$?; test $as_status -eq 0 && as_status=1
391
  if test "$3"; then
392
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
393
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
394
  fi
395
  $as_echo "$as_me: error: $1" >&2
396
  as_fn_exit $as_status
397
} # as_fn_error
398 19 jeremybenn
 
399 96 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
400
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
  as_expr=expr
402 19 jeremybenn
else
403 96 jeremybenn
  as_expr=false
404 19 jeremybenn
fi
405
 
406 96 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
  as_basename=basename
408 19 jeremybenn
else
409 96 jeremybenn
  as_basename=false
410 19 jeremybenn
fi
411
 
412 96 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
  as_dirname=dirname
414 19 jeremybenn
else
415 96 jeremybenn
  as_dirname=false
416 19 jeremybenn
fi
417
 
418 96 jeremybenn
as_me=`$as_basename -- "$0" ||
419
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
420
         X"$0" : 'X\(//\)$' \| \
421
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
422
$as_echo X/"$0" |
423
    sed '/^.*\/\([^/][^/]*\)\/*$/{
424
            s//\1/
425
            q
426
          }
427
          /^X\/\(\/\/\)$/{
428
            s//\1/
429
            q
430
          }
431
          /^X\/\(\/\).*/{
432
            s//\1/
433
            q
434
          }
435
          s/.*/./; q'`
436 19 jeremybenn
 
437 96 jeremybenn
# Avoid depending upon Character Ranges.
438
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
439
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
440
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
441
as_cr_digits='0123456789'
442
as_cr_alnum=$as_cr_Letters$as_cr_digits
443 19 jeremybenn
 
444
 
445 96 jeremybenn
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
446
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
447
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
448
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
449
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
450 19 jeremybenn
  sed -n '
451
    p
452
    /[$]LINENO/=
453
  ' <$as_myself |
454
    sed '
455
      s/[$]LINENO.*/&-/
456
      t lineno
457
      b
458
      :lineno
459
      N
460
      :loop
461
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
462
      t loop
463
      s/-\n.*//
464
    ' >$as_me.lineno &&
465
  chmod +x "$as_me.lineno" ||
466 96 jeremybenn
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
467 19 jeremybenn
 
468
  # Don't try to exec as it changes $[0], causing all sort of problems
469
  # (the dirname of $[0] is not the place where we might find the
470
  # original and so on.  Autoconf is especially sensitive to this).
471
  . "./$as_me.lineno"
472
  # Exit status is that of the last command.
473
  exit
474
}
475
 
476
ECHO_C= ECHO_N= ECHO_T=
477 96 jeremybenn
case `echo -n x` in #(((((
478 19 jeremybenn
-n*)
479 96 jeremybenn
  case `echo 'xy\c'` in
480 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481 96 jeremybenn
  xy)  ECHO_C='\c';;
482
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
483
       ECHO_T=' ';;
484 19 jeremybenn
  esac;;
485
*)
486
  ECHO_N='-n';;
487
esac
488
 
489
rm -f conf$$ conf$$.exe conf$$.file
490
if test -d conf$$.dir; then
491
  rm -f conf$$.dir/conf$$.file
492
else
493
  rm -f conf$$.dir
494 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
495 19 jeremybenn
fi
496 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
497
  if ln -s conf$$.file conf$$ 2>/dev/null; then
498
    as_ln_s='ln -s'
499
    # ... but there are two gotchas:
500
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502
    # In both cases, we have to default to `cp -p'.
503
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504
      as_ln_s='cp -p'
505
  elif ln conf$$.file conf$$ 2>/dev/null; then
506
    as_ln_s=ln
507
  else
508 19 jeremybenn
    as_ln_s='cp -p'
509 82 jeremybenn
  fi
510 19 jeremybenn
else
511
  as_ln_s='cp -p'
512
fi
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
515
 
516
if mkdir -p . 2>/dev/null; then
517 96 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
518 19 jeremybenn
else
519
  test -d ./-p && rmdir ./-p
520
  as_mkdir_p=false
521
fi
522
 
523
if test -x / >/dev/null 2>&1; then
524
  as_test_x='test -x'
525
else
526
  if ls -dL / >/dev/null 2>&1; then
527
    as_ls_L_option=L
528
  else
529
    as_ls_L_option=
530
  fi
531
  as_test_x='
532
    eval sh -c '\''
533
      if test -d "$1"; then
534 82 jeremybenn
        test -d "$1/.";
535 19 jeremybenn
      else
536 96 jeremybenn
        case $1 in #(
537 82 jeremybenn
        -*)set "./$1";;
538 19 jeremybenn
        esac;
539 96 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
540 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
541
    '\'' sh
542
  '
543
fi
544
as_executable_p=$as_test_x
545
 
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
 
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
 
552
 
553
 
554
# Check that we are running under the correct shell.
555
SHELL=${CONFIG_SHELL-/bin/sh}
556
 
557 82 jeremybenn
case X$lt_ECHO in
558 19 jeremybenn
X*--fallback-echo)
559
  # Remove one level of quotation (which was required for Make).
560 82 jeremybenn
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 19 jeremybenn
  ;;
562
esac
563
 
564 82 jeremybenn
ECHO=${lt_ECHO-echo}
565 19 jeremybenn
if test "X$1" = X--no-reexec; then
566
  # Discard the --no-reexec flag, and continue.
567
  shift
568
elif test "X$1" = X--fallback-echo; then
569
  # Avoid inline document here, it may be left over
570
  :
571 82 jeremybenn
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
572
  # Yippee, $ECHO works!
573 19 jeremybenn
  :
574
else
575
  # Restart under the correct shell.
576
  exec $SHELL "$0" --no-reexec ${1+"$@"}
577
fi
578
 
579
if test "X$1" = X--fallback-echo; then
580
  # used as fallback echo
581
  shift
582 82 jeremybenn
  cat <<_LT_EOF
583 19 jeremybenn
$*
584 82 jeremybenn
_LT_EOF
585 19 jeremybenn
  exit 0
586
fi
587
 
588
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
# if CDPATH is set.
590
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
 
592 82 jeremybenn
if test -z "$lt_ECHO"; then
593
  if test "X${echo_test_string+set}" != Xset; then
594
    # find a string as large as possible, as long as the shell can cope with it
595
    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
598
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
599
      then
600
        break
601
      fi
602
    done
603
  fi
604 19 jeremybenn
 
605 82 jeremybenn
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
606
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
607
     test "X$echo_testing_string" = "X$echo_test_string"; then
608
    :
609
  else
610
    # The Solaris, AIX, and Digital Unix default echo programs unquote
611
    # backslashes.  This makes it impossible to quote backslashes using
612
    #   echo "$something" | sed 's/\\/\\\\/g'
613
    #
614
    # So, first we look for a working echo in the user's PATH.
615 19 jeremybenn
 
616 82 jeremybenn
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
    for dir in $PATH /usr/ucb; do
618
      IFS="$lt_save_ifs"
619
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
         test "X$echo_testing_string" = "X$echo_test_string"; then
623
        ECHO="$dir/echo"
624
        break
625
      fi
626
    done
627 19 jeremybenn
    IFS="$lt_save_ifs"
628
 
629 82 jeremybenn
    if test "X$ECHO" = Xecho; then
630
      # We didn't find a better echo, so look for alternatives.
631
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
632
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
633
         test "X$echo_testing_string" = "X$echo_test_string"; then
634
        # This shell has a builtin print -r that does the trick.
635
        ECHO='print -r'
636
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
637
           test "X$CONFIG_SHELL" != X/bin/ksh; then
638
        # If we have ksh, try running configure again with it.
639
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
        export ORIGINAL_CONFIG_SHELL
641
        CONFIG_SHELL=/bin/ksh
642
        export CONFIG_SHELL
643
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644
      else
645
        # Try using printf.
646
        ECHO='printf %s\n'
647
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
648
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
649 19 jeremybenn
           test "X$echo_testing_string" = "X$echo_test_string"; then
650 82 jeremybenn
          # Cool, printf works
651
          :
652
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
             test "X$echo_testing_string" = 'X\t' &&
654
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
             test "X$echo_testing_string" = "X$echo_test_string"; then
656
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657
          export CONFIG_SHELL
658
          SHELL="$CONFIG_SHELL"
659
          export SHELL
660
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
661
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
             test "X$echo_testing_string" = 'X\t' &&
663
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
             test "X$echo_testing_string" = "X$echo_test_string"; then
665
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
666
        else
667
          # maybe with a smaller string...
668
          prev=:
669 19 jeremybenn
 
670 82 jeremybenn
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
672
            then
673
              break
674
            fi
675
            prev="$cmd"
676
          done
677
 
678
          if test "$prev" != 'sed 50q "$0"'; then
679
            echo_test_string=`eval $prev`
680
            export echo_test_string
681
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682
          else
683
            # Oops.  We lost completely, so just stick with echo.
684
            ECHO=echo
685 19 jeremybenn
          fi
686 82 jeremybenn
        fi
687 19 jeremybenn
      fi
688
    fi
689
  fi
690
fi
691
 
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
694 82 jeremybenn
lt_ECHO=$ECHO
695
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 19 jeremybenn
fi
698
 
699
 
700
 
701
 
702 96 jeremybenn
test -n "$DJDIR" || exec 7<&0 
703
exec 6>&1
704 19 jeremybenn
 
705
# Name of the host.
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707
# so uname gets run too.
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
 
710
#
711
# Initializations.
712
#
713
ac_default_prefix=/usr/local
714
ac_clean_files=
715
ac_config_libobj_dir=.
716
LIBOBJS=
717
cross_compiling=no
718
subdirs=
719
MFLAGS=
720
MAKEFLAGS=
721
 
722
# Identity of this package.
723
PACKAGE_NAME='or1ksim'
724
PACKAGE_TARNAME='or1ksim'
725 96 jeremybenn
PACKAGE_VERSION='2010-05-02'
726
PACKAGE_STRING='or1ksim 2010-05-02'
727 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
728 96 jeremybenn
PACKAGE_URL=''
729 19 jeremybenn
 
730
# Factoring default headers for most tests.
731
ac_includes_default="\
732
#include 
733
#ifdef HAVE_SYS_TYPES_H
734
# include 
735
#endif
736
#ifdef HAVE_SYS_STAT_H
737
# include 
738
#endif
739
#ifdef STDC_HEADERS
740
# include 
741
# include 
742
#else
743
# ifdef HAVE_STDLIB_H
744
#  include 
745
# endif
746
#endif
747
#ifdef HAVE_STRING_H
748
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
749
#  include 
750
# endif
751
# include 
752
#endif
753
#ifdef HAVE_STRINGS_H
754
# include 
755
#endif
756
#ifdef HAVE_INTTYPES_H
757
# include 
758
#endif
759
#ifdef HAVE_STDINT_H
760
# include 
761
#endif
762
#ifdef HAVE_UNISTD_H
763
# include 
764
#endif"
765
 
766 91 jeremybenn
ac_unique_file="cpu/or32/execute.c"
767
enable_option_checking=no
768 82 jeremybenn
ac_subst_vars='am__EXEEXT_FALSE
769
am__EXEEXT_TRUE
770
LTLIBOBJS
771
INCLUDES
772
TERMCAP_LIB
773
SUMVERSION
774
ARFLAGS
775
LOCAL_DEFS
776
LOCAL_LDFLAGS
777
LOCAL_CFLAGS
778
BUILD_DIR
779 96 jeremybenn
RUNTESTDEFAULTFLAGS
780 90 jeremybenn
DEJAGNU
781 82 jeremybenn
DYNAMIC_EXECUTION_FALSE
782
DYNAMIC_EXECUTION_TRUE
783
GENERATE_NEEDED_FALSE
784
GENERATE_NEEDED_TRUE
785
DEBUGFLAGS
786
USE_ARGDATE_FALSE
787
USE_ARGDATE_TRUE
788
USE_ARGREX_FALSE
789
USE_ARGREX_TRUE
790
USE_SYS_GETOPTLONG_FALSE
791
USE_SYS_GETOPTLONG_TRUE
792
POW_LIB
793
LIBOBJS
794
am__fastdepCCAS_FALSE
795
am__fastdepCCAS_TRUE
796
CCASDEPMODE
797
CCASFLAGS
798
CCAS
799
CPU_ARCH
800
am__fastdepCC_FALSE
801
am__fastdepCC_TRUE
802
CCDEPMODE
803
AMDEPBACKSLASH
804
AMDEP_FALSE
805
AMDEP_TRUE
806
am__quote
807
am__include
808
DEPDIR
809
am__untar
810
am__tar
811
AMTAR
812
am__leading_dot
813
SET_MAKE
814
AWK
815
mkdir_p
816
MKDIR_P
817
INSTALL_STRIP_PROGRAM
818
install_sh
819
MAKEINFO
820
AUTOHEADER
821
AUTOMAKE
822
AUTOCONF
823
ACLOCAL
824
VERSION
825
PACKAGE
826
CYGPATH_W
827
am__isrc
828
INSTALL_DATA
829
INSTALL_SCRIPT
830
INSTALL_PROGRAM
831
OTOOL64
832
OTOOL
833
LIPO
834
NMEDIT
835
DSYMUTIL
836
lt_ECHO
837 19 jeremybenn
RANLIB
838
STRIP
839 82 jeremybenn
AR
840
OBJDUMP
841
LN_S
842
NM
843
ac_ct_DUMPBIN
844
DUMPBIN
845
LD
846
FGREP
847
SED
848 19 jeremybenn
LIBTOOL
849 82 jeremybenn
target_os
850
target_vendor
851
target_cpu
852
target
853
host_os
854
host_vendor
855
host_cpu
856
host
857
build_os
858
build_vendor
859
build_cpu
860
build
861
subdirs
862 91 jeremybenn
EGREP
863
GREP
864
CPP
865
OBJEXT
866
EXEEXT
867
ac_ct_CC
868
CPPFLAGS
869
LDFLAGS
870
CFLAGS
871
CC
872 82 jeremybenn
target_alias
873
host_alias
874
build_alias
875
LIBS
876
ECHO_T
877
ECHO_N
878
ECHO_C
879
DEFS
880
mandir
881
localedir
882
libdir
883
psdir
884
pdfdir
885
dvidir
886
htmldir
887
infodir
888
docdir
889
oldincludedir
890
includedir
891
localstatedir
892
sharedstatedir
893
sysconfdir
894
datadir
895
datarootdir
896
libexecdir
897
sbindir
898
bindir
899
program_transform_name
900
prefix
901
exec_prefix
902 96 jeremybenn
PACKAGE_URL
903 82 jeremybenn
PACKAGE_BUGREPORT
904
PACKAGE_STRING
905
PACKAGE_VERSION
906
PACKAGE_TARNAME
907
PACKAGE_NAME
908
PATH_SEPARATOR
909
SHELL'
910 19 jeremybenn
ac_subst_files=''
911 82 jeremybenn
ac_user_opts='
912
enable_option_checking
913
enable_shared
914
enable_static
915
with_pic
916
enable_fast_install
917
with_gnu_ld
918
enable_libtool_lock
919
enable_dependency_tracking
920
enable_profiling
921
enable_execution
922
enable_ethphy
923
enable_range_stats
924
enable_ov_flag
925
enable_arith_flag
926
enable_debug
927
'
928 19 jeremybenn
      ac_precious_vars='build_alias
929
host_alias
930
target_alias
931
CC
932
CFLAGS
933
LDFLAGS
934
LIBS
935
CPPFLAGS
936
CPP
937 82 jeremybenn
CCAS
938
CCASFLAGS'
939 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
940 19 jeremybenn
 
941
# Initialize some variables set by options.
942
ac_init_help=
943
ac_init_version=false
944 82 jeremybenn
ac_unrecognized_opts=
945
ac_unrecognized_sep=
946 19 jeremybenn
# The variables have the same names as the options, with
947
# dashes changed to underlines.
948
cache_file=/dev/null
949
exec_prefix=NONE
950
no_create=
951
no_recursion=
952
prefix=NONE
953
program_prefix=NONE
954
program_suffix=NONE
955
program_transform_name=s,x,x,
956
silent=
957
site=
958
srcdir=
959
verbose=
960
x_includes=NONE
961
x_libraries=NONE
962
 
963
# Installation directory options.
964
# These are left unexpanded so users can "make install exec_prefix=/foo"
965
# and all the variables that are supposed to be based on exec_prefix
966
# by default will actually change.
967
# Use braces instead of parens because sh, perl, etc. also accept them.
968
# (The list follows the same order as the GNU Coding Standards.)
969
bindir='${exec_prefix}/bin'
970
sbindir='${exec_prefix}/sbin'
971
libexecdir='${exec_prefix}/libexec'
972
datarootdir='${prefix}/share'
973
datadir='${datarootdir}'
974
sysconfdir='${prefix}/etc'
975
sharedstatedir='${prefix}/com'
976
localstatedir='${prefix}/var'
977
includedir='${prefix}/include'
978
oldincludedir='/usr/include'
979
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980
infodir='${datarootdir}/info'
981
htmldir='${docdir}'
982
dvidir='${docdir}'
983
pdfdir='${docdir}'
984
psdir='${docdir}'
985
libdir='${exec_prefix}/lib'
986
localedir='${datarootdir}/locale'
987
mandir='${datarootdir}/man'
988
 
989
ac_prev=
990
ac_dashdash=
991
for ac_option
992
do
993
  # If the previous option needs an argument, assign it.
994
  if test -n "$ac_prev"; then
995
    eval $ac_prev=\$ac_option
996
    ac_prev=
997
    continue
998
  fi
999
 
1000
  case $ac_option in
1001
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002
  *)    ac_optarg=yes ;;
1003
  esac
1004
 
1005
  # Accept the important Cygnus configure options, so we can diagnose typos.
1006
 
1007
  case $ac_dashdash$ac_option in
1008
  --)
1009
    ac_dashdash=yes ;;
1010
 
1011
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012
    ac_prev=bindir ;;
1013
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014
    bindir=$ac_optarg ;;
1015
 
1016
  -build | --build | --buil | --bui | --bu)
1017
    ac_prev=build_alias ;;
1018
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019
    build_alias=$ac_optarg ;;
1020
 
1021
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023
    ac_prev=cache_file ;;
1024
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026
    cache_file=$ac_optarg ;;
1027
 
1028
  --config-cache | -C)
1029
    cache_file=config.cache ;;
1030
 
1031
  -datadir | --datadir | --datadi | --datad)
1032
    ac_prev=datadir ;;
1033
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034
    datadir=$ac_optarg ;;
1035
 
1036
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037
  | --dataroo | --dataro | --datar)
1038
    ac_prev=datarootdir ;;
1039
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041
    datarootdir=$ac_optarg ;;
1042
 
1043
  -disable-* | --disable-*)
1044 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 19 jeremybenn
    # Reject names that are not valid shell variable names.
1046 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 96 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1048 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1049
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050
    case $ac_user_opts in
1051
      *"
1052
"enable_$ac_useropt"
1053
"*) ;;
1054
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055
         ac_unrecognized_sep=', ';;
1056
    esac
1057
    eval enable_$ac_useropt=no ;;
1058 19 jeremybenn
 
1059
  -docdir | --docdir | --docdi | --doc | --do)
1060
    ac_prev=docdir ;;
1061
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062
    docdir=$ac_optarg ;;
1063
 
1064
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065
    ac_prev=dvidir ;;
1066
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067
    dvidir=$ac_optarg ;;
1068
 
1069
  -enable-* | --enable-*)
1070 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 19 jeremybenn
    # Reject names that are not valid shell variable names.
1072 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 96 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1074 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1075
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076
    case $ac_user_opts in
1077
      *"
1078
"enable_$ac_useropt"
1079
"*) ;;
1080
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081
         ac_unrecognized_sep=', ';;
1082
    esac
1083
    eval enable_$ac_useropt=\$ac_optarg ;;
1084 19 jeremybenn
 
1085
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087
  | --exec | --exe | --ex)
1088
    ac_prev=exec_prefix ;;
1089
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091
  | --exec=* | --exe=* | --ex=*)
1092
    exec_prefix=$ac_optarg ;;
1093
 
1094
  -gas | --gas | --ga | --g)
1095
    # Obsolete; use --with-gas.
1096
    with_gas=yes ;;
1097
 
1098
  -help | --help | --hel | --he | -h)
1099
    ac_init_help=long ;;
1100
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101
    ac_init_help=recursive ;;
1102
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103
    ac_init_help=short ;;
1104
 
1105
  -host | --host | --hos | --ho)
1106
    ac_prev=host_alias ;;
1107
  -host=* | --host=* | --hos=* | --ho=*)
1108
    host_alias=$ac_optarg ;;
1109
 
1110
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111
    ac_prev=htmldir ;;
1112
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113
  | --ht=*)
1114
    htmldir=$ac_optarg ;;
1115
 
1116
  -includedir | --includedir | --includedi | --included | --include \
1117
  | --includ | --inclu | --incl | --inc)
1118
    ac_prev=includedir ;;
1119
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1121
    includedir=$ac_optarg ;;
1122
 
1123
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1124
    ac_prev=infodir ;;
1125
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126
    infodir=$ac_optarg ;;
1127
 
1128
  -libdir | --libdir | --libdi | --libd)
1129
    ac_prev=libdir ;;
1130
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131
    libdir=$ac_optarg ;;
1132
 
1133
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134
  | --libexe | --libex | --libe)
1135
    ac_prev=libexecdir ;;
1136
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137
  | --libexe=* | --libex=* | --libe=*)
1138
    libexecdir=$ac_optarg ;;
1139
 
1140
  -localedir | --localedir | --localedi | --localed | --locale)
1141
    ac_prev=localedir ;;
1142
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143
    localedir=$ac_optarg ;;
1144
 
1145
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1146
  | --localstate | --localstat | --localsta | --localst | --locals)
1147
    ac_prev=localstatedir ;;
1148
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150
    localstatedir=$ac_optarg ;;
1151
 
1152
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153
    ac_prev=mandir ;;
1154
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155
    mandir=$ac_optarg ;;
1156
 
1157
  -nfp | --nfp | --nf)
1158
    # Obsolete; use --without-fp.
1159
    with_fp=no ;;
1160
 
1161
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162
  | --no-cr | --no-c | -n)
1163
    no_create=yes ;;
1164
 
1165
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167
    no_recursion=yes ;;
1168
 
1169
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171
  | --oldin | --oldi | --old | --ol | --o)
1172
    ac_prev=oldincludedir ;;
1173
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176
    oldincludedir=$ac_optarg ;;
1177
 
1178
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179
    ac_prev=prefix ;;
1180
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181
    prefix=$ac_optarg ;;
1182
 
1183
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184
  | --program-pre | --program-pr | --program-p)
1185
    ac_prev=program_prefix ;;
1186
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188
    program_prefix=$ac_optarg ;;
1189
 
1190
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191
  | --program-suf | --program-su | --program-s)
1192
    ac_prev=program_suffix ;;
1193
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195
    program_suffix=$ac_optarg ;;
1196
 
1197
  -program-transform-name | --program-transform-name \
1198
  | --program-transform-nam | --program-transform-na \
1199
  | --program-transform-n | --program-transform- \
1200
  | --program-transform | --program-transfor \
1201
  | --program-transfo | --program-transf \
1202
  | --program-trans | --program-tran \
1203
  | --progr-tra | --program-tr | --program-t)
1204
    ac_prev=program_transform_name ;;
1205
  -program-transform-name=* | --program-transform-name=* \
1206
  | --program-transform-nam=* | --program-transform-na=* \
1207
  | --program-transform-n=* | --program-transform-=* \
1208
  | --program-transform=* | --program-transfor=* \
1209
  | --program-transfo=* | --program-transf=* \
1210
  | --program-trans=* | --program-tran=* \
1211
  | --progr-tra=* | --program-tr=* | --program-t=*)
1212
    program_transform_name=$ac_optarg ;;
1213
 
1214
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215
    ac_prev=pdfdir ;;
1216
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217
    pdfdir=$ac_optarg ;;
1218
 
1219
  -psdir | --psdir | --psdi | --psd | --ps)
1220
    ac_prev=psdir ;;
1221
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222
    psdir=$ac_optarg ;;
1223
 
1224
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225
  | -silent | --silent | --silen | --sile | --sil)
1226
    silent=yes ;;
1227
 
1228
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229
    ac_prev=sbindir ;;
1230
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231
  | --sbi=* | --sb=*)
1232
    sbindir=$ac_optarg ;;
1233
 
1234
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236
  | --sharedst | --shareds | --shared | --share | --shar \
1237
  | --sha | --sh)
1238
    ac_prev=sharedstatedir ;;
1239
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242
  | --sha=* | --sh=*)
1243
    sharedstatedir=$ac_optarg ;;
1244
 
1245
  -site | --site | --sit)
1246
    ac_prev=site ;;
1247
  -site=* | --site=* | --sit=*)
1248
    site=$ac_optarg ;;
1249
 
1250
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251
    ac_prev=srcdir ;;
1252
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253
    srcdir=$ac_optarg ;;
1254
 
1255
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256
  | --syscon | --sysco | --sysc | --sys | --sy)
1257
    ac_prev=sysconfdir ;;
1258
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260
    sysconfdir=$ac_optarg ;;
1261
 
1262
  -target | --target | --targe | --targ | --tar | --ta | --t)
1263
    ac_prev=target_alias ;;
1264
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265
    target_alias=$ac_optarg ;;
1266
 
1267
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268
    verbose=yes ;;
1269
 
1270
  -version | --version | --versio | --versi | --vers | -V)
1271
    ac_init_version=: ;;
1272
 
1273
  -with-* | --with-*)
1274 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 19 jeremybenn
    # Reject names that are not valid shell variable names.
1276 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 96 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1278 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1279
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280
    case $ac_user_opts in
1281
      *"
1282
"with_$ac_useropt"
1283
"*) ;;
1284
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285
         ac_unrecognized_sep=', ';;
1286
    esac
1287
    eval with_$ac_useropt=\$ac_optarg ;;
1288 19 jeremybenn
 
1289
  -without-* | --without-*)
1290 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 19 jeremybenn
    # Reject names that are not valid shell variable names.
1292 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 96 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1294 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1295
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296
    case $ac_user_opts in
1297
      *"
1298
"with_$ac_useropt"
1299
"*) ;;
1300
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301
         ac_unrecognized_sep=', ';;
1302
    esac
1303
    eval with_$ac_useropt=no ;;
1304 19 jeremybenn
 
1305
  --x)
1306
    # Obsolete; use --with-x.
1307
    with_x=yes ;;
1308
 
1309
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310
  | --x-incl | --x-inc | --x-in | --x-i)
1311
    ac_prev=x_includes ;;
1312
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314
    x_includes=$ac_optarg ;;
1315
 
1316
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318
    ac_prev=x_libraries ;;
1319
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321
    x_libraries=$ac_optarg ;;
1322
 
1323 96 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1324
Try \`$0 --help' for more information."
1325 19 jeremybenn
    ;;
1326
 
1327
  *=*)
1328
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329
    # Reject names that are not valid shell variable names.
1330 96 jeremybenn
    case $ac_envvar in #(
1331
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1332
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333
    esac
1334 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1335
    export $ac_envvar ;;
1336
 
1337
  *)
1338
    # FIXME: should be removed in autoconf 3.0.
1339 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343
    ;;
1344
 
1345
  esac
1346
done
1347
 
1348
if test -n "$ac_prev"; then
1349
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 96 jeremybenn
  as_fn_error "missing argument to $ac_option"
1351 19 jeremybenn
fi
1352
 
1353 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1354
  case $enable_option_checking in
1355
    no) ;;
1356 96 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358
  esac
1359
fi
1360
 
1361
# Check all directory arguments for consistency.
1362 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363
                datadir sysconfdir sharedstatedir localstatedir includedir \
1364
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365
                libdir localedir mandir
1366
do
1367
  eval ac_val=\$$ac_var
1368 82 jeremybenn
  # Remove trailing slashes.
1369 19 jeremybenn
  case $ac_val in
1370 82 jeremybenn
    */ )
1371
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372
      eval $ac_var=\$ac_val;;
1373
  esac
1374
  # Be sure to have absolute directory names.
1375
  case $ac_val in
1376 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1377
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378
  esac
1379 96 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 19 jeremybenn
done
1381
 
1382
# There might be people who depend on the old broken behavior: `$host'
1383
# used to hold the argument of --host etc.
1384
# FIXME: To remove some day.
1385
build=$build_alias
1386
host=$host_alias
1387
target=$target_alias
1388
 
1389
# FIXME: To remove some day.
1390
if test "x$host_alias" != x; then
1391
  if test "x$build_alias" = x; then
1392
    cross_compiling=maybe
1393 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1395
  elif test "x$build_alias" != "x$host_alias"; then
1396
    cross_compiling=yes
1397
  fi
1398
fi
1399
 
1400
ac_tool_prefix=
1401
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
 
1403
test "$silent" = yes && exec 6>/dev/null
1404
 
1405
 
1406
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407
ac_ls_di=`ls -di .` &&
1408
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 96 jeremybenn
  as_fn_error "working directory cannot be determined"
1410 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 96 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1412 19 jeremybenn
 
1413
 
1414
# Find the source files, if location was not specified.
1415
if test -z "$srcdir"; then
1416
  ac_srcdir_defaulted=yes
1417
  # Try the directory containing this script, then the parent directory.
1418 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1419
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420
         X"$as_myself" : 'X\(//\)[^/]' \| \
1421
         X"$as_myself" : 'X\(//\)$' \| \
1422
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423
$as_echo X"$as_myself" |
1424 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425
            s//\1/
1426
            q
1427
          }
1428
          /^X\(\/\/\)[^/].*/{
1429
            s//\1/
1430
            q
1431
          }
1432
          /^X\(\/\/\)$/{
1433
            s//\1/
1434
            q
1435
          }
1436
          /^X\(\/\).*/{
1437
            s//\1/
1438
            q
1439
          }
1440
          s/.*/./; q'`
1441
  srcdir=$ac_confdir
1442
  if test ! -r "$srcdir/$ac_unique_file"; then
1443
    srcdir=..
1444
  fi
1445
else
1446
  ac_srcdir_defaulted=no
1447
fi
1448
if test ! -r "$srcdir/$ac_unique_file"; then
1449
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 96 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 19 jeremybenn
fi
1452
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453
ac_abs_confdir=`(
1454 96 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 19 jeremybenn
        pwd)`
1456
# When building in place, set srcdir=.
1457
if test "$ac_abs_confdir" = "$ac_pwd"; then
1458
  srcdir=.
1459
fi
1460
# Remove unnecessary trailing slashes from srcdir.
1461
# Double slashes in file names in object file debugging info
1462
# mess up M-x gdb in Emacs.
1463
case $srcdir in
1464
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465
esac
1466
for ac_var in $ac_precious_vars; do
1467
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468
  eval ac_env_${ac_var}_value=\$${ac_var}
1469
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471
done
1472
 
1473
#
1474
# Report the --help message.
1475
#
1476
if test "$ac_init_help" = "long"; then
1477
  # Omit some internal or obsolete options to make the list less imposing.
1478
  # This message is too long to be a string in the A/UX 3.1 sh.
1479
  cat <<_ACEOF
1480 96 jeremybenn
\`configure' configures or1ksim 2010-05-02 to adapt to many kinds of systems.
1481 19 jeremybenn
 
1482
Usage: $0 [OPTION]... [VAR=VALUE]...
1483
 
1484
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485
VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
 
1487
Defaults for the options are specified in brackets.
1488
 
1489
Configuration:
1490
  -h, --help              display this help and exit
1491
      --help=short        display options specific to this package
1492
      --help=recursive    display the short help of all the included packages
1493
  -V, --version           display version information and exit
1494
  -q, --quiet, --silent   do not print \`checking...' messages
1495
      --cache-file=FILE   cache test results in FILE [disabled]
1496
  -C, --config-cache      alias for \`--cache-file=config.cache'
1497
  -n, --no-create         do not create output files
1498
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
 
1500
Installation directories:
1501
  --prefix=PREFIX         install architecture-independent files in PREFIX
1502 82 jeremybenn
                          [$ac_default_prefix]
1503 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504 82 jeremybenn
                          [PREFIX]
1505 19 jeremybenn
 
1506
By default, \`make install' will install all the files in
1507
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509
for instance \`--prefix=\$HOME'.
1510
 
1511
For better control, use the options below.
1512
 
1513
Fine tuning of the installation directories:
1514 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1515
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1517
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520
  --libdir=DIR            object code libraries [EPREFIX/lib]
1521
  --includedir=DIR        C header files [PREFIX/include]
1522
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1526
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1528
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1529
  --htmldir=DIR           html documentation [DOCDIR]
1530
  --dvidir=DIR            dvi documentation [DOCDIR]
1531
  --pdfdir=DIR            pdf documentation [DOCDIR]
1532
  --psdir=DIR             ps documentation [DOCDIR]
1533 19 jeremybenn
_ACEOF
1534
 
1535
  cat <<\_ACEOF
1536
 
1537
Program names:
1538
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1539
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1540
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
 
1542
System types:
1543
  --build=BUILD     configure for building on BUILD [guessed]
1544
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545
  --target=TARGET   configure for building compilers for TARGET [HOST]
1546
_ACEOF
1547
fi
1548
 
1549
if test -n "$ac_init_help"; then
1550
  case $ac_init_help in
1551 96 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-05-02:";;
1552 19 jeremybenn
   esac
1553
  cat <<\_ACEOF
1554
 
1555
Optional Features:
1556 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1557 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1560
  --enable-static[=PKGS]  build static libraries [default=yes]
1561
  --enable-fast-install[=PKGS]
1562
                          optimize for fast installation [default=yes]
1563
  --disable-libtool-lock  avoid locking (might break parallel builds)
1564
  --disable-dependency-tracking  speeds up one-time build
1565
  --enable-dependency-tracking   do not reject slow dependency extractors
1566
  --enable-profiling      generate profiling code
1567
  --enable-execution Execution style to use (simple/complex/dynamic)
1568
  --enable-ethphy    compiles sim with ethernet phy support
1569
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1570
  --enable-ov-flag      Whether instructions set overflow flag.
1571
  --enable-arith-flag      Whether arithmethic instructions setflag.
1572
  --enable-debug          enable library debugging symbols
1573
 
1574
Optional Packages:
1575
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577
  --with-pic              try to use only PIC/non-PIC objects [default=use
1578
                          both]
1579 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580 19 jeremybenn
 
1581
Some influential environment variables:
1582
  CC          C compiler command
1583
  CFLAGS      C compiler flags
1584
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1585
              nonstandard directory 
1586
  LIBS        libraries to pass to the linker, e.g. -l
1587 96 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1588 19 jeremybenn
              you have headers in a nonstandard directory 
1589
  CPP         C preprocessor
1590 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1591
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1592 19 jeremybenn
 
1593
Use these variables to override the choices made by `configure' or to help
1594
it to find libraries and programs with nonstandard names/locations.
1595
 
1596
Report bugs to .
1597
_ACEOF
1598
ac_status=$?
1599
fi
1600
 
1601
if test "$ac_init_help" = "recursive"; then
1602
  # If there are subdirs, report their specific --help.
1603
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 82 jeremybenn
    test -d "$ac_dir" ||
1605
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606
      continue
1607 19 jeremybenn
    ac_builddir=.
1608
 
1609
case "$ac_dir" in
1610
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611
*)
1612 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1614 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 19 jeremybenn
  case $ac_top_builddir_sub in
1616
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618
  esac ;;
1619
esac
1620
ac_abs_top_builddir=$ac_pwd
1621
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622
# for backward compatibility:
1623
ac_top_builddir=$ac_top_build_prefix
1624
 
1625
case $srcdir in
1626
  .)  # We are building in place.
1627
    ac_srcdir=.
1628
    ac_top_srcdir=$ac_top_builddir_sub
1629
    ac_abs_top_srcdir=$ac_pwd ;;
1630
  [\\/]* | ?:[\\/]* )  # Absolute name.
1631
    ac_srcdir=$srcdir$ac_dir_suffix;
1632
    ac_top_srcdir=$srcdir
1633
    ac_abs_top_srcdir=$srcdir ;;
1634
  *) # Relative name.
1635
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1637
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638
esac
1639
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
 
1641
    cd "$ac_dir" || { ac_status=$?; continue; }
1642
    # Check for guested configure.
1643
    if test -f "$ac_srcdir/configure.gnu"; then
1644
      echo &&
1645
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646
    elif test -f "$ac_srcdir/configure"; then
1647
      echo &&
1648
      $SHELL "$ac_srcdir/configure" --help=recursive
1649
    else
1650 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 19 jeremybenn
    fi || ac_status=$?
1652
    cd "$ac_pwd" || { ac_status=$?; break; }
1653
  done
1654
fi
1655
 
1656
test -n "$ac_init_help" && exit $ac_status
1657
if $ac_init_version; then
1658
  cat <<\_ACEOF
1659 96 jeremybenn
or1ksim configure 2010-05-02
1660
generated by GNU Autoconf 2.65
1661 19 jeremybenn
 
1662 96 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1663 19 jeremybenn
This configure script is free software; the Free Software Foundation
1664
gives unlimited permission to copy, distribute and modify it.
1665 82 jeremybenn
 
1666
Copyright (C) 1999-2008 OpenCores
1667
Copyright (C) 2008, 2010 Embecosm Limited
1668
 
1669
Contributor Jeremy Bennett 
1670
 
1671
This file is part of OpenRISC 1000 Architectural Simulator.
1672
 
1673
This program is free software; you can redistribute it and/or modify it
1674
under the terms of the GNU General Public License as published by the Free
1675
Software Foundation; either version 3 of the License, or (at your option)
1676
any later version.
1677
 
1678
This program is distributed in the hope that it will be useful, but WITHOUT
1679
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1680
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1681
more details.
1682
 
1683
You should have received a copy of the GNU General Public License along
1684
with this program.  If not, see .
1685 19 jeremybenn
_ACEOF
1686
  exit
1687
fi
1688 96 jeremybenn
 
1689
## ------------------------ ##
1690
## Autoconf initialization. ##
1691
## ------------------------ ##
1692
 
1693
# ac_fn_c_try_compile LINENO
1694
# --------------------------
1695
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696
ac_fn_c_try_compile ()
1697
{
1698
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699
  rm -f conftest.$ac_objext
1700
  if { { ac_try="$ac_compile"
1701
case "(($ac_try" in
1702
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703
  *) ac_try_echo=$ac_try;;
1704
esac
1705
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706
$as_echo "$ac_try_echo"; } >&5
1707
  (eval "$ac_compile") 2>conftest.err
1708
  ac_status=$?
1709
  if test -s conftest.err; then
1710
    grep -v '^ *+' conftest.err >conftest.er1
1711
    cat conftest.er1 >&5
1712
    mv -f conftest.er1 conftest.err
1713
  fi
1714
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715
  test $ac_status = 0; } && {
1716
         test -z "$ac_c_werror_flag" ||
1717
         test ! -s conftest.err
1718
       } && test -s conftest.$ac_objext; then :
1719
  ac_retval=0
1720
else
1721
  $as_echo "$as_me: failed program was:" >&5
1722
sed 's/^/| /' conftest.$ac_ext >&5
1723
 
1724
        ac_retval=1
1725
fi
1726
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727
  as_fn_set_status $ac_retval
1728
 
1729
} # ac_fn_c_try_compile
1730
 
1731
# ac_fn_c_try_cpp LINENO
1732
# ----------------------
1733
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734
ac_fn_c_try_cpp ()
1735
{
1736
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1738
case "(($ac_try" in
1739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740
  *) ac_try_echo=$ac_try;;
1741
esac
1742
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743
$as_echo "$ac_try_echo"; } >&5
1744
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745
  ac_status=$?
1746
  if test -s conftest.err; then
1747
    grep -v '^ *+' conftest.err >conftest.er1
1748
    cat conftest.er1 >&5
1749
    mv -f conftest.er1 conftest.err
1750
  fi
1751
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752
  test $ac_status = 0; } >/dev/null && {
1753
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754
         test ! -s conftest.err
1755
       }; then :
1756
  ac_retval=0
1757
else
1758
  $as_echo "$as_me: failed program was:" >&5
1759
sed 's/^/| /' conftest.$ac_ext >&5
1760
 
1761
    ac_retval=1
1762
fi
1763
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764
  as_fn_set_status $ac_retval
1765
 
1766
} # ac_fn_c_try_cpp
1767
 
1768
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769
# -------------------------------------------------------
1770
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771
# the include files in INCLUDES and setting the cache variable VAR
1772
# accordingly.
1773
ac_fn_c_check_header_mongrel ()
1774
{
1775
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778
$as_echo_n "checking for $2... " >&6; }
1779
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780
  $as_echo_n "(cached) " >&6
1781
fi
1782
eval ac_res=\$$3
1783
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1785
else
1786
  # Is the header compilable?
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788
$as_echo_n "checking $2 usability... " >&6; }
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
/* end confdefs.h.  */
1791
$4
1792
#include <$2>
1793
_ACEOF
1794
if ac_fn_c_try_compile "$LINENO"; then :
1795
  ac_header_compiler=yes
1796
else
1797
  ac_header_compiler=no
1798
fi
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801
$as_echo "$ac_header_compiler" >&6; }
1802
 
1803
# Is the header present?
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805
$as_echo_n "checking $2 presence... " >&6; }
1806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807
/* end confdefs.h.  */
1808
#include <$2>
1809
_ACEOF
1810
if ac_fn_c_try_cpp "$LINENO"; then :
1811
  ac_header_preproc=yes
1812
else
1813
  ac_header_preproc=no
1814
fi
1815
rm -f conftest.err conftest.$ac_ext
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817
$as_echo "$ac_header_preproc" >&6; }
1818
 
1819
# So?  What about this header?
1820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821
  yes:no: )
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826
    ;;
1827
  no:yes:* )
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1831
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1835
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1836
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838
( cat <<\_ASBOX
1839
## ------------------------------------- ##
1840
## Report this to openrisc@opencores.org ##
1841
## ------------------------------------- ##
1842
_ASBOX
1843
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1844
    ;;
1845
esac
1846
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847
$as_echo_n "checking for $2... " >&6; }
1848
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849
  $as_echo_n "(cached) " >&6
1850
else
1851
  eval "$3=\$ac_header_compiler"
1852
fi
1853
eval ac_res=\$$3
1854
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855
$as_echo "$ac_res" >&6; }
1856
fi
1857
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858
 
1859
} # ac_fn_c_check_header_mongrel
1860
 
1861
# ac_fn_c_try_run LINENO
1862
# ----------------------
1863
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864
# that executables *can* be run.
1865
ac_fn_c_try_run ()
1866
{
1867
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868
  if { { ac_try="$ac_link"
1869
case "(($ac_try" in
1870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871
  *) ac_try_echo=$ac_try;;
1872
esac
1873
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874
$as_echo "$ac_try_echo"; } >&5
1875
  (eval "$ac_link") 2>&5
1876
  ac_status=$?
1877
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879
  { { case "(($ac_try" in
1880
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881
  *) ac_try_echo=$ac_try;;
1882
esac
1883
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884
$as_echo "$ac_try_echo"; } >&5
1885
  (eval "$ac_try") 2>&5
1886
  ac_status=$?
1887
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888
  test $ac_status = 0; }; }; then :
1889
  ac_retval=0
1890
else
1891
  $as_echo "$as_me: program exited with status $ac_status" >&5
1892
       $as_echo "$as_me: failed program was:" >&5
1893
sed 's/^/| /' conftest.$ac_ext >&5
1894
 
1895
       ac_retval=$ac_status
1896
fi
1897
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899
  as_fn_set_status $ac_retval
1900
 
1901
} # ac_fn_c_try_run
1902
 
1903
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904
# -------------------------------------------------------
1905
# Tests whether HEADER exists and can be compiled using the include files in
1906
# INCLUDES, setting the cache variable VAR accordingly.
1907
ac_fn_c_check_header_compile ()
1908
{
1909
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911
$as_echo_n "checking for $2... " >&6; }
1912
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913
  $as_echo_n "(cached) " >&6
1914
else
1915
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916
/* end confdefs.h.  */
1917
$4
1918
#include <$2>
1919
_ACEOF
1920
if ac_fn_c_try_compile "$LINENO"; then :
1921
  eval "$3=yes"
1922
else
1923
  eval "$3=no"
1924
fi
1925
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926
fi
1927
eval ac_res=\$$3
1928
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929
$as_echo "$ac_res" >&6; }
1930
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1931
 
1932
} # ac_fn_c_check_header_compile
1933
 
1934
# ac_fn_c_try_link LINENO
1935
# -----------------------
1936
# Try to link conftest.$ac_ext, and return whether this succeeded.
1937
ac_fn_c_try_link ()
1938
{
1939
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940
  rm -f conftest.$ac_objext conftest$ac_exeext
1941
  if { { ac_try="$ac_link"
1942
case "(($ac_try" in
1943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944
  *) ac_try_echo=$ac_try;;
1945
esac
1946
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947
$as_echo "$ac_try_echo"; } >&5
1948
  (eval "$ac_link") 2>conftest.err
1949
  ac_status=$?
1950
  if test -s conftest.err; then
1951
    grep -v '^ *+' conftest.err >conftest.er1
1952
    cat conftest.er1 >&5
1953
    mv -f conftest.er1 conftest.err
1954
  fi
1955
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956
  test $ac_status = 0; } && {
1957
         test -z "$ac_c_werror_flag" ||
1958
         test ! -s conftest.err
1959
       } && test -s conftest$ac_exeext && {
1960
         test "$cross_compiling" = yes ||
1961
         $as_test_x conftest$ac_exeext
1962
       }; then :
1963
  ac_retval=0
1964
else
1965
  $as_echo "$as_me: failed program was:" >&5
1966
sed 's/^/| /' conftest.$ac_ext >&5
1967
 
1968
        ac_retval=1
1969
fi
1970
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972
  # interfere with the next link command; also delete a directory that is
1973
  # left behind by Apple's compiler.  We do this before executing the actions.
1974
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
  as_fn_set_status $ac_retval
1977
 
1978
} # ac_fn_c_try_link
1979
 
1980
# ac_fn_c_check_func LINENO FUNC VAR
1981
# ----------------------------------
1982
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1983
ac_fn_c_check_func ()
1984
{
1985
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987
$as_echo_n "checking for $2... " >&6; }
1988
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1989
  $as_echo_n "(cached) " >&6
1990
else
1991
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992
/* end confdefs.h.  */
1993
/* Define $2 to an innocuous variant, in case  declares $2.
1994
   For example, HP-UX 11i  declares gettimeofday.  */
1995
#define $2 innocuous_$2
1996
 
1997
/* System header to define __stub macros and hopefully few prototypes,
1998
    which can conflict with char $2 (); below.
1999
    Prefer  to  if __STDC__ is defined, since
2000
     exists even on freestanding compilers.  */
2001
 
2002
#ifdef __STDC__
2003
# include 
2004
#else
2005
# include 
2006
#endif
2007
 
2008
#undef $2
2009
 
2010
/* Override any GCC internal prototype to avoid an error.
2011
   Use char because int might match the return type of a GCC
2012
   builtin and then its argument prototype would still apply.  */
2013
#ifdef __cplusplus
2014
extern "C"
2015
#endif
2016
char $2 ();
2017
/* The GNU C library defines this for functions which it implements
2018
    to always fail with ENOSYS.  Some functions are actually named
2019
    something starting with __ and the normal name is an alias.  */
2020
#if defined __stub_$2 || defined __stub___$2
2021
choke me
2022
#endif
2023
 
2024
int
2025
main ()
2026
{
2027
return $2 ();
2028
  ;
2029
  return 0;
2030
}
2031
_ACEOF
2032
if ac_fn_c_try_link "$LINENO"; then :
2033
  eval "$3=yes"
2034
else
2035
  eval "$3=no"
2036
fi
2037
rm -f core conftest.err conftest.$ac_objext \
2038
    conftest$ac_exeext conftest.$ac_ext
2039
fi
2040
eval ac_res=\$$3
2041
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042
$as_echo "$ac_res" >&6; }
2043
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
 
2045
} # ac_fn_c_check_func
2046
 
2047
# ac_fn_c_check_decl LINENO SYMBOL VAR
2048
# ------------------------------------
2049
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2050
ac_fn_c_check_decl ()
2051
{
2052
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2054
$as_echo_n "checking whether $2 is declared... " >&6; }
2055
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056
  $as_echo_n "(cached) " >&6
2057
else
2058
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059
/* end confdefs.h.  */
2060
$4
2061
int
2062
main ()
2063
{
2064
#ifndef $2
2065
  (void) $2;
2066
#endif
2067
 
2068
  ;
2069
  return 0;
2070
}
2071
_ACEOF
2072
if ac_fn_c_try_compile "$LINENO"; then :
2073
  eval "$3=yes"
2074
else
2075
  eval "$3=no"
2076
fi
2077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078
fi
2079
eval ac_res=\$$3
2080
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081
$as_echo "$ac_res" >&6; }
2082
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083
 
2084
} # ac_fn_c_check_decl
2085
 
2086
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2087
# -------------------------------------------
2088
# Tests whether TYPE exists after having included INCLUDES, setting cache
2089
# variable VAR accordingly.
2090
ac_fn_c_check_type ()
2091
{
2092
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094
$as_echo_n "checking for $2... " >&6; }
2095
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2096
  $as_echo_n "(cached) " >&6
2097
else
2098
  eval "$3=no"
2099
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100
/* end confdefs.h.  */
2101
$4
2102
int
2103
main ()
2104
{
2105
if (sizeof ($2))
2106
         return 0;
2107
  ;
2108
  return 0;
2109
}
2110
_ACEOF
2111
if ac_fn_c_try_compile "$LINENO"; then :
2112
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113
/* end confdefs.h.  */
2114
$4
2115
int
2116
main ()
2117
{
2118
if (sizeof (($2)))
2119
            return 0;
2120
  ;
2121
  return 0;
2122
}
2123
_ACEOF
2124
if ac_fn_c_try_compile "$LINENO"; then :
2125
 
2126
else
2127
  eval "$3=yes"
2128
fi
2129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130
fi
2131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132
fi
2133
eval ac_res=\$$3
2134
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135
$as_echo "$ac_res" >&6; }
2136
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137
 
2138
} # ac_fn_c_check_type
2139
 
2140
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141
# --------------------------------------------
2142
# Tries to find the compile-time value of EXPR in a program that includes
2143
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2144
# computed
2145
ac_fn_c_compute_int ()
2146
{
2147
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148
  if test "$cross_compiling" = yes; then
2149
    # Depending upon the size, compute the lo and hi bounds.
2150
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151
/* end confdefs.h.  */
2152
$4
2153
int
2154
main ()
2155
{
2156
static int test_array [1 - 2 * !(($2) >= 0)];
2157
test_array [0] = 0
2158
 
2159
  ;
2160
  return 0;
2161
}
2162
_ACEOF
2163
if ac_fn_c_try_compile "$LINENO"; then :
2164
  ac_lo=0 ac_mid=0
2165
  while :; do
2166
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167
/* end confdefs.h.  */
2168
$4
2169
int
2170
main ()
2171
{
2172
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2173
test_array [0] = 0
2174
 
2175
  ;
2176
  return 0;
2177
}
2178
_ACEOF
2179
if ac_fn_c_try_compile "$LINENO"; then :
2180
  ac_hi=$ac_mid; break
2181
else
2182
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2183
                        if test $ac_lo -le $ac_mid; then
2184
                          ac_lo= ac_hi=
2185
                          break
2186
                        fi
2187
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2188
fi
2189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190
  done
2191
else
2192
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193
/* end confdefs.h.  */
2194
$4
2195
int
2196
main ()
2197
{
2198
static int test_array [1 - 2 * !(($2) < 0)];
2199
test_array [0] = 0
2200
 
2201
  ;
2202
  return 0;
2203
}
2204
_ACEOF
2205
if ac_fn_c_try_compile "$LINENO"; then :
2206
  ac_hi=-1 ac_mid=-1
2207
  while :; do
2208
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209
/* end confdefs.h.  */
2210
$4
2211
int
2212
main ()
2213
{
2214
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2215
test_array [0] = 0
2216
 
2217
  ;
2218
  return 0;
2219
}
2220
_ACEOF
2221
if ac_fn_c_try_compile "$LINENO"; then :
2222
  ac_lo=$ac_mid; break
2223
else
2224
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2225
                        if test $ac_mid -le $ac_hi; then
2226
                          ac_lo= ac_hi=
2227
                          break
2228
                        fi
2229
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230
fi
2231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232
  done
2233
else
2234
  ac_lo= ac_hi=
2235
fi
2236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237
fi
2238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239
# Binary search between lo and hi bounds.
2240
while test "x$ac_lo" != "x$ac_hi"; do
2241
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243
/* end confdefs.h.  */
2244
$4
2245
int
2246
main ()
2247
{
2248
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249
test_array [0] = 0
2250
 
2251
  ;
2252
  return 0;
2253
}
2254
_ACEOF
2255
if ac_fn_c_try_compile "$LINENO"; then :
2256
  ac_hi=$ac_mid
2257
else
2258
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2259
fi
2260
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261
done
2262
case $ac_lo in #((
2263
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2264
'') ac_retval=1 ;;
2265
esac
2266
  else
2267
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268
/* end confdefs.h.  */
2269
$4
2270
static long int longval () { return $2; }
2271
static unsigned long int ulongval () { return $2; }
2272
#include 
2273
#include 
2274
int
2275
main ()
2276
{
2277
 
2278
  FILE *f = fopen ("conftest.val", "w");
2279
  if (! f)
2280
    return 1;
2281
  if (($2) < 0)
2282
    {
2283
      long int i = longval ();
2284
      if (i != ($2))
2285
        return 1;
2286
      fprintf (f, "%ld", i);
2287
    }
2288
  else
2289
    {
2290
      unsigned long int i = ulongval ();
2291
      if (i != ($2))
2292
        return 1;
2293
      fprintf (f, "%lu", i);
2294
    }
2295
  /* Do not output a trailing newline, as this causes \r\n confusion
2296
     on some platforms.  */
2297
  return ferror (f) || fclose (f) != 0;
2298
 
2299
  ;
2300
  return 0;
2301
}
2302
_ACEOF
2303
if ac_fn_c_try_run "$LINENO"; then :
2304
  echo >>conftest.val; read $3 
2305
else
2306
  ac_retval=1
2307
fi
2308
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2309
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2310
rm -f conftest.val
2311
 
2312
  fi
2313
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314
  as_fn_set_status $ac_retval
2315
 
2316
} # ac_fn_c_compute_int
2317 19 jeremybenn
cat >config.log <<_ACEOF
2318
This file contains any messages produced by compilers while
2319
running configure, to aid debugging if configure makes a mistake.
2320
 
2321 96 jeremybenn
It was created by or1ksim $as_me 2010-05-02, which was
2322
generated by GNU Autoconf 2.65.  Invocation command line was
2323 19 jeremybenn
 
2324
  $ $0 $@
2325
 
2326
_ACEOF
2327
exec 5>>config.log
2328
{
2329
cat <<_ASUNAME
2330
## --------- ##
2331
## Platform. ##
2332
## --------- ##
2333
 
2334
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2335
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2336
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2337
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2338
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2339
 
2340
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2341
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2342
 
2343
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2344
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2345
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2346
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2347
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2348
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2349
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2350
 
2351
_ASUNAME
2352
 
2353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354
for as_dir in $PATH
2355
do
2356
  IFS=$as_save_IFS
2357
  test -z "$as_dir" && as_dir=.
2358 96 jeremybenn
    $as_echo "PATH: $as_dir"
2359
  done
2360 19 jeremybenn
IFS=$as_save_IFS
2361
 
2362
} >&5
2363
 
2364
cat >&5 <<_ACEOF
2365
 
2366
 
2367
## ----------- ##
2368
## Core tests. ##
2369
## ----------- ##
2370
 
2371
_ACEOF
2372
 
2373
 
2374
# Keep a trace of the command line.
2375
# Strip out --no-create and --no-recursion so they do not pile up.
2376
# Strip out --silent because we don't want to record it for future runs.
2377
# Also quote any args containing shell meta-characters.
2378
# Make two passes to allow for proper duplicate-argument suppression.
2379
ac_configure_args=
2380
ac_configure_args0=
2381
ac_configure_args1=
2382
ac_must_keep_next=false
2383
for ac_pass in 1 2
2384
do
2385
  for ac_arg
2386
  do
2387
    case $ac_arg in
2388
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2389
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2390
    | -silent | --silent | --silen | --sile | --sil)
2391
      continue ;;
2392
    *\'*)
2393 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2394 19 jeremybenn
    esac
2395
    case $ac_pass in
2396 96 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2397 19 jeremybenn
    2)
2398 96 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2399 19 jeremybenn
      if test $ac_must_keep_next = true; then
2400
        ac_must_keep_next=false # Got value, back to normal.
2401
      else
2402
        case $ac_arg in
2403
          *=* | --config-cache | -C | -disable-* | --disable-* \
2404
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2405
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2406
          | -with-* | --with-* | -without-* | --without-* | --x)
2407
            case "$ac_configure_args0 " in
2408
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2409
            esac
2410
            ;;
2411
          -* ) ac_must_keep_next=true ;;
2412
        esac
2413
      fi
2414 96 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2415 19 jeremybenn
      ;;
2416
    esac
2417
  done
2418
done
2419 96 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2420
{ ac_configure_args1=; unset ac_configure_args1;}
2421 19 jeremybenn
 
2422
# When interrupted or exit'd, cleanup temporary files, and complete
2423
# config.log.  We remove comments because anyway the quotes in there
2424
# would cause problems or look ugly.
2425
# WARNING: Use '\'' to represent an apostrophe within the trap.
2426
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2427
trap 'exit_status=$?
2428
  # Save into config.log some information that might help in debugging.
2429
  {
2430
    echo
2431
 
2432
    cat <<\_ASBOX
2433
## ---------------- ##
2434
## Cache variables. ##
2435
## ---------------- ##
2436
_ASBOX
2437
    echo
2438
    # The following way of writing the cache mishandles newlines in values,
2439
(
2440
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2441
    eval ac_val=\$$ac_var
2442
    case $ac_val in #(
2443
    *${as_nl}*)
2444
      case $ac_var in #(
2445 96 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2446 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2447 19 jeremybenn
      esac
2448
      case $ac_var in #(
2449
      _ | IFS | as_nl) ;; #(
2450 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2451 96 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2452 19 jeremybenn
      esac ;;
2453
    esac
2454
  done
2455
  (set) 2>&1 |
2456
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2457
    *${as_nl}ac_space=\ *)
2458
      sed -n \
2459
        "s/'\''/'\''\\\\'\'''\''/g;
2460
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2461
      ;; #(
2462
    *)
2463
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464
      ;;
2465
    esac |
2466
    sort
2467
)
2468
    echo
2469
 
2470
    cat <<\_ASBOX
2471
## ----------------- ##
2472
## Output variables. ##
2473
## ----------------- ##
2474
_ASBOX
2475
    echo
2476
    for ac_var in $ac_subst_vars
2477
    do
2478
      eval ac_val=\$$ac_var
2479
      case $ac_val in
2480 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 19 jeremybenn
      esac
2482 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2483 19 jeremybenn
    done | sort
2484
    echo
2485
 
2486
    if test -n "$ac_subst_files"; then
2487
      cat <<\_ASBOX
2488
## ------------------- ##
2489
## File substitutions. ##
2490
## ------------------- ##
2491
_ASBOX
2492
      echo
2493
      for ac_var in $ac_subst_files
2494
      do
2495
        eval ac_val=\$$ac_var
2496
        case $ac_val in
2497 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2498 19 jeremybenn
        esac
2499 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2500 19 jeremybenn
      done | sort
2501
      echo
2502
    fi
2503
 
2504
    if test -s confdefs.h; then
2505
      cat <<\_ASBOX
2506
## ----------- ##
2507
## confdefs.h. ##
2508
## ----------- ##
2509
_ASBOX
2510
      echo
2511
      cat confdefs.h
2512
      echo
2513
    fi
2514
    test "$ac_signal" != 0 &&
2515 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2516
    $as_echo "$as_me: exit $exit_status"
2517 19 jeremybenn
  } >&5
2518
  rm -f core *.core core.conftest.* &&
2519
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2520
    exit $exit_status
2521
' 0
2522
for ac_signal in 1 2 13 15; do
2523 96 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2524 19 jeremybenn
done
2525
ac_signal=0
2526
 
2527
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2528
rm -f -r conftest* confdefs.h
2529
 
2530 96 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2531
 
2532 19 jeremybenn
# Predefined preprocessor variables.
2533
 
2534
cat >>confdefs.h <<_ACEOF
2535
#define PACKAGE_NAME "$PACKAGE_NAME"
2536
_ACEOF
2537
 
2538
cat >>confdefs.h <<_ACEOF
2539
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2540
_ACEOF
2541
 
2542
cat >>confdefs.h <<_ACEOF
2543
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2544
_ACEOF
2545
 
2546
cat >>confdefs.h <<_ACEOF
2547
#define PACKAGE_STRING "$PACKAGE_STRING"
2548
_ACEOF
2549
 
2550
cat >>confdefs.h <<_ACEOF
2551
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2552
_ACEOF
2553
 
2554 96 jeremybenn
cat >>confdefs.h <<_ACEOF
2555
#define PACKAGE_URL "$PACKAGE_URL"
2556
_ACEOF
2557 19 jeremybenn
 
2558 96 jeremybenn
 
2559 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2560 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2561
ac_site_file1=NONE
2562
ac_site_file2=NONE
2563 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2564 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
2565 19 jeremybenn
elif test "x$prefix" != xNONE; then
2566 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2567
  ac_site_file2=$prefix/etc/config.site
2568 19 jeremybenn
else
2569 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2570
  ac_site_file2=$ac_default_prefix/etc/config.site
2571 19 jeremybenn
fi
2572 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573 19 jeremybenn
do
2574 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2575 96 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2579
    . "$ac_site_file"
2580
  fi
2581
done
2582
 
2583
if test -r "$cache_file"; then
2584 96 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2585
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2586
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2587
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2588 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2589 19 jeremybenn
    case $cache_file in
2590
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2591
      *)                      . "./$cache_file";;
2592
    esac
2593
  fi
2594
else
2595 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2596 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2597 19 jeremybenn
  >$cache_file
2598
fi
2599
 
2600
# Check that the precious variables saved in the cache have kept the same
2601
# value.
2602
ac_cache_corrupted=false
2603
for ac_var in $ac_precious_vars; do
2604
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605
  eval ac_new_set=\$ac_env_${ac_var}_set
2606
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607
  eval ac_new_val=\$ac_env_${ac_var}_value
2608
  case $ac_old_set,$ac_new_set in
2609
    set,)
2610 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 19 jeremybenn
      ac_cache_corrupted=: ;;
2613
    ,set)
2614 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 19 jeremybenn
      ac_cache_corrupted=: ;;
2617
    ,);;
2618
    *)
2619
      if test "x$ac_old_val" != "x$ac_new_val"; then
2620 82 jeremybenn
        # differences in whitespace do not lead to failure.
2621
        ac_old_val_w=`echo x $ac_old_val`
2622
        ac_new_val_w=`echo x $ac_new_val`
2623
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 96 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626
          ac_cache_corrupted=:
2627
        else
2628 96 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630
          eval $ac_var=\$ac_old_val
2631
        fi
2632 96 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2633 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2634 96 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2635 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2636 19 jeremybenn
      fi;;
2637
  esac
2638
  # Pass precious variables to config.status.
2639
  if test "$ac_new_set" = set; then
2640
    case $ac_new_val in
2641 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2643
    esac
2644
    case " $ac_configure_args " in
2645
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2646 96 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 19 jeremybenn
    esac
2648
  fi
2649
done
2650
if $ac_cache_corrupted; then
2651 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 96 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656 19 jeremybenn
fi
2657 96 jeremybenn
## -------------------- ##
2658
## Main body of script. ##
2659
## -------------------- ##
2660 19 jeremybenn
 
2661
ac_ext=c
2662
ac_cpp='$CPP $CPPFLAGS'
2663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
 
2667
 
2668
 
2669 82 jeremybenn
 
2670 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2671 19 jeremybenn
ac_ext=c
2672
ac_cpp='$CPP $CPPFLAGS'
2673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
if test -n "$ac_tool_prefix"; then
2677
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2681 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2682 82 jeremybenn
  $as_echo_n "(cached) " >&6
2683 19 jeremybenn
else
2684
  if test -n "$CC"; then
2685
  ac_cv_prog_CC="$CC" # Let the user override the test.
2686
else
2687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688
for as_dir in $PATH
2689
do
2690
  IFS=$as_save_IFS
2691
  test -z "$as_dir" && as_dir=.
2692 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2693 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 19 jeremybenn
    break 2
2697
  fi
2698
done
2699 96 jeremybenn
  done
2700 19 jeremybenn
IFS=$as_save_IFS
2701
 
2702
fi
2703
fi
2704
CC=$ac_cv_prog_CC
2705
if test -n "$CC"; then
2706 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 82 jeremybenn
$as_echo "$CC" >&6; }
2708 19 jeremybenn
else
2709 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 82 jeremybenn
$as_echo "no" >&6; }
2711 19 jeremybenn
fi
2712
 
2713
 
2714
fi
2715
if test -z "$ac_cv_prog_CC"; then
2716
  ac_ct_CC=$CC
2717
  # Extract the first word of "gcc", so it can be a program name with args.
2718
set dummy gcc; ac_word=$2
2719 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2721 96 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2722 82 jeremybenn
  $as_echo_n "(cached) " >&6
2723 19 jeremybenn
else
2724
  if test -n "$ac_ct_CC"; then
2725
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726
else
2727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728
for as_dir in $PATH
2729
do
2730
  IFS=$as_save_IFS
2731
  test -z "$as_dir" && as_dir=.
2732 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2733 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734
    ac_cv_prog_ac_ct_CC="gcc"
2735 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 19 jeremybenn
    break 2
2737
  fi
2738
done
2739 96 jeremybenn
  done
2740 19 jeremybenn
IFS=$as_save_IFS
2741
 
2742
fi
2743
fi
2744
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745
if test -n "$ac_ct_CC"; then
2746 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2748 19 jeremybenn
else
2749 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 82 jeremybenn
$as_echo "no" >&6; }
2751 19 jeremybenn
fi
2752
 
2753
  if test "x$ac_ct_CC" = x; then
2754
    CC=""
2755
  else
2756
    case $cross_compiling:$ac_tool_warned in
2757
yes:)
2758 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 19 jeremybenn
ac_tool_warned=yes ;;
2761
esac
2762
    CC=$ac_ct_CC
2763
  fi
2764
else
2765
  CC="$ac_cv_prog_CC"
2766
fi
2767
 
2768
if test -z "$CC"; then
2769
          if test -n "$ac_tool_prefix"; then
2770
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771
set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2774 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2775 82 jeremybenn
  $as_echo_n "(cached) " >&6
2776 19 jeremybenn
else
2777
  if test -n "$CC"; then
2778
  ac_cv_prog_CC="$CC" # Let the user override the test.
2779
else
2780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781
for as_dir in $PATH
2782
do
2783
  IFS=$as_save_IFS
2784
  test -z "$as_dir" && as_dir=.
2785 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2786 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 19 jeremybenn
    break 2
2790
  fi
2791
done
2792 96 jeremybenn
  done
2793 19 jeremybenn
IFS=$as_save_IFS
2794
 
2795
fi
2796
fi
2797
CC=$ac_cv_prog_CC
2798
if test -n "$CC"; then
2799 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 82 jeremybenn
$as_echo "$CC" >&6; }
2801 19 jeremybenn
else
2802 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 82 jeremybenn
$as_echo "no" >&6; }
2804 19 jeremybenn
fi
2805
 
2806
 
2807
  fi
2808
fi
2809
if test -z "$CC"; then
2810
  # Extract the first word of "cc", so it can be a program name with args.
2811
set dummy cc; ac_word=$2
2812 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2814 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2815 82 jeremybenn
  $as_echo_n "(cached) " >&6
2816 19 jeremybenn
else
2817
  if test -n "$CC"; then
2818
  ac_cv_prog_CC="$CC" # Let the user override the test.
2819
else
2820
  ac_prog_rejected=no
2821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822
for as_dir in $PATH
2823
do
2824
  IFS=$as_save_IFS
2825
  test -z "$as_dir" && as_dir=.
2826 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2827 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829
       ac_prog_rejected=yes
2830
       continue
2831
     fi
2832
    ac_cv_prog_CC="cc"
2833 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 19 jeremybenn
    break 2
2835
  fi
2836
done
2837 96 jeremybenn
  done
2838 19 jeremybenn
IFS=$as_save_IFS
2839
 
2840
if test $ac_prog_rejected = yes; then
2841
  # We found a bogon in the path, so make sure we never use it.
2842
  set dummy $ac_cv_prog_CC
2843
  shift
2844
  if test $# != 0; then
2845
    # We chose a different compiler from the bogus one.
2846
    # However, it has the same basename, so the bogon will be chosen
2847
    # first if we set CC to just the basename; use the full file name.
2848
    shift
2849
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850
  fi
2851
fi
2852
fi
2853
fi
2854
CC=$ac_cv_prog_CC
2855
if test -n "$CC"; then
2856 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 82 jeremybenn
$as_echo "$CC" >&6; }
2858 19 jeremybenn
else
2859 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 82 jeremybenn
$as_echo "no" >&6; }
2861 19 jeremybenn
fi
2862
 
2863
 
2864
fi
2865
if test -z "$CC"; then
2866
  if test -n "$ac_tool_prefix"; then
2867
  for ac_prog in cl.exe
2868
  do
2869
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2873 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2874 82 jeremybenn
  $as_echo_n "(cached) " >&6
2875 19 jeremybenn
else
2876
  if test -n "$CC"; then
2877
  ac_cv_prog_CC="$CC" # Let the user override the test.
2878
else
2879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880
for as_dir in $PATH
2881
do
2882
  IFS=$as_save_IFS
2883
  test -z "$as_dir" && as_dir=.
2884 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2885 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 19 jeremybenn
    break 2
2889
  fi
2890
done
2891 96 jeremybenn
  done
2892 19 jeremybenn
IFS=$as_save_IFS
2893
 
2894
fi
2895
fi
2896
CC=$ac_cv_prog_CC
2897
if test -n "$CC"; then
2898 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 82 jeremybenn
$as_echo "$CC" >&6; }
2900 19 jeremybenn
else
2901 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 82 jeremybenn
$as_echo "no" >&6; }
2903 19 jeremybenn
fi
2904
 
2905
 
2906
    test -n "$CC" && break
2907
  done
2908
fi
2909
if test -z "$CC"; then
2910
  ac_ct_CC=$CC
2911
  for ac_prog in cl.exe
2912
do
2913
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2914
set dummy $ac_prog; ac_word=$2
2915 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2917 96 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2918 82 jeremybenn
  $as_echo_n "(cached) " >&6
2919 19 jeremybenn
else
2920
  if test -n "$ac_ct_CC"; then
2921
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922
else
2923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924
for as_dir in $PATH
2925
do
2926
  IFS=$as_save_IFS
2927
  test -z "$as_dir" && as_dir=.
2928 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2929 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930
    ac_cv_prog_ac_ct_CC="$ac_prog"
2931 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 19 jeremybenn
    break 2
2933
  fi
2934
done
2935 96 jeremybenn
  done
2936 19 jeremybenn
IFS=$as_save_IFS
2937
 
2938
fi
2939
fi
2940
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941
if test -n "$ac_ct_CC"; then
2942 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2944 19 jeremybenn
else
2945 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 82 jeremybenn
$as_echo "no" >&6; }
2947 19 jeremybenn
fi
2948
 
2949
 
2950
  test -n "$ac_ct_CC" && break
2951
done
2952
 
2953
  if test "x$ac_ct_CC" = x; then
2954
    CC=""
2955
  else
2956
    case $cross_compiling:$ac_tool_warned in
2957
yes:)
2958 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 19 jeremybenn
ac_tool_warned=yes ;;
2961
esac
2962
    CC=$ac_ct_CC
2963
  fi
2964
fi
2965
 
2966
fi
2967
 
2968
 
2969 96 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 96 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2972
See \`config.log' for more details." "$LINENO" 5; }
2973 19 jeremybenn
 
2974
# Provide some information about the compiler.
2975 96 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976 82 jeremybenn
set X $ac_compile
2977
ac_compiler=$2
2978 96 jeremybenn
for ac_option in --version -v -V -qversion; do
2979
  { { ac_try="$ac_compiler $ac_option >&5"
2980 19 jeremybenn
case "(($ac_try" in
2981
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982
  *) ac_try_echo=$ac_try;;
2983
esac
2984 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985
$as_echo "$ac_try_echo"; } >&5
2986
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 19 jeremybenn
  ac_status=$?
2988 96 jeremybenn
  if test -s conftest.err; then
2989
    sed '10a\
2990
... rest of stderr output deleted ...
2991
         10q' conftest.err >conftest.er1
2992
    cat conftest.er1 >&5
2993
  fi
2994
  rm -f conftest.er1 conftest.err
2995
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996
  test $ac_status = 0; }
2997
done
2998 19 jeremybenn
 
2999 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 19 jeremybenn
/* end confdefs.h.  */
3001
 
3002
int
3003
main ()
3004
{
3005
 
3006
  ;
3007
  return 0;
3008
}
3009
_ACEOF
3010
ac_clean_files_save=$ac_clean_files
3011 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3013
# It will help us diagnose broken compilers, and finding out an intuition
3014
# of exeext.
3015 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016
$as_echo_n "checking whether the C compiler works... " >&6; }
3017 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
 
3019
# The possible output files:
3020
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3021
 
3022 19 jeremybenn
ac_rmfiles=
3023
for ac_file in $ac_files
3024
do
3025
  case $ac_file in
3026 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028
  esac
3029
done
3030
rm -f $ac_rmfiles
3031
 
3032 96 jeremybenn
if { { ac_try="$ac_link_default"
3033 19 jeremybenn
case "(($ac_try" in
3034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035
  *) ac_try_echo=$ac_try;;
3036
esac
3037 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038
$as_echo "$ac_try_echo"; } >&5
3039 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3040
  ac_status=$?
3041 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042
  test $ac_status = 0; }; then :
3043 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3046
# so that the user can short-circuit this test for compilers unknown to
3047
# Autoconf.
3048
for ac_file in $ac_files ''
3049
do
3050
  test -f "$ac_file" || continue
3051
  case $ac_file in
3052 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3053 19 jeremybenn
        ;;
3054
    [ab].out )
3055
        # We found the default executable, but exeext='' is most
3056
        # certainly right.
3057
        break;;
3058
    *.* )
3059 96 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060 19 jeremybenn
        then :; else
3061
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062
        fi
3063
        # We set ac_cv_exeext here because the later test for it is not
3064
        # safe: cross compilers may not add the suffix if given an `-o'
3065
        # argument, so we may need to know it at that point already.
3066
        # Even if this section looks crufty: it has the advantage of
3067
        # actually working.
3068
        break;;
3069
    * )
3070
        break;;
3071
  esac
3072
done
3073
test "$ac_cv_exeext" = no && ac_cv_exeext=
3074
 
3075
else
3076
  ac_file=''
3077
fi
3078 96 jeremybenn
if test -z "$ac_file"; then :
3079
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080
$as_echo "no" >&6; }
3081
$as_echo "$as_me: failed program was:" >&5
3082 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3083
 
3084 96 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 96 jeremybenn
{ as_fn_set_status 77
3087
as_fn_error "C compiler cannot create executables
3088
See \`config.log' for more details." "$LINENO" 5; }; }
3089
else
3090
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091
$as_echo "yes" >&6; }
3092 19 jeremybenn
fi
3093 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3094
$as_echo_n "checking for C compiler default output file name... " >&6; }
3095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3096
$as_echo "$ac_file" >&6; }
3097 19 jeremybenn
ac_exeext=$ac_cv_exeext
3098
 
3099 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3100 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3101 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3102 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3103 96 jeremybenn
if { { ac_try="$ac_link"
3104 19 jeremybenn
case "(($ac_try" in
3105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106
  *) ac_try_echo=$ac_try;;
3107
esac
3108 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109
$as_echo "$ac_try_echo"; } >&5
3110 19 jeremybenn
  (eval "$ac_link") 2>&5
3111
  ac_status=$?
3112 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113
  test $ac_status = 0; }; then :
3114 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3115
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3116
# work properly (i.e., refer to `conftest.exe'), while it won't with
3117
# `rm'.
3118
for ac_file in conftest.exe conftest conftest.*; do
3119
  test -f "$ac_file" || continue
3120
  case $ac_file in
3121 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3122 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123
          break;;
3124
    * ) break;;
3125
  esac
3126
done
3127
else
3128 96 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 96 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
3131
See \`config.log' for more details." "$LINENO" 5; }
3132 19 jeremybenn
fi
3133 96 jeremybenn
rm -f conftest conftest$ac_cv_exeext
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3135 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3136 19 jeremybenn
 
3137
rm -f conftest.$ac_ext
3138
EXEEXT=$ac_cv_exeext
3139
ac_exeext=$EXEEXT
3140 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141
/* end confdefs.h.  */
3142
#include 
3143
int
3144
main ()
3145
{
3146
FILE *f = fopen ("conftest.out", "w");
3147
 return ferror (f) || fclose (f) != 0;
3148
 
3149
  ;
3150
  return 0;
3151
}
3152
_ACEOF
3153
ac_clean_files="$ac_clean_files conftest.out"
3154
# Check that the compiler produces executables we can run.  If not, either
3155
# the compiler is broken, or we cross compile.
3156
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3157
$as_echo_n "checking whether we are cross compiling... " >&6; }
3158
if test "$cross_compiling" != yes; then
3159
  { { ac_try="$ac_link"
3160
case "(($ac_try" in
3161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162
  *) ac_try_echo=$ac_try;;
3163
esac
3164
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165
$as_echo "$ac_try_echo"; } >&5
3166
  (eval "$ac_link") 2>&5
3167
  ac_status=$?
3168
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169
  test $ac_status = 0; }
3170
  if { ac_try='./conftest$ac_cv_exeext'
3171
  { { case "(($ac_try" in
3172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173
  *) ac_try_echo=$ac_try;;
3174
esac
3175
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176
$as_echo "$ac_try_echo"; } >&5
3177
  (eval "$ac_try") 2>&5
3178
  ac_status=$?
3179
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180
  test $ac_status = 0; }; }; then
3181
    cross_compiling=no
3182
  else
3183
    if test "$cross_compiling" = maybe; then
3184
        cross_compiling=yes
3185
    else
3186
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188
as_fn_error "cannot run C compiled programs.
3189
If you meant to cross compile, use \`--host'.
3190
See \`config.log' for more details." "$LINENO" 5; }
3191
    fi
3192
  fi
3193
fi
3194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3195
$as_echo "$cross_compiling" >&6; }
3196
 
3197
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3198
ac_clean_files=$ac_clean_files_save
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3200 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3201 96 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3202 82 jeremybenn
  $as_echo_n "(cached) " >&6
3203 19 jeremybenn
else
3204 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 19 jeremybenn
/* end confdefs.h.  */
3206
 
3207
int
3208
main ()
3209
{
3210
 
3211
  ;
3212
  return 0;
3213
}
3214
_ACEOF
3215
rm -f conftest.o conftest.obj
3216 96 jeremybenn
if { { ac_try="$ac_compile"
3217 19 jeremybenn
case "(($ac_try" in
3218
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219
  *) ac_try_echo=$ac_try;;
3220
esac
3221 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222
$as_echo "$ac_try_echo"; } >&5
3223 19 jeremybenn
  (eval "$ac_compile") 2>&5
3224
  ac_status=$?
3225 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226
  test $ac_status = 0; }; then :
3227 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3228
  test -f "$ac_file" || continue;
3229
  case $ac_file in
3230 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3231 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3232
       break;;
3233
  esac
3234
done
3235
else
3236 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3237 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3238
 
3239 96 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 96 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3242
See \`config.log' for more details." "$LINENO" 5; }
3243 19 jeremybenn
fi
3244
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245
fi
3246 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3247 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3248 19 jeremybenn
OBJEXT=$ac_cv_objext
3249
ac_objext=$OBJEXT
3250 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3251 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3252 96 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3253 82 jeremybenn
  $as_echo_n "(cached) " >&6
3254 19 jeremybenn
else
3255 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 19 jeremybenn
/* end confdefs.h.  */
3257
 
3258
int
3259
main ()
3260
{
3261
#ifndef __GNUC__
3262
       choke me
3263
#endif
3264
 
3265
  ;
3266
  return 0;
3267
}
3268
_ACEOF
3269 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3270 19 jeremybenn
  ac_compiler_gnu=yes
3271
else
3272 96 jeremybenn
  ac_compiler_gnu=no
3273 19 jeremybenn
fi
3274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3276
 
3277
fi
3278 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3279 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3280
if test $ac_compiler_gnu = yes; then
3281
  GCC=yes
3282
else
3283
  GCC=
3284
fi
3285 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3286
ac_save_CFLAGS=$CFLAGS
3287 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3288 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3289 96 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3290 82 jeremybenn
  $as_echo_n "(cached) " >&6
3291 19 jeremybenn
else
3292
  ac_save_c_werror_flag=$ac_c_werror_flag
3293
   ac_c_werror_flag=yes
3294
   ac_cv_prog_cc_g=no
3295
   CFLAGS="-g"
3296 96 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 19 jeremybenn
/* end confdefs.h.  */
3298
 
3299
int
3300
main ()
3301
{
3302
 
3303
  ;
3304
  return 0;
3305
}
3306
_ACEOF
3307 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3308 19 jeremybenn
  ac_cv_prog_cc_g=yes
3309
else
3310 96 jeremybenn
  CFLAGS=""
3311
      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 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3323
 
3324 19 jeremybenn
else
3325 96 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3326 19 jeremybenn
         CFLAGS="-g"
3327 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 19 jeremybenn
/* end confdefs.h.  */
3329
 
3330
int
3331
main ()
3332
{
3333
 
3334
  ;
3335
  return 0;
3336
}
3337
_ACEOF
3338 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3339 19 jeremybenn
  ac_cv_prog_cc_g=yes
3340
fi
3341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342
fi
3343
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344
fi
3345
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346
   ac_c_werror_flag=$ac_save_c_werror_flag
3347
fi
3348 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3349 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3350 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3351
  CFLAGS=$ac_save_CFLAGS
3352
elif test $ac_cv_prog_cc_g = yes; then
3353
  if test "$GCC" = yes; then
3354
    CFLAGS="-g -O2"
3355
  else
3356
    CFLAGS="-g"
3357
  fi
3358
else
3359
  if test "$GCC" = yes; then
3360
    CFLAGS="-O2"
3361
  else
3362
    CFLAGS=
3363
  fi
3364
fi
3365 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3366 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3367 96 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3368 82 jeremybenn
  $as_echo_n "(cached) " >&6
3369 19 jeremybenn
else
3370
  ac_cv_prog_cc_c89=no
3371
ac_save_CC=$CC
3372 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 19 jeremybenn
/* end confdefs.h.  */
3374
#include 
3375
#include 
3376
#include 
3377
#include 
3378
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3379
struct buf { int x; };
3380
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3381
static char *e (p, i)
3382
     char **p;
3383
     int i;
3384
{
3385
  return p[i];
3386
}
3387
static char *f (char * (*g) (char **, int), char **p, ...)
3388
{
3389
  char *s;
3390
  va_list v;
3391
  va_start (v,p);
3392
  s = g (p, va_arg (v,int));
3393
  va_end (v);
3394
  return s;
3395
}
3396
 
3397
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3398
   function prototypes and stuff, but not '\xHH' hex character constants.
3399
   These don't provoke an error unfortunately, instead are silently treated
3400
   as 'x'.  The following induces an error, until -std is added to get
3401
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3402
   array size at least.  It's necessary to write '\x00'==0 to get something
3403
   that's true only with -std.  */
3404
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405
 
3406
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3407
   inside strings and character constants.  */
3408
#define FOO(x) 'x'
3409
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3410
 
3411
int test (int i, double x);
3412
struct s1 {int (*f) (int a);};
3413
struct s2 {int (*f) (double a);};
3414
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3415
int argc;
3416
char **argv;
3417
int
3418
main ()
3419
{
3420
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3421
  ;
3422
  return 0;
3423
}
3424
_ACEOF
3425
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3426
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427
do
3428
  CC="$ac_save_CC $ac_arg"
3429 96 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3430 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3431
fi
3432
rm -f core conftest.err conftest.$ac_objext
3433
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3434
done
3435
rm -f conftest.$ac_ext
3436
CC=$ac_save_CC
3437
 
3438
fi
3439
# AC_CACHE_VAL
3440
case "x$ac_cv_prog_cc_c89" in
3441
  x)
3442 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3443 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3444 19 jeremybenn
  xno)
3445 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3446 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3447 19 jeremybenn
  *)
3448
    CC="$CC $ac_cv_prog_cc_c89"
3449 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3450 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3451 19 jeremybenn
esac
3452 96 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3453 19 jeremybenn
 
3454 96 jeremybenn
fi
3455 19 jeremybenn
 
3456
ac_ext=c
3457
ac_cpp='$CPP $CPPFLAGS'
3458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
 
3462 91 jeremybenn
 
3463
ac_ext=c
3464
ac_cpp='$CPP $CPPFLAGS'
3465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3468 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3469 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3470
# On Suns, sometimes $CPP names a directory.
3471
if test -n "$CPP" && test -d "$CPP"; then
3472
  CPP=
3473
fi
3474
if test -z "$CPP"; then
3475 96 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
3476 82 jeremybenn
  $as_echo_n "(cached) " >&6
3477 19 jeremybenn
else
3478 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3479
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3480
    do
3481
      ac_preproc_ok=false
3482
for ac_c_preproc_warn_flag in '' yes
3483 19 jeremybenn
do
3484 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3485
  # with a fresh cross-compiler works.
3486
  # Prefer  to  if __STDC__ is defined, since
3487
  #  exists even on freestanding compilers.
3488
  # On the NeXT, cc -E runs the code through the compiler's parser,
3489
  # not just through cpp. "Syntax error" is here to catch this case.
3490 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 91 jeremybenn
/* end confdefs.h.  */
3492
#ifdef __STDC__
3493
# include 
3494
#else
3495
# include 
3496
#endif
3497
                     Syntax error
3498
_ACEOF
3499 96 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3500
 
3501 91 jeremybenn
else
3502
  # Broken: fails on valid input.
3503
continue
3504
fi
3505
rm -f conftest.err conftest.$ac_ext
3506
 
3507
  # OK, works on sane cases.  Now check whether nonexistent headers
3508
  # can be detected and how.
3509 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 91 jeremybenn
/* end confdefs.h.  */
3511
#include 
3512
_ACEOF
3513 96 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3514 91 jeremybenn
  # Broken: success on invalid input.
3515
continue
3516 82 jeremybenn
else
3517 91 jeremybenn
  # Passes both tests.
3518
ac_preproc_ok=:
3519
break
3520 82 jeremybenn
fi
3521 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3522
 
3523
done
3524
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525
rm -f conftest.err conftest.$ac_ext
3526 96 jeremybenn
if $ac_preproc_ok; then :
3527 91 jeremybenn
  break
3528 19 jeremybenn
fi
3529
 
3530 91 jeremybenn
    done
3531
    ac_cv_prog_CPP=$CPP
3532 19 jeremybenn
 
3533 91 jeremybenn
fi
3534
  CPP=$ac_cv_prog_CPP
3535
else
3536
  ac_cv_prog_CPP=$CPP
3537
fi
3538 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3539 91 jeremybenn
$as_echo "$CPP" >&6; }
3540
ac_preproc_ok=false
3541
for ac_c_preproc_warn_flag in '' yes
3542
do
3543
  # Use a header file that comes with gcc, so configuring glibc
3544
  # with a fresh cross-compiler works.
3545
  # Prefer  to  if __STDC__ is defined, since
3546
  #  exists even on freestanding compilers.
3547
  # On the NeXT, cc -E runs the code through the compiler's parser,
3548
  # not just through cpp. "Syntax error" is here to catch this case.
3549 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 91 jeremybenn
/* end confdefs.h.  */
3551
#ifdef __STDC__
3552
# include 
3553
#else
3554
# include 
3555
#endif
3556
                     Syntax error
3557
_ACEOF
3558 96 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3559
 
3560 91 jeremybenn
else
3561
  # Broken: fails on valid input.
3562
continue
3563
fi
3564
rm -f conftest.err conftest.$ac_ext
3565 82 jeremybenn
 
3566 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3567
  # can be detected and how.
3568 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 91 jeremybenn
/* end confdefs.h.  */
3570
#include 
3571
_ACEOF
3572 96 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3573 91 jeremybenn
  # Broken: success on invalid input.
3574
continue
3575
else
3576
  # Passes both tests.
3577
ac_preproc_ok=:
3578
break
3579
fi
3580
rm -f conftest.err conftest.$ac_ext
3581 82 jeremybenn
 
3582 91 jeremybenn
done
3583
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3584
rm -f conftest.err conftest.$ac_ext
3585 96 jeremybenn
if $ac_preproc_ok; then :
3586
 
3587 91 jeremybenn
else
3588 96 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 96 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3591
See \`config.log' for more details." "$LINENO" 5; }
3592 91 jeremybenn
fi
3593 82 jeremybenn
 
3594 91 jeremybenn
ac_ext=c
3595
ac_cpp='$CPP $CPPFLAGS'
3596
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 82 jeremybenn
 
3600
 
3601 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3602 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3603 96 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3604 82 jeremybenn
  $as_echo_n "(cached) " >&6
3605 19 jeremybenn
else
3606 82 jeremybenn
  if test -z "$GREP"; then
3607 19 jeremybenn
  ac_path_GREP_found=false
3608 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3609
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3611
do
3612
  IFS=$as_save_IFS
3613
  test -z "$as_dir" && as_dir=.
3614 96 jeremybenn
    for ac_prog in grep ggrep; do
3615 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3616
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3617
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3618
# Check for GNU ac_path_GREP and select it if it is found.
3619 19 jeremybenn
  # Check for GNU $ac_path_GREP
3620
case `"$ac_path_GREP" --version 2>&1` in
3621
*GNU*)
3622
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3623
*)
3624
  ac_count=0
3625 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3626 19 jeremybenn
  while :
3627
  do
3628
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3629
    mv "conftest.tmp" "conftest.in"
3630
    cp "conftest.in" "conftest.nl"
3631 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3632 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3633
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3634 96 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3635 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3636
      # Best one so far, save it but keep looking for a better one
3637
      ac_cv_path_GREP="$ac_path_GREP"
3638
      ac_path_GREP_max=$ac_count
3639
    fi
3640
    # 10*(2^10) chars as input seems more than enough
3641
    test $ac_count -gt 10 && break
3642
  done
3643
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3644
esac
3645
 
3646 82 jeremybenn
      $ac_path_GREP_found && break 3
3647
    done
3648 19 jeremybenn
  done
3649 96 jeremybenn
  done
3650 19 jeremybenn
IFS=$as_save_IFS
3651 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3652 96 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3653 82 jeremybenn
  fi
3654 19 jeremybenn
else
3655
  ac_cv_path_GREP=$GREP
3656
fi
3657
 
3658
fi
3659 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3660 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3661 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3662
 
3663
 
3664 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3665 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3666 96 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3667 82 jeremybenn
  $as_echo_n "(cached) " >&6
3668 19 jeremybenn
else
3669
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3670
   then ac_cv_path_EGREP="$GREP -E"
3671
   else
3672 82 jeremybenn
     if test -z "$EGREP"; then
3673 19 jeremybenn
  ac_path_EGREP_found=false
3674 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3675
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3677
do
3678
  IFS=$as_save_IFS
3679
  test -z "$as_dir" && as_dir=.
3680 96 jeremybenn
    for ac_prog in egrep; do
3681 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3682
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3683
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3684
# Check for GNU ac_path_EGREP and select it if it is found.
3685 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3686
case `"$ac_path_EGREP" --version 2>&1` in
3687
*GNU*)
3688
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3689
*)
3690
  ac_count=0
3691 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3692 19 jeremybenn
  while :
3693
  do
3694
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3695
    mv "conftest.tmp" "conftest.in"
3696
    cp "conftest.in" "conftest.nl"
3697 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3698 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3699
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3700 96 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3701 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3702
      # Best one so far, save it but keep looking for a better one
3703
      ac_cv_path_EGREP="$ac_path_EGREP"
3704
      ac_path_EGREP_max=$ac_count
3705
    fi
3706
    # 10*(2^10) chars as input seems more than enough
3707
    test $ac_count -gt 10 && break
3708
  done
3709
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3710
esac
3711
 
3712 82 jeremybenn
      $ac_path_EGREP_found && break 3
3713
    done
3714 19 jeremybenn
  done
3715 96 jeremybenn
  done
3716 19 jeremybenn
IFS=$as_save_IFS
3717 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3718 96 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3719 82 jeremybenn
  fi
3720
else
3721
  ac_cv_path_EGREP=$EGREP
3722 19 jeremybenn
fi
3723
 
3724 82 jeremybenn
   fi
3725 19 jeremybenn
fi
3726 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3727 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3728
 EGREP="$ac_cv_path_EGREP"
3729 19 jeremybenn
 
3730 82 jeremybenn
 
3731 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3732 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3733 96 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
3734 91 jeremybenn
  $as_echo_n "(cached) " >&6
3735
else
3736 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 91 jeremybenn
/* end confdefs.h.  */
3738
#include 
3739
#include 
3740
#include 
3741
#include 
3742
 
3743
int
3744
main ()
3745
{
3746
 
3747
  ;
3748
  return 0;
3749
}
3750
_ACEOF
3751 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3752 91 jeremybenn
  ac_cv_header_stdc=yes
3753
else
3754 96 jeremybenn
  ac_cv_header_stdc=no
3755 91 jeremybenn
fi
3756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757
 
3758
if test $ac_cv_header_stdc = yes; then
3759
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3760 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 91 jeremybenn
/* end confdefs.h.  */
3762
#include 
3763
 
3764
_ACEOF
3765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3766 96 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3767
 
3768 91 jeremybenn
else
3769
  ac_cv_header_stdc=no
3770
fi
3771
rm -f conftest*
3772
 
3773
fi
3774
 
3775
if test $ac_cv_header_stdc = yes; then
3776
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3777 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 91 jeremybenn
/* end confdefs.h.  */
3779
#include 
3780
 
3781
_ACEOF
3782
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 96 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3784
 
3785 91 jeremybenn
else
3786
  ac_cv_header_stdc=no
3787
fi
3788
rm -f conftest*
3789
 
3790
fi
3791
 
3792
if test $ac_cv_header_stdc = yes; then
3793
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3794 96 jeremybenn
  if test "$cross_compiling" = yes; then :
3795 91 jeremybenn
  :
3796
else
3797 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 91 jeremybenn
/* end confdefs.h.  */
3799
#include 
3800
#include 
3801
#if ((' ' & 0x0FF) == 0x020)
3802
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3803
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804
#else
3805
# define ISLOWER(c) \
3806
                   (('a' <= (c) && (c) <= 'i') \
3807
                     || ('j' <= (c) && (c) <= 'r') \
3808
                     || ('s' <= (c) && (c) <= 'z'))
3809
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3810
#endif
3811
 
3812
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3813
int
3814
main ()
3815
{
3816
  int i;
3817
  for (i = 0; i < 256; i++)
3818
    if (XOR (islower (i), ISLOWER (i))
3819
        || toupper (i) != TOUPPER (i))
3820
      return 2;
3821
  return 0;
3822
}
3823
_ACEOF
3824 96 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3825
 
3826 91 jeremybenn
else
3827 96 jeremybenn
  ac_cv_header_stdc=no
3828 91 jeremybenn
fi
3829 96 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3830
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3831 91 jeremybenn
fi
3832
 
3833
fi
3834
fi
3835 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3836 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3837
if test $ac_cv_header_stdc = yes; then
3838
 
3839 96 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3840 91 jeremybenn
 
3841
fi
3842
 
3843
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3844
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3845
                  inttypes.h stdint.h unistd.h
3846 96 jeremybenn
do :
3847
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3848
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3849
"
3850
eval as_val=\$$as_ac_Header
3851
   if test "x$as_val" = x""yes; then :
3852 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3853
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3854
_ACEOF
3855
 
3856
fi
3857
 
3858
done
3859
 
3860
 
3861
 
3862 96 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3863
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3864 91 jeremybenn
  MINIX=yes
3865
else
3866
  MINIX=
3867
fi
3868
 
3869
 
3870
  if test "$MINIX" = yes; then
3871
 
3872 96 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3873 91 jeremybenn
 
3874
 
3875 96 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3876 91 jeremybenn
 
3877
 
3878 96 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3879 91 jeremybenn
 
3880
  fi
3881
 
3882
 
3883 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3884 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3885 96 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3886 91 jeremybenn
  $as_echo_n "(cached) " >&6
3887
else
3888 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 91 jeremybenn
/* end confdefs.h.  */
3890
 
3891
#         define __EXTENSIONS__ 1
3892
          $ac_includes_default
3893
int
3894
main ()
3895
{
3896
 
3897
  ;
3898
  return 0;
3899
}
3900
_ACEOF
3901 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3902 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3903
else
3904 96 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3905 91 jeremybenn
fi
3906
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907
fi
3908 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3909 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3910
  test $ac_cv_safe_to_define___extensions__ = yes &&
3911 96 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3912 91 jeremybenn
 
3913 96 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3914 91 jeremybenn
 
3915 96 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3916 91 jeremybenn
 
3917 96 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3918 91 jeremybenn
 
3919 96 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3920 91 jeremybenn
 
3921
 
3922
 
3923
# Check we have the execute source file present for sanity. Specify a separate
3924
# config for the testsuite OR1K specific programs, since we'll need different
3925
# tool chain there (the OpenRISC one, rather than the native one).
3926
 
3927
ac_aux_dir=
3928
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3929 96 jeremybenn
  for ac_t in install-sh install.sh shtool; do
3930
    if test -f "$ac_dir/$ac_t"; then
3931
      ac_aux_dir=$ac_dir
3932
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3933
      break 2
3934
    fi
3935
  done
3936 91 jeremybenn
done
3937
if test -z "$ac_aux_dir"; then
3938 96 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3939 91 jeremybenn
fi
3940
 
3941
# These three variables are undocumented and unsupported,
3942
# and are intended to be withdrawn in a future Autoconf release.
3943
# They can cause serious problems if a builder's source tree is in a directory
3944
# whose full name contains unusual characters.
3945
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3946
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3947
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3948
 
3949
 
3950
 
3951
 
3952
subdirs="$subdirs testsuite/test-code-or1k"
3953
 
3954
 
3955
# Make sure we can run config.sub.
3956
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3957 96 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3958 91 jeremybenn
 
3959 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3960 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3961 96 jeremybenn
if test "${ac_cv_build+set}" = set; then :
3962 91 jeremybenn
  $as_echo_n "(cached) " >&6
3963
else
3964
  ac_build_alias=$build_alias
3965
test "x$ac_build_alias" = x &&
3966
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3967
test "x$ac_build_alias" = x &&
3968 96 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3969 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3970 96 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3971 91 jeremybenn
 
3972
fi
3973 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3974 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3975
case $ac_cv_build in
3976
*-*-*) ;;
3977 96 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3978 91 jeremybenn
esac
3979
build=$ac_cv_build
3980
ac_save_IFS=$IFS; IFS='-'
3981
set x $ac_cv_build
3982
shift
3983
build_cpu=$1
3984
build_vendor=$2
3985
shift; shift
3986
# Remember, the first character of IFS is used to create $*,
3987
# except with old shells:
3988
build_os=$*
3989
IFS=$ac_save_IFS
3990
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3991
 
3992
 
3993 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3994 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3995 96 jeremybenn
if test "${ac_cv_host+set}" = set; then :
3996 91 jeremybenn
  $as_echo_n "(cached) " >&6
3997
else
3998
  if test "x$host_alias" = x; then
3999
  ac_cv_host=$ac_cv_build
4000
else
4001
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4002 96 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4003 91 jeremybenn
fi
4004
 
4005
fi
4006 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4007 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4008
case $ac_cv_host in
4009
*-*-*) ;;
4010 96 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4011 91 jeremybenn
esac
4012
host=$ac_cv_host
4013
ac_save_IFS=$IFS; IFS='-'
4014
set x $ac_cv_host
4015
shift
4016
host_cpu=$1
4017
host_vendor=$2
4018
shift; shift
4019
# Remember, the first character of IFS is used to create $*,
4020
# except with old shells:
4021
host_os=$*
4022
IFS=$ac_save_IFS
4023
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4024
 
4025
 
4026 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4027 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4028 96 jeremybenn
if test "${ac_cv_target+set}" = set; then :
4029 91 jeremybenn
  $as_echo_n "(cached) " >&6
4030
else
4031
  if test "x$target_alias" = x; then
4032
  ac_cv_target=$ac_cv_host
4033
else
4034
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4035 96 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4036 91 jeremybenn
fi
4037
 
4038
fi
4039 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4040 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4041
case $ac_cv_target in
4042
*-*-*) ;;
4043 96 jeremybenn
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4044 91 jeremybenn
esac
4045
target=$ac_cv_target
4046
ac_save_IFS=$IFS; IFS='-'
4047
set x $ac_cv_target
4048
shift
4049
target_cpu=$1
4050
target_vendor=$2
4051
shift; shift
4052
# Remember, the first character of IFS is used to create $*,
4053
# except with old shells:
4054
target_os=$*
4055
IFS=$ac_save_IFS
4056
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4057
 
4058
 
4059
# The aliases save the names the user supplied, while $host etc.
4060
# will get canonicalized.
4061
test -n "$target_alias" &&
4062
  test "$program_prefix$program_suffix$program_transform_name" = \
4063
    NONENONEs,x,x, &&
4064
  program_prefix=${target_alias}-
4065
case `pwd` in
4066
  *\ * | *\     *)
4067 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4068 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4069
esac
4070
 
4071
 
4072
 
4073 96 jeremybenn
macro_version='2.2.6b'
4074
macro_revision='1.3017'
4075 91 jeremybenn
 
4076
 
4077
 
4078
 
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
 
4087
 
4088
ltmain="$ac_aux_dir/ltmain.sh"
4089
 
4090 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4091 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4092 96 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
4093 91 jeremybenn
  $as_echo_n "(cached) " >&6
4094
else
4095
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4096
     for ac_i in 1 2 3 4 5 6 7; do
4097
       ac_script="$ac_script$as_nl$ac_script"
4098
     done
4099
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4100 96 jeremybenn
     { ac_script=; unset ac_script;}
4101 91 jeremybenn
     if test -z "$SED"; then
4102
  ac_path_SED_found=false
4103
  # Loop through the user's path and test for each of PROGNAME-LIST
4104
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105
for as_dir in $PATH
4106
do
4107
  IFS=$as_save_IFS
4108
  test -z "$as_dir" && as_dir=.
4109 96 jeremybenn
    for ac_prog in sed gsed; do
4110 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4111
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4112
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4113
# Check for GNU ac_path_SED and select it if it is found.
4114
  # Check for GNU $ac_path_SED
4115
case `"$ac_path_SED" --version 2>&1` in
4116
*GNU*)
4117
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4118
*)
4119
  ac_count=0
4120
  $as_echo_n 0123456789 >"conftest.in"
4121
  while :
4122
  do
4123
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4124
    mv "conftest.tmp" "conftest.in"
4125
    cp "conftest.in" "conftest.nl"
4126
    $as_echo '' >> "conftest.nl"
4127
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4128
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4129 96 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4130 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4131
      # Best one so far, save it but keep looking for a better one
4132
      ac_cv_path_SED="$ac_path_SED"
4133
      ac_path_SED_max=$ac_count
4134
    fi
4135
    # 10*(2^10) chars as input seems more than enough
4136
    test $ac_count -gt 10 && break
4137
  done
4138
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139
esac
4140
 
4141
      $ac_path_SED_found && break 3
4142
    done
4143
  done
4144 96 jeremybenn
  done
4145 91 jeremybenn
IFS=$as_save_IFS
4146
  if test -z "$ac_cv_path_SED"; then
4147 96 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4148 91 jeremybenn
  fi
4149
else
4150
  ac_cv_path_SED=$SED
4151
fi
4152
 
4153
fi
4154 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4155 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4156
 SED="$ac_cv_path_SED"
4157
  rm -f conftest.sed
4158
 
4159
test -z "$SED" && SED=sed
4160
Xsed="$SED -e 1s/^X//"
4161
 
4162
 
4163
 
4164
 
4165
 
4166
 
4167
 
4168
 
4169
 
4170
 
4171
 
4172 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4173 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4174 96 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
4175 82 jeremybenn
  $as_echo_n "(cached) " >&6
4176 19 jeremybenn
else
4177 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4178
   then ac_cv_path_FGREP="$GREP -F"
4179
   else
4180
     if test -z "$FGREP"; then
4181
  ac_path_FGREP_found=false
4182
  # Loop through the user's path and test for each of PROGNAME-LIST
4183
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185
do
4186
  IFS=$as_save_IFS
4187
  test -z "$as_dir" && as_dir=.
4188 96 jeremybenn
    for ac_prog in fgrep; do
4189 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4190
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4191
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4192
# Check for GNU ac_path_FGREP and select it if it is found.
4193
  # Check for GNU $ac_path_FGREP
4194
case `"$ac_path_FGREP" --version 2>&1` in
4195
*GNU*)
4196
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4197
*)
4198
  ac_count=0
4199
  $as_echo_n 0123456789 >"conftest.in"
4200
  while :
4201
  do
4202
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4203
    mv "conftest.tmp" "conftest.in"
4204
    cp "conftest.in" "conftest.nl"
4205
    $as_echo 'FGREP' >> "conftest.nl"
4206
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 96 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4210
      # Best one so far, save it but keep looking for a better one
4211
      ac_cv_path_FGREP="$ac_path_FGREP"
4212
      ac_path_FGREP_max=$ac_count
4213
    fi
4214
    # 10*(2^10) chars as input seems more than enough
4215
    test $ac_count -gt 10 && break
4216
  done
4217
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218
esac
4219
 
4220
      $ac_path_FGREP_found && break 3
4221
    done
4222
  done
4223 96 jeremybenn
  done
4224 82 jeremybenn
IFS=$as_save_IFS
4225
  if test -z "$ac_cv_path_FGREP"; then
4226 96 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 82 jeremybenn
  fi
4228
else
4229
  ac_cv_path_FGREP=$FGREP
4230 19 jeremybenn
fi
4231
 
4232
   fi
4233
fi
4234 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4235 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4236
 FGREP="$ac_cv_path_FGREP"
4237 19 jeremybenn
 
4238
 
4239 82 jeremybenn
test -z "$GREP" && GREP=grep
4240 19 jeremybenn
 
4241 82 jeremybenn
 
4242
 
4243
 
4244
 
4245
 
4246
 
4247
 
4248
 
4249
 
4250
 
4251
 
4252
 
4253
 
4254
 
4255
 
4256
 
4257
 
4258
 
4259 19 jeremybenn
# Check whether --with-gnu-ld was given.
4260 96 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4261 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4262
else
4263
  with_gnu_ld=no
4264
fi
4265
 
4266
ac_prog=ld
4267
if test "$GCC" = yes; then
4268
  # Check if gcc -print-prog-name=ld gives a path.
4269 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4270 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4271 19 jeremybenn
  case $host in
4272
  *-*-mingw*)
4273
    # gcc leaves a trailing carriage return which upsets mingw
4274
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4275
  *)
4276
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4277
  esac
4278
  case $ac_prog in
4279
    # Accept absolute paths.
4280
    [\\/]* | ?:[\\/]*)
4281
      re_direlt='/[^/][^/]*/\.\./'
4282
      # Canonicalize the pathname of ld
4283 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4284
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4285
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4286 19 jeremybenn
      done
4287
      test -z "$LD" && LD="$ac_prog"
4288
      ;;
4289
  "")
4290
    # If it fails, then pretend we aren't using GCC.
4291
    ac_prog=ld
4292
    ;;
4293
  *)
4294
    # If it is relative, then search for the first ld in PATH.
4295
    with_gnu_ld=unknown
4296
    ;;
4297
  esac
4298
elif test "$with_gnu_ld" = yes; then
4299 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4300 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4301 19 jeremybenn
else
4302 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4303 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4304 19 jeremybenn
fi
4305 96 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
4306 82 jeremybenn
  $as_echo_n "(cached) " >&6
4307 19 jeremybenn
else
4308
  if test -z "$LD"; then
4309
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4310
  for ac_dir in $PATH; do
4311
    IFS="$lt_save_ifs"
4312
    test -z "$ac_dir" && ac_dir=.
4313
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4314
      lt_cv_path_LD="$ac_dir/$ac_prog"
4315
      # Check to see if the program is GNU ld.  I'd rather use --version,
4316
      # but apparently some variants of GNU ld only accept -v.
4317
      # Break only if it was the GNU/non-GNU ld that we prefer.
4318
      case `"$lt_cv_path_LD" -v 2>&1 
4319
      *GNU* | *'with BFD'*)
4320
        test "$with_gnu_ld" != no && break
4321
        ;;
4322
      *)
4323
        test "$with_gnu_ld" != yes && break
4324
        ;;
4325
      esac
4326
    fi
4327
  done
4328
  IFS="$lt_save_ifs"
4329
else
4330
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4331
fi
4332
fi
4333
 
4334
LD="$lt_cv_path_LD"
4335
if test -n "$LD"; then
4336 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4337 82 jeremybenn
$as_echo "$LD" >&6; }
4338 19 jeremybenn
else
4339 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 82 jeremybenn
$as_echo "no" >&6; }
4341 19 jeremybenn
fi
4342 96 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4344 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4345 96 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4346 82 jeremybenn
  $as_echo_n "(cached) " >&6
4347 19 jeremybenn
else
4348
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4349
case `$LD -v 2>&1 
4350
*GNU* | *'with BFD'*)
4351
  lt_cv_prog_gnu_ld=yes
4352
  ;;
4353
*)
4354
  lt_cv_prog_gnu_ld=no
4355
  ;;
4356
esac
4357
fi
4358 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4359 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4360 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4361
 
4362
 
4363
 
4364 82 jeremybenn
 
4365
 
4366
 
4367
 
4368
 
4369
 
4370 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4371 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4372 96 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
4373 82 jeremybenn
  $as_echo_n "(cached) " >&6
4374 19 jeremybenn
else
4375
  if test -n "$NM"; then
4376
  # Let the user override the test.
4377
  lt_cv_path_NM="$NM"
4378
else
4379
  lt_nm_to_check="${ac_tool_prefix}nm"
4380
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4381
    lt_nm_to_check="$lt_nm_to_check nm"
4382
  fi
4383
  for lt_tmp_nm in $lt_nm_to_check; do
4384
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4385
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4386
      IFS="$lt_save_ifs"
4387
      test -z "$ac_dir" && ac_dir=.
4388
      tmp_nm="$ac_dir/$lt_tmp_nm"
4389
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4390
        # Check to see if the nm accepts a BSD-compat flag.
4391
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4392
        #   nm: unknown option "B" ignored
4393
        # Tru64's nm complains that /dev/null is an invalid object file
4394
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4395
        */dev/null* | *'Invalid file or object type'*)
4396
          lt_cv_path_NM="$tmp_nm -B"
4397
          break
4398
          ;;
4399
        *)
4400
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4401
          */dev/null*)
4402
            lt_cv_path_NM="$tmp_nm -p"
4403
            break
4404
            ;;
4405
          *)
4406
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4407
            continue # so that we can try to find one that supports BSD flags
4408
            ;;
4409
          esac
4410
          ;;
4411
        esac
4412
      fi
4413
    done
4414
    IFS="$lt_save_ifs"
4415
  done
4416 82 jeremybenn
  : ${lt_cv_path_NM=no}
4417 19 jeremybenn
fi
4418
fi
4419 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4420 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4421
if test "$lt_cv_path_NM" != "no"; then
4422
  NM="$lt_cv_path_NM"
4423
else
4424
  # Didn't find any BSD compatible name lister, look for dumpbin.
4425
  if test -n "$ac_tool_prefix"; then
4426
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4427
  do
4428
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4429
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4430 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4432 96 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4433 82 jeremybenn
  $as_echo_n "(cached) " >&6
4434
else
4435
  if test -n "$DUMPBIN"; then
4436
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4437
else
4438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439
for as_dir in $PATH
4440
do
4441
  IFS=$as_save_IFS
4442
  test -z "$as_dir" && as_dir=.
4443 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4444 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4446 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 82 jeremybenn
    break 2
4448
  fi
4449
done
4450 96 jeremybenn
  done
4451 82 jeremybenn
IFS=$as_save_IFS
4452 19 jeremybenn
 
4453 82 jeremybenn
fi
4454
fi
4455
DUMPBIN=$ac_cv_prog_DUMPBIN
4456
if test -n "$DUMPBIN"; then
4457 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4458 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4459
else
4460 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 82 jeremybenn
$as_echo "no" >&6; }
4462
fi
4463
 
4464
 
4465
    test -n "$DUMPBIN" && break
4466
  done
4467
fi
4468
if test -z "$DUMPBIN"; then
4469
  ac_ct_DUMPBIN=$DUMPBIN
4470
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4471
do
4472
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4473
set dummy $ac_prog; ac_word=$2
4474 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4476 96 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4477 82 jeremybenn
  $as_echo_n "(cached) " >&6
4478
else
4479
  if test -n "$ac_ct_DUMPBIN"; then
4480
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4481
else
4482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483
for as_dir in $PATH
4484
do
4485
  IFS=$as_save_IFS
4486
  test -z "$as_dir" && as_dir=.
4487 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4488 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4490 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 82 jeremybenn
    break 2
4492
  fi
4493
done
4494 96 jeremybenn
  done
4495 82 jeremybenn
IFS=$as_save_IFS
4496
 
4497
fi
4498
fi
4499
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4500
if test -n "$ac_ct_DUMPBIN"; then
4501 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4502 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4503
else
4504 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 82 jeremybenn
$as_echo "no" >&6; }
4506
fi
4507
 
4508
 
4509
  test -n "$ac_ct_DUMPBIN" && break
4510
done
4511
 
4512
  if test "x$ac_ct_DUMPBIN" = x; then
4513
    DUMPBIN=":"
4514
  else
4515
    case $cross_compiling:$ac_tool_warned in
4516
yes:)
4517 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4518 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519
ac_tool_warned=yes ;;
4520
esac
4521
    DUMPBIN=$ac_ct_DUMPBIN
4522
  fi
4523
fi
4524
 
4525
 
4526
  if test "$DUMPBIN" != ":"; then
4527
    NM="$DUMPBIN"
4528
  fi
4529
fi
4530
test -z "$NM" && NM=nm
4531
 
4532
 
4533
 
4534
 
4535
 
4536
 
4537 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4538 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4539 96 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
4540 82 jeremybenn
  $as_echo_n "(cached) " >&6
4541
else
4542
  lt_cv_nm_interface="BSD nm"
4543
  echo "int some_variable = 0;" > conftest.$ac_ext
4544 96 jeremybenn
  (eval echo "\"\$as_me:4544: $ac_compile\"" >&5)
4545 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4546
  cat conftest.err >&5
4547 96 jeremybenn
  (eval echo "\"\$as_me:4547: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4548 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4549
  cat conftest.err >&5
4550 96 jeremybenn
  (eval echo "\"\$as_me:4550: output\"" >&5)
4551 82 jeremybenn
  cat conftest.out >&5
4552
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4553
    lt_cv_nm_interface="MS dumpbin"
4554
  fi
4555
  rm -f conftest*
4556
fi
4557 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4558 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4559
 
4560 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4561 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4562 19 jeremybenn
LN_S=$as_ln_s
4563
if test "$LN_S" = "ln -s"; then
4564 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 82 jeremybenn
$as_echo "yes" >&6; }
4566 19 jeremybenn
else
4567 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4568 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4569 19 jeremybenn
fi
4570
 
4571 82 jeremybenn
# find the maximum length of command line arguments
4572 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4573 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4574 96 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4575 82 jeremybenn
  $as_echo_n "(cached) " >&6
4576
else
4577
    i=0
4578
  teststring="ABCD"
4579
 
4580
  case $build_os in
4581
  msdosdjgpp*)
4582
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4583
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4584
    # during glob expansion).  Even if it were fixed, the result of this
4585
    # check would be larger than it should be.
4586
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4587
    ;;
4588
 
4589
  gnu*)
4590
    # Under GNU Hurd, this test is not required because there is
4591
    # no limit to the length of command line arguments.
4592
    # Libtool will interpret -1 as no limit whatsoever
4593
    lt_cv_sys_max_cmd_len=-1;
4594
    ;;
4595
 
4596
  cygwin* | mingw* | cegcc*)
4597
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4598
    # about 5 minutes as the teststring grows exponentially.
4599
    # Worse, since 9x/ME are not pre-emptively multitasking,
4600
    # you end up with a "frozen" computer, even though with patience
4601
    # the test eventually succeeds (with a max line length of 256k).
4602
    # Instead, let's just punt: use the minimum linelength reported by
4603
    # all of the supported platforms: 8192 (on NT/2K/XP).
4604
    lt_cv_sys_max_cmd_len=8192;
4605
    ;;
4606
 
4607
  amigaos*)
4608
    # On AmigaOS with pdksh, this test takes hours, literally.
4609
    # So we just punt and use a minimum line length of 8192.
4610
    lt_cv_sys_max_cmd_len=8192;
4611
    ;;
4612
 
4613
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4614
    # This has been around since 386BSD, at least.  Likely further.
4615
    if test -x /sbin/sysctl; then
4616
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4617
    elif test -x /usr/sbin/sysctl; then
4618
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4619
    else
4620
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4621
    fi
4622
    # And add a safety zone
4623
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4624
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4625
    ;;
4626
 
4627
  interix*)
4628
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4629
    lt_cv_sys_max_cmd_len=196608
4630
    ;;
4631
 
4632
  osf*)
4633
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4634
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4635
    # nice to cause kernel panics so lets avoid the loop below.
4636
    # First set a reasonable default.
4637
    lt_cv_sys_max_cmd_len=16384
4638
    #
4639
    if test -x /sbin/sysconfig; then
4640
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4641
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4642
      esac
4643
    fi
4644
    ;;
4645
  sco3.2v5*)
4646
    lt_cv_sys_max_cmd_len=102400
4647
    ;;
4648
  sysv5* | sco5v6* | sysv4.2uw2*)
4649
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4650
    if test -n "$kargmax"; then
4651
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4652
    else
4653
      lt_cv_sys_max_cmd_len=32768
4654
    fi
4655
    ;;
4656
  *)
4657
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4658
    if test -n "$lt_cv_sys_max_cmd_len"; then
4659
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4660
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4661
    else
4662
      # Make teststring a little bigger before we do anything with it.
4663
      # a 1K string should be a reasonable start.
4664
      for i in 1 2 3 4 5 6 7 8 ; do
4665
        teststring=$teststring$teststring
4666
      done
4667
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4668
      # If test is not a shell built-in, we'll probably end up computing a
4669
      # maximum length that is only half of the actual maximum length, but
4670
      # we can't tell.
4671
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4672
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4673
              test $i != 17 # 1/2 MB should be enough
4674
      do
4675
        i=`expr $i + 1`
4676
        teststring=$teststring$teststring
4677
      done
4678
      # Only check the string length outside the loop.
4679
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4680
      teststring=
4681
      # Add a significant safety factor because C++ compilers can tack on
4682
      # massive amounts of additional arguments before passing them to the
4683
      # linker.  It appears as though 1/2 is a usable value.
4684
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4685
    fi
4686
    ;;
4687
  esac
4688
 
4689
fi
4690
 
4691
if test -n $lt_cv_sys_max_cmd_len ; then
4692 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4693 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4694
else
4695 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4696 82 jeremybenn
$as_echo "none" >&6; }
4697
fi
4698
max_cmd_len=$lt_cv_sys_max_cmd_len
4699
 
4700
 
4701
 
4702
 
4703
 
4704
 
4705
: ${CP="cp -f"}
4706
: ${MV="mv -f"}
4707
: ${RM="rm -f"}
4708
 
4709 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4710 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4711
# Try some XSI features
4712
xsi_shell=no
4713
( _lt_dummy="a/b/c"
4714
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4715
      = c,a/b,, \
4716
    && eval 'test $(( 1 + 1 )) -eq 2 \
4717
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4718
  && xsi_shell=yes
4719 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4720 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4721
 
4722
 
4723 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4724 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4725
lt_shell_append=no
4726
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4727
    >/dev/null 2>&1 \
4728
  && lt_shell_append=yes
4729 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4730 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4731
 
4732
 
4733
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4734
  lt_unset=unset
4735
else
4736
  lt_unset=false
4737
fi
4738
 
4739
 
4740
 
4741
 
4742
 
4743
# test EBCDIC or ASCII
4744
case `echo X|tr X '\101'` in
4745
 A) # ASCII based system
4746
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4747
  lt_SP2NL='tr \040 \012'
4748
  lt_NL2SP='tr \015\012 \040\040'
4749
  ;;
4750
 *) # EBCDIC based system
4751
  lt_SP2NL='tr \100 \n'
4752
  lt_NL2SP='tr \r\n \100\100'
4753
  ;;
4754
esac
4755
 
4756
 
4757
 
4758
 
4759
 
4760
 
4761
 
4762
 
4763
 
4764 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4765 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4766 96 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4767 82 jeremybenn
  $as_echo_n "(cached) " >&6
4768
else
4769
  lt_cv_ld_reload_flag='-r'
4770
fi
4771 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4772 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4773
reload_flag=$lt_cv_ld_reload_flag
4774
case $reload_flag in
4775
"" | " "*) ;;
4776
*) reload_flag=" $reload_flag" ;;
4777
esac
4778
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4779
case $host_os in
4780
  darwin*)
4781
    if test "$GCC" = yes; then
4782
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4783
    else
4784
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4785
    fi
4786
    ;;
4787
esac
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
 
4796
 
4797
if test -n "$ac_tool_prefix"; then
4798
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4799
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4800 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4802 96 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4803 82 jeremybenn
  $as_echo_n "(cached) " >&6
4804
else
4805
  if test -n "$OBJDUMP"; then
4806
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4807
else
4808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809
for as_dir in $PATH
4810
do
4811
  IFS=$as_save_IFS
4812
  test -z "$as_dir" && as_dir=.
4813 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4814 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4816 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 82 jeremybenn
    break 2
4818
  fi
4819
done
4820 96 jeremybenn
  done
4821 82 jeremybenn
IFS=$as_save_IFS
4822
 
4823
fi
4824
fi
4825
OBJDUMP=$ac_cv_prog_OBJDUMP
4826
if test -n "$OBJDUMP"; then
4827 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4828 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4829
else
4830 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 82 jeremybenn
$as_echo "no" >&6; }
4832
fi
4833
 
4834
 
4835
fi
4836
if test -z "$ac_cv_prog_OBJDUMP"; then
4837
  ac_ct_OBJDUMP=$OBJDUMP
4838
  # Extract the first word of "objdump", so it can be a program name with args.
4839
set dummy objdump; ac_word=$2
4840 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4842 96 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4843 82 jeremybenn
  $as_echo_n "(cached) " >&6
4844
else
4845
  if test -n "$ac_ct_OBJDUMP"; then
4846
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4847
else
4848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849
for as_dir in $PATH
4850
do
4851
  IFS=$as_save_IFS
4852
  test -z "$as_dir" && as_dir=.
4853 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4854 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4856 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 82 jeremybenn
    break 2
4858
  fi
4859
done
4860 96 jeremybenn
  done
4861 82 jeremybenn
IFS=$as_save_IFS
4862
 
4863
fi
4864
fi
4865
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4866
if test -n "$ac_ct_OBJDUMP"; then
4867 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4868 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4869
else
4870 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 82 jeremybenn
$as_echo "no" >&6; }
4872
fi
4873
 
4874
  if test "x$ac_ct_OBJDUMP" = x; then
4875
    OBJDUMP="false"
4876
  else
4877
    case $cross_compiling:$ac_tool_warned in
4878
yes:)
4879 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4880 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4881
ac_tool_warned=yes ;;
4882
esac
4883
    OBJDUMP=$ac_ct_OBJDUMP
4884
  fi
4885
else
4886
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4887
fi
4888
 
4889
test -z "$OBJDUMP" && OBJDUMP=objdump
4890
 
4891
 
4892
 
4893
 
4894
 
4895
 
4896
 
4897
 
4898
 
4899 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4900 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4901 96 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4902 82 jeremybenn
  $as_echo_n "(cached) " >&6
4903 19 jeremybenn
else
4904
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4905
lt_cv_file_magic_test_file=
4906
lt_cv_deplibs_check_method='unknown'
4907
# Need to set the preceding variable on all platforms that support
4908
# interlibrary dependencies.
4909
# 'none' -- dependencies not supported.
4910
# `unknown' -- same as none, but documents that we really don't know.
4911
# 'pass_all' -- all dependencies passed with no checks.
4912
# 'test_compile' -- check by making test program.
4913
# 'file_magic [[regex]]' -- check by looking for files in library path
4914
# which responds to the $file_magic_cmd with a given extended regex.
4915
# If you have `file' or equivalent on your system and you're not sure
4916
# whether `pass_all' will *always* work, you probably want this one.
4917
 
4918
case $host_os in
4919 82 jeremybenn
aix[4-9]*)
4920 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4921
  ;;
4922
 
4923
beos*)
4924
  lt_cv_deplibs_check_method=pass_all
4925
  ;;
4926
 
4927
bsdi[45]*)
4928
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4929
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4930
  lt_cv_file_magic_test_file=/shlib/libc.so
4931
  ;;
4932
 
4933
cygwin*)
4934
  # func_win32_libid is a shell function defined in ltmain.sh
4935
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4936
  lt_cv_file_magic_cmd='func_win32_libid'
4937
  ;;
4938
 
4939
mingw* | pw32*)
4940
  # Base MSYS/MinGW do not provide the 'file' command needed by
4941
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4942
  # unless we find 'file', for example because we are cross-compiling.
4943
  if ( file / ) >/dev/null 2>&1; then
4944
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4945
    lt_cv_file_magic_cmd='func_win32_libid'
4946
  else
4947
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4948
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4949
  fi
4950
  ;;
4951
 
4952 82 jeremybenn
cegcc)
4953
  # use the weaker test based on 'objdump'. See mingw*.
4954
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4955
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4956
  ;;
4957
 
4958 19 jeremybenn
darwin* | rhapsody*)
4959
  lt_cv_deplibs_check_method=pass_all
4960
  ;;
4961
 
4962
freebsd* | dragonfly*)
4963 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4964 19 jeremybenn
    case $host_cpu in
4965
    i*86 )
4966
      # Not sure whether the presence of OpenBSD here was a mistake.
4967
      # Let's accept both of them until this is cleared up.
4968
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4969
      lt_cv_file_magic_cmd=/usr/bin/file
4970
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4971
      ;;
4972
    esac
4973
  else
4974
    lt_cv_deplibs_check_method=pass_all
4975
  fi
4976
  ;;
4977
 
4978
gnu*)
4979
  lt_cv_deplibs_check_method=pass_all
4980
  ;;
4981
 
4982
hpux10.20* | hpux11*)
4983
  lt_cv_file_magic_cmd=/usr/bin/file
4984
  case $host_cpu in
4985
  ia64*)
4986
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4987
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4988
    ;;
4989
  hppa*64*)
4990
    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]'
4991
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4992
    ;;
4993
  *)
4994
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4995
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4996
    ;;
4997
  esac
4998
  ;;
4999
 
5000
interix[3-9]*)
5001
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5002
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5003
  ;;
5004
 
5005
irix5* | irix6* | nonstopux*)
5006
  case $LD in
5007
  *-32|*"-32 ") libmagic=32-bit;;
5008
  *-n32|*"-n32 ") libmagic=N32;;
5009
  *-64|*"-64 ") libmagic=64-bit;;
5010
  *) libmagic=never-match;;
5011
  esac
5012
  lt_cv_deplibs_check_method=pass_all
5013
  ;;
5014
 
5015
# This must be Linux ELF.
5016
linux* | k*bsd*-gnu)
5017
  lt_cv_deplibs_check_method=pass_all
5018
  ;;
5019
 
5020 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5021 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5022 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5023
  else
5024
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5025
  fi
5026
  ;;
5027
 
5028
newos6*)
5029
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5030
  lt_cv_file_magic_cmd=/usr/bin/file
5031
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5032
  ;;
5033
 
5034 82 jeremybenn
*nto* | *qnx*)
5035
  lt_cv_deplibs_check_method=pass_all
5036 19 jeremybenn
  ;;
5037
 
5038
openbsd*)
5039 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5040 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5041
  else
5042
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5043
  fi
5044
  ;;
5045
 
5046
osf3* | osf4* | osf5*)
5047
  lt_cv_deplibs_check_method=pass_all
5048
  ;;
5049
 
5050
rdos*)
5051
  lt_cv_deplibs_check_method=pass_all
5052
  ;;
5053
 
5054
solaris*)
5055
  lt_cv_deplibs_check_method=pass_all
5056
  ;;
5057
 
5058 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5059
  lt_cv_deplibs_check_method=pass_all
5060
  ;;
5061
 
5062 19 jeremybenn
sysv4 | sysv4.3*)
5063
  case $host_vendor in
5064
  motorola)
5065
    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]'
5066
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5067
    ;;
5068
  ncr)
5069
    lt_cv_deplibs_check_method=pass_all
5070
    ;;
5071
  sequent)
5072
    lt_cv_file_magic_cmd='/bin/file'
5073
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5074
    ;;
5075
  sni)
5076
    lt_cv_file_magic_cmd='/bin/file'
5077
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5078
    lt_cv_file_magic_test_file=/lib/libc.so
5079
    ;;
5080
  siemens)
5081
    lt_cv_deplibs_check_method=pass_all
5082
    ;;
5083
  pc)
5084
    lt_cv_deplibs_check_method=pass_all
5085
    ;;
5086
  esac
5087
  ;;
5088
 
5089 82 jeremybenn
tpf*)
5090 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5091
  ;;
5092
esac
5093
 
5094
fi
5095 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5096 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5097 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5098
deplibs_check_method=$lt_cv_deplibs_check_method
5099
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5100
 
5101
 
5102
 
5103
 
5104 82 jeremybenn
 
5105
 
5106
 
5107
 
5108
 
5109
 
5110
 
5111
 
5112
if test -n "$ac_tool_prefix"; then
5113
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5114
set dummy ${ac_tool_prefix}ar; ac_word=$2
5115 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5117 96 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
5118 82 jeremybenn
  $as_echo_n "(cached) " >&6
5119
else
5120
  if test -n "$AR"; then
5121
  ac_cv_prog_AR="$AR" # Let the user override the test.
5122
else
5123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124
for as_dir in $PATH
5125
do
5126
  IFS=$as_save_IFS
5127
  test -z "$as_dir" && as_dir=.
5128 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5129 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5131 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 82 jeremybenn
    break 2
5133
  fi
5134
done
5135 96 jeremybenn
  done
5136 82 jeremybenn
IFS=$as_save_IFS
5137
 
5138
fi
5139
fi
5140
AR=$ac_cv_prog_AR
5141
if test -n "$AR"; then
5142 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5143 82 jeremybenn
$as_echo "$AR" >&6; }
5144
else
5145 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 82 jeremybenn
$as_echo "no" >&6; }
5147
fi
5148
 
5149
 
5150
fi
5151
if test -z "$ac_cv_prog_AR"; then
5152
  ac_ct_AR=$AR
5153
  # Extract the first word of "ar", so it can be a program name with args.
5154
set dummy ar; ac_word=$2
5155 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5157 96 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5158 82 jeremybenn
  $as_echo_n "(cached) " >&6
5159
else
5160
  if test -n "$ac_ct_AR"; then
5161
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5162
else
5163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164
for as_dir in $PATH
5165
do
5166
  IFS=$as_save_IFS
5167
  test -z "$as_dir" && as_dir=.
5168 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5169 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170
    ac_cv_prog_ac_ct_AR="ar"
5171 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 82 jeremybenn
    break 2
5173
  fi
5174
done
5175 96 jeremybenn
  done
5176 82 jeremybenn
IFS=$as_save_IFS
5177
 
5178
fi
5179
fi
5180
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5181
if test -n "$ac_ct_AR"; then
5182 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5183 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5184
else
5185 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 82 jeremybenn
$as_echo "no" >&6; }
5187
fi
5188
 
5189
  if test "x$ac_ct_AR" = x; then
5190
    AR="false"
5191
  else
5192
    case $cross_compiling:$ac_tool_warned in
5193
yes:)
5194 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5195 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5196
ac_tool_warned=yes ;;
5197
esac
5198
    AR=$ac_ct_AR
5199
  fi
5200
else
5201
  AR="$ac_cv_prog_AR"
5202
fi
5203
 
5204
test -z "$AR" && AR=ar
5205
test -z "$AR_FLAGS" && AR_FLAGS=cru
5206
 
5207
 
5208
 
5209
 
5210
 
5211
 
5212
 
5213
 
5214
 
5215
 
5216
 
5217
if test -n "$ac_tool_prefix"; then
5218
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5219
set dummy ${ac_tool_prefix}strip; ac_word=$2
5220 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5222 96 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
5223 82 jeremybenn
  $as_echo_n "(cached) " >&6
5224
else
5225
  if test -n "$STRIP"; then
5226
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5227
else
5228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229
for as_dir in $PATH
5230
do
5231
  IFS=$as_save_IFS
5232
  test -z "$as_dir" && as_dir=.
5233 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5234 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5236 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 82 jeremybenn
    break 2
5238
  fi
5239
done
5240 96 jeremybenn
  done
5241 82 jeremybenn
IFS=$as_save_IFS
5242
 
5243
fi
5244
fi
5245
STRIP=$ac_cv_prog_STRIP
5246
if test -n "$STRIP"; then
5247 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5248 82 jeremybenn
$as_echo "$STRIP" >&6; }
5249
else
5250 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 82 jeremybenn
$as_echo "no" >&6; }
5252
fi
5253
 
5254
 
5255
fi
5256
if test -z "$ac_cv_prog_STRIP"; then
5257
  ac_ct_STRIP=$STRIP
5258
  # Extract the first word of "strip", so it can be a program name with args.
5259
set dummy strip; ac_word=$2
5260 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5262 96 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5263 82 jeremybenn
  $as_echo_n "(cached) " >&6
5264
else
5265
  if test -n "$ac_ct_STRIP"; then
5266
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5267
else
5268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269
for as_dir in $PATH
5270
do
5271
  IFS=$as_save_IFS
5272
  test -z "$as_dir" && as_dir=.
5273 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5274 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275
    ac_cv_prog_ac_ct_STRIP="strip"
5276 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 82 jeremybenn
    break 2
5278
  fi
5279
done
5280 96 jeremybenn
  done
5281 82 jeremybenn
IFS=$as_save_IFS
5282
 
5283
fi
5284
fi
5285
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5286
if test -n "$ac_ct_STRIP"; then
5287 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5288 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5289
else
5290 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 82 jeremybenn
$as_echo "no" >&6; }
5292
fi
5293
 
5294
  if test "x$ac_ct_STRIP" = x; then
5295
    STRIP=":"
5296
  else
5297
    case $cross_compiling:$ac_tool_warned in
5298
yes:)
5299 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5300 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5301
ac_tool_warned=yes ;;
5302
esac
5303
    STRIP=$ac_ct_STRIP
5304
  fi
5305
else
5306
  STRIP="$ac_cv_prog_STRIP"
5307
fi
5308
 
5309
test -z "$STRIP" && STRIP=:
5310
 
5311
 
5312
 
5313
 
5314
 
5315
 
5316
if test -n "$ac_tool_prefix"; then
5317
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5318
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5319 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5321 96 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5322 82 jeremybenn
  $as_echo_n "(cached) " >&6
5323
else
5324
  if test -n "$RANLIB"; then
5325
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5326
else
5327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328
for as_dir in $PATH
5329
do
5330
  IFS=$as_save_IFS
5331
  test -z "$as_dir" && as_dir=.
5332 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5333 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5335 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 82 jeremybenn
    break 2
5337
  fi
5338
done
5339 96 jeremybenn
  done
5340 82 jeremybenn
IFS=$as_save_IFS
5341
 
5342
fi
5343
fi
5344
RANLIB=$ac_cv_prog_RANLIB
5345
if test -n "$RANLIB"; then
5346 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5347 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5348
else
5349 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 82 jeremybenn
$as_echo "no" >&6; }
5351
fi
5352
 
5353
 
5354
fi
5355
if test -z "$ac_cv_prog_RANLIB"; then
5356
  ac_ct_RANLIB=$RANLIB
5357
  # Extract the first word of "ranlib", so it can be a program name with args.
5358
set dummy ranlib; ac_word=$2
5359 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5361 96 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5362 82 jeremybenn
  $as_echo_n "(cached) " >&6
5363
else
5364
  if test -n "$ac_ct_RANLIB"; then
5365
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5366
else
5367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368
for as_dir in $PATH
5369
do
5370
  IFS=$as_save_IFS
5371
  test -z "$as_dir" && as_dir=.
5372 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5373 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5375 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 82 jeremybenn
    break 2
5377
  fi
5378
done
5379 96 jeremybenn
  done
5380 82 jeremybenn
IFS=$as_save_IFS
5381
 
5382
fi
5383
fi
5384
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5385
if test -n "$ac_ct_RANLIB"; then
5386 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5387 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5388
else
5389 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 82 jeremybenn
$as_echo "no" >&6; }
5391
fi
5392
 
5393
  if test "x$ac_ct_RANLIB" = x; then
5394
    RANLIB=":"
5395
  else
5396
    case $cross_compiling:$ac_tool_warned in
5397
yes:)
5398 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5400
ac_tool_warned=yes ;;
5401
esac
5402
    RANLIB=$ac_ct_RANLIB
5403
  fi
5404
else
5405
  RANLIB="$ac_cv_prog_RANLIB"
5406
fi
5407
 
5408
test -z "$RANLIB" && RANLIB=:
5409
 
5410
 
5411
 
5412
 
5413
 
5414
 
5415
# Determine commands to create old-style static archives.
5416
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5417
old_postinstall_cmds='chmod 644 $oldlib'
5418
old_postuninstall_cmds=
5419
 
5420
if test -n "$RANLIB"; then
5421
  case $host_os in
5422
  openbsd*)
5423
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5424
    ;;
5425
  *)
5426
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5427
    ;;
5428
  esac
5429
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5430
fi
5431
 
5432
 
5433
 
5434
 
5435
 
5436
 
5437
 
5438
 
5439
 
5440
 
5441
 
5442
 
5443
 
5444
 
5445
 
5446
 
5447
 
5448
 
5449
 
5450
 
5451
 
5452
 
5453
 
5454
 
5455
 
5456
 
5457
 
5458
 
5459
 
5460
 
5461
 
5462
 
5463
 
5464
 
5465 19 jeremybenn
# If no C compiler was specified, use CC.
5466
LTCC=${LTCC-"$CC"}
5467
 
5468
# If no C compiler flags were specified, use CFLAGS.
5469
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5470
 
5471
# Allow CC to be a program name with arguments.
5472
compiler=$CC
5473
 
5474
 
5475 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5476 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5477 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5478 96 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5479 82 jeremybenn
  $as_echo_n "(cached) " >&6
5480
else
5481
 
5482
# These are sane defaults that work on at least a few old systems.
5483
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5484
 
5485
# Character class describing NM global symbol codes.
5486
symcode='[BCDEGRST]'
5487
 
5488
# Regexp to match symbols that can be accessed directly from C.
5489
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5490
 
5491
# Define system-specific variables.
5492
case $host_os in
5493
aix*)
5494
  symcode='[BCDT]'
5495
  ;;
5496
cygwin* | mingw* | pw32* | cegcc*)
5497
  symcode='[ABCDGISTW]'
5498
  ;;
5499
hpux*)
5500
  if test "$host_cpu" = ia64; then
5501
    symcode='[ABCDEGRST]'
5502
  fi
5503
  ;;
5504
irix* | nonstopux*)
5505
  symcode='[BCDEGRST]'
5506
  ;;
5507
osf*)
5508
  symcode='[BCDEGQRST]'
5509
  ;;
5510
solaris*)
5511
  symcode='[BDRT]'
5512
  ;;
5513
sco3.2v5*)
5514
  symcode='[DT]'
5515
  ;;
5516
sysv4.2uw2*)
5517
  symcode='[DT]'
5518
  ;;
5519
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5520
  symcode='[ABDT]'
5521
  ;;
5522
sysv4)
5523
  symcode='[DFNSTU]'
5524
  ;;
5525
esac
5526
 
5527
# If we're using GNU nm, then use its standard symbol codes.
5528
case `$NM -V 2>&1` in
5529
*GNU* | *'with BFD'*)
5530
  symcode='[ABCDGIRSTW]' ;;
5531
esac
5532
 
5533
# Transform an extracted symbol line into a proper C declaration.
5534
# Some systems (esp. on ia64) link data and code symbols differently,
5535
# so use this general approach.
5536
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5537
 
5538
# Transform an extracted symbol line into symbol name and symbol address
5539
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5540
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'"
5541
 
5542
# Handle CRLF in mingw tool chain
5543
opt_cr=
5544
case $build_os in
5545
mingw*)
5546
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5547
  ;;
5548
esac
5549
 
5550
# Try without a prefix underscore, then with it.
5551
for ac_symprfx in "" "_"; do
5552
 
5553
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5554
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5555
 
5556
  # Write the raw and C identifiers.
5557
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5558
    # Fake it for dumpbin and say T for any non-static function
5559
    # and D for any global variable.
5560
    # Also find C++ and __fastcall symbols from MSVC++,
5561
    # which start with @ or ?.
5562
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5563
"     {last_section=section; section=\$ 3};"\
5564
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5565
"     \$ 0!~/External *\|/{next};"\
5566
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5567
"     {if(hide[section]) next};"\
5568
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5569
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5570
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5571
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5572
"     ' prfx=^$ac_symprfx"
5573
  else
5574
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5575
  fi
5576
 
5577
  # Check to see that the pipe works correctly.
5578
  pipe_works=no
5579
 
5580
  rm -f conftest*
5581
  cat > conftest.$ac_ext <<_LT_EOF
5582
#ifdef __cplusplus
5583
extern "C" {
5584
#endif
5585
char nm_test_var;
5586
void nm_test_func(void);
5587
void nm_test_func(void){}
5588
#ifdef __cplusplus
5589
}
5590
#endif
5591
int main(){nm_test_var='a';nm_test_func();return(0);}
5592
_LT_EOF
5593
 
5594 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5595 82 jeremybenn
  (eval $ac_compile) 2>&5
5596
  ac_status=$?
5597 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5598
  test $ac_status = 0; }; then
5599 82 jeremybenn
    # Now try to grab the symbols.
5600
    nlist=conftest.nm
5601 96 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5602 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5603
  ac_status=$?
5604 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5605
  test $ac_status = 0; } && test -s "$nlist"; then
5606 82 jeremybenn
      # Try sorting and uniquifying the output.
5607
      if sort "$nlist" | uniq > "$nlist"T; then
5608
        mv -f "$nlist"T "$nlist"
5609
      else
5610
        rm -f "$nlist"T
5611
      fi
5612
 
5613
      # Make sure that we snagged all the symbols we need.
5614
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5615
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5616
          cat <<_LT_EOF > conftest.$ac_ext
5617
#ifdef __cplusplus
5618
extern "C" {
5619
#endif
5620
 
5621
_LT_EOF
5622
          # Now generate the symbol file.
5623
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5624
 
5625
          cat <<_LT_EOF >> conftest.$ac_ext
5626
 
5627
/* The mapping between symbol names and symbols.  */
5628
const struct {
5629
  const char *name;
5630
  void       *address;
5631
}
5632
lt__PROGRAM__LTX_preloaded_symbols[] =
5633
{
5634
  { "@PROGRAM@", (void *) 0 },
5635
_LT_EOF
5636
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5637
          cat <<\_LT_EOF >> conftest.$ac_ext
5638
  {0, (void *) 0}
5639
};
5640
 
5641
/* This works around a problem in FreeBSD linker */
5642
#ifdef FREEBSD_WORKAROUND
5643
static const void *lt_preloaded_setup() {
5644
  return lt__PROGRAM__LTX_preloaded_symbols;
5645
}
5646
#endif
5647
 
5648
#ifdef __cplusplus
5649
}
5650
#endif
5651
_LT_EOF
5652
          # Now try linking the two files.
5653
          mv conftest.$ac_objext conftstm.$ac_objext
5654
          lt_save_LIBS="$LIBS"
5655
          lt_save_CFLAGS="$CFLAGS"
5656
          LIBS="conftstm.$ac_objext"
5657
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5658 96 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5659 82 jeremybenn
  (eval $ac_link) 2>&5
5660
  ac_status=$?
5661 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5663 82 jeremybenn
            pipe_works=yes
5664
          fi
5665
          LIBS="$lt_save_LIBS"
5666
          CFLAGS="$lt_save_CFLAGS"
5667
        else
5668
          echo "cannot find nm_test_func in $nlist" >&5
5669
        fi
5670
      else
5671
        echo "cannot find nm_test_var in $nlist" >&5
5672
      fi
5673
    else
5674
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5675
    fi
5676
  else
5677
    echo "$progname: failed program was:" >&5
5678
    cat conftest.$ac_ext >&5
5679
  fi
5680
  rm -rf conftest* conftst*
5681
 
5682
  # Do not use the global_symbol_pipe unless it works.
5683
  if test "$pipe_works" = yes; then
5684
    break
5685
  else
5686
    lt_cv_sys_global_symbol_pipe=
5687
  fi
5688
done
5689
 
5690
fi
5691
 
5692
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5693
  lt_cv_sys_global_symbol_to_cdecl=
5694
fi
5695
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5696 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5697 82 jeremybenn
$as_echo "failed" >&6; }
5698
else
5699 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5700 82 jeremybenn
$as_echo "ok" >&6; }
5701
fi
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722
 
5723
 
5724 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5725 96 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5726 19 jeremybenn
  enableval=$enable_libtool_lock;
5727
fi
5728
 
5729
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5730
 
5731
# Some flags need to be propagated to the compiler or linker for good
5732
# libtool support.
5733
case $host in
5734
ia64-*-hpux*)
5735
  # Find out which ABI we are using.
5736
  echo 'int i;' > conftest.$ac_ext
5737 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5738 19 jeremybenn
  (eval $ac_compile) 2>&5
5739
  ac_status=$?
5740 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741
  test $ac_status = 0; }; then
5742 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5743 82 jeremybenn
      *ELF-32*)
5744
        HPUX_IA64_MODE="32"
5745
        ;;
5746
      *ELF-64*)
5747
        HPUX_IA64_MODE="64"
5748
        ;;
5749 19 jeremybenn
    esac
5750
  fi
5751
  rm -rf conftest*
5752
  ;;
5753
*-*-irix6*)
5754
  # Find out which ABI we are using.
5755 96 jeremybenn
  echo '#line 5755 "configure"' > conftest.$ac_ext
5756
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5757 19 jeremybenn
  (eval $ac_compile) 2>&5
5758
  ac_status=$?
5759 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5760
  test $ac_status = 0; }; then
5761 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5762
      case `/usr/bin/file conftest.$ac_objext` in
5763
        *32-bit*)
5764
          LD="${LD-ld} -melf32bsmip"
5765
          ;;
5766
        *N32*)
5767
          LD="${LD-ld} -melf32bmipn32"
5768
          ;;
5769
        *64-bit*)
5770
          LD="${LD-ld} -melf64bmip"
5771
        ;;
5772
      esac
5773
    else
5774
      case `/usr/bin/file conftest.$ac_objext` in
5775
        *32-bit*)
5776
          LD="${LD-ld} -32"
5777
          ;;
5778
        *N32*)
5779
          LD="${LD-ld} -n32"
5780
          ;;
5781
        *64-bit*)
5782
          LD="${LD-ld} -64"
5783
          ;;
5784
      esac
5785
    fi
5786 19 jeremybenn
  fi
5787
  rm -rf conftest*
5788
  ;;
5789
 
5790
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5791 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5792 19 jeremybenn
  # Find out which ABI we are using.
5793
  echo 'int i;' > conftest.$ac_ext
5794 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5795 19 jeremybenn
  (eval $ac_compile) 2>&5
5796
  ac_status=$?
5797 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5798
  test $ac_status = 0; }; then
5799 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5800 82 jeremybenn
      *32-bit*)
5801
        case $host in
5802
          x86_64-*kfreebsd*-gnu)
5803
            LD="${LD-ld} -m elf_i386_fbsd"
5804
            ;;
5805
          x86_64-*linux*)
5806
            LD="${LD-ld} -m elf_i386"
5807
            ;;
5808
          ppc64-*linux*|powerpc64-*linux*)
5809
            LD="${LD-ld} -m elf32ppclinux"
5810
            ;;
5811
          s390x-*linux*)
5812
            LD="${LD-ld} -m elf_s390"
5813
            ;;
5814
          sparc64-*linux*)
5815
            LD="${LD-ld} -m elf32_sparc"
5816
            ;;
5817
        esac
5818
        ;;
5819
      *64-bit*)
5820
        case $host in
5821
          x86_64-*kfreebsd*-gnu)
5822
            LD="${LD-ld} -m elf_x86_64_fbsd"
5823
            ;;
5824
          x86_64-*linux*)
5825
            LD="${LD-ld} -m elf_x86_64"
5826
            ;;
5827
          ppc*-*linux*|powerpc*-*linux*)
5828
            LD="${LD-ld} -m elf64ppc"
5829
            ;;
5830
          s390*-*linux*|s390*-*tpf*)
5831
            LD="${LD-ld} -m elf64_s390"
5832
            ;;
5833
          sparc*-*linux*)
5834
            LD="${LD-ld} -m elf64_sparc"
5835
            ;;
5836
        esac
5837
        ;;
5838 19 jeremybenn
    esac
5839
  fi
5840
  rm -rf conftest*
5841
  ;;
5842
 
5843
*-*-sco3.2v5*)
5844
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5845
  SAVE_CFLAGS="$CFLAGS"
5846
  CFLAGS="$CFLAGS -belf"
5847 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5848 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5849 96 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5850 82 jeremybenn
  $as_echo_n "(cached) " >&6
5851 19 jeremybenn
else
5852
  ac_ext=c
5853
ac_cpp='$CPP $CPPFLAGS'
5854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
 
5858 96 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 19 jeremybenn
/* end confdefs.h.  */
5860
 
5861
int
5862
main ()
5863
{
5864
 
5865
  ;
5866
  return 0;
5867
}
5868
_ACEOF
5869 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5870 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5871
else
5872 96 jeremybenn
  lt_cv_cc_needs_belf=no
5873 19 jeremybenn
fi
5874 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5875
    conftest$ac_exeext conftest.$ac_ext
5876 19 jeremybenn
     ac_ext=c
5877
ac_cpp='$CPP $CPPFLAGS'
5878
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881
 
5882
fi
5883 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5884 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5885 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5886
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5887
    CFLAGS="$SAVE_CFLAGS"
5888
  fi
5889
  ;;
5890
sparc*-*solaris*)
5891
  # Find out which ABI we are using.
5892
  echo 'int i;' > conftest.$ac_ext
5893 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5894 19 jeremybenn
  (eval $ac_compile) 2>&5
5895
  ac_status=$?
5896 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897
  test $ac_status = 0; }; then
5898 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5899
    *64-bit*)
5900
      case $lt_cv_prog_gnu_ld in
5901
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5902 82 jeremybenn
      *)
5903
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5904
          LD="${LD-ld} -64"
5905
        fi
5906
        ;;
5907 19 jeremybenn
      esac
5908
      ;;
5909
    esac
5910
  fi
5911
  rm -rf conftest*
5912
  ;;
5913 82 jeremybenn
esac
5914 19 jeremybenn
 
5915 82 jeremybenn
need_locks="$enable_libtool_lock"
5916 19 jeremybenn
 
5917 82 jeremybenn
 
5918
  case $host_os in
5919
    rhapsody* | darwin*)
5920
    if test -n "$ac_tool_prefix"; then
5921
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5922
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5923 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5925 96 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5926 82 jeremybenn
  $as_echo_n "(cached) " >&6
5927
else
5928
  if test -n "$DSYMUTIL"; then
5929
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5930
else
5931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
for as_dir in $PATH
5933
do
5934
  IFS=$as_save_IFS
5935
  test -z "$as_dir" && as_dir=.
5936 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5937 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5939 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 82 jeremybenn
    break 2
5941
  fi
5942
done
5943 96 jeremybenn
  done
5944 82 jeremybenn
IFS=$as_save_IFS
5945
 
5946
fi
5947
fi
5948
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5949
if test -n "$DSYMUTIL"; then
5950 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5951 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5952
else
5953 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 82 jeremybenn
$as_echo "no" >&6; }
5955
fi
5956
 
5957
 
5958
fi
5959
if test -z "$ac_cv_prog_DSYMUTIL"; then
5960
  ac_ct_DSYMUTIL=$DSYMUTIL
5961
  # Extract the first word of "dsymutil", so it can be a program name with args.
5962
set dummy dsymutil; ac_word=$2
5963 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5965 96 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5966 82 jeremybenn
  $as_echo_n "(cached) " >&6
5967
else
5968
  if test -n "$ac_ct_DSYMUTIL"; then
5969
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5970
else
5971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972
for as_dir in $PATH
5973
do
5974
  IFS=$as_save_IFS
5975
  test -z "$as_dir" && as_dir=.
5976 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5977 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5979 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 82 jeremybenn
    break 2
5981
  fi
5982
done
5983 96 jeremybenn
  done
5984 82 jeremybenn
IFS=$as_save_IFS
5985
 
5986
fi
5987
fi
5988
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5989
if test -n "$ac_ct_DSYMUTIL"; then
5990 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5991 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5992
else
5993 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 82 jeremybenn
$as_echo "no" >&6; }
5995
fi
5996
 
5997
  if test "x$ac_ct_DSYMUTIL" = x; then
5998
    DSYMUTIL=":"
5999
  else
6000
    case $cross_compiling:$ac_tool_warned in
6001
yes:)
6002 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004
ac_tool_warned=yes ;;
6005 19 jeremybenn
esac
6006 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6007
  fi
6008
else
6009
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6010
fi
6011 19 jeremybenn
 
6012 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6013
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6014
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6015 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6017 96 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6018 82 jeremybenn
  $as_echo_n "(cached) " >&6
6019
else
6020
  if test -n "$NMEDIT"; then
6021
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6022
else
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
for as_dir in $PATH
6025
do
6026
  IFS=$as_save_IFS
6027
  test -z "$as_dir" && as_dir=.
6028 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6029 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6031 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 82 jeremybenn
    break 2
6033
  fi
6034
done
6035 96 jeremybenn
  done
6036 82 jeremybenn
IFS=$as_save_IFS
6037 19 jeremybenn
 
6038 82 jeremybenn
fi
6039
fi
6040
NMEDIT=$ac_cv_prog_NMEDIT
6041
if test -n "$NMEDIT"; then
6042 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6043 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6044
else
6045 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 82 jeremybenn
$as_echo "no" >&6; }
6047
fi
6048 19 jeremybenn
 
6049 82 jeremybenn
 
6050
fi
6051
if test -z "$ac_cv_prog_NMEDIT"; then
6052
  ac_ct_NMEDIT=$NMEDIT
6053
  # Extract the first word of "nmedit", so it can be a program name with args.
6054
set dummy nmedit; ac_word=$2
6055 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6057 96 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6058 82 jeremybenn
  $as_echo_n "(cached) " >&6
6059
else
6060
  if test -n "$ac_ct_NMEDIT"; then
6061
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6062
else
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064
for as_dir in $PATH
6065
do
6066
  IFS=$as_save_IFS
6067
  test -z "$as_dir" && as_dir=.
6068 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6069 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6071 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 82 jeremybenn
    break 2
6073
  fi
6074
done
6075 96 jeremybenn
  done
6076 82 jeremybenn
IFS=$as_save_IFS
6077
 
6078
fi
6079
fi
6080
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6081
if test -n "$ac_ct_NMEDIT"; then
6082 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6083 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6084
else
6085 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 82 jeremybenn
$as_echo "no" >&6; }
6087
fi
6088
 
6089
  if test "x$ac_ct_NMEDIT" = x; then
6090
    NMEDIT=":"
6091
  else
6092
    case $cross_compiling:$ac_tool_warned in
6093
yes:)
6094 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096
ac_tool_warned=yes ;;
6097
esac
6098
    NMEDIT=$ac_ct_NMEDIT
6099
  fi
6100
else
6101
  NMEDIT="$ac_cv_prog_NMEDIT"
6102
fi
6103
 
6104
    if test -n "$ac_tool_prefix"; then
6105
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6106
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6107 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6109 96 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
6110 82 jeremybenn
  $as_echo_n "(cached) " >&6
6111
else
6112
  if test -n "$LIPO"; then
6113
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6114
else
6115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116
for as_dir in $PATH
6117
do
6118
  IFS=$as_save_IFS
6119
  test -z "$as_dir" && as_dir=.
6120 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6121 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6123 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 82 jeremybenn
    break 2
6125
  fi
6126
done
6127 96 jeremybenn
  done
6128 82 jeremybenn
IFS=$as_save_IFS
6129
 
6130
fi
6131
fi
6132
LIPO=$ac_cv_prog_LIPO
6133
if test -n "$LIPO"; then
6134 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6135 82 jeremybenn
$as_echo "$LIPO" >&6; }
6136
else
6137 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 82 jeremybenn
$as_echo "no" >&6; }
6139
fi
6140
 
6141
 
6142
fi
6143
if test -z "$ac_cv_prog_LIPO"; then
6144
  ac_ct_LIPO=$LIPO
6145
  # Extract the first word of "lipo", so it can be a program name with args.
6146
set dummy lipo; ac_word=$2
6147 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6149 96 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6150 82 jeremybenn
  $as_echo_n "(cached) " >&6
6151
else
6152
  if test -n "$ac_ct_LIPO"; then
6153
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6154
else
6155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156
for as_dir in $PATH
6157
do
6158
  IFS=$as_save_IFS
6159
  test -z "$as_dir" && as_dir=.
6160 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6161 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162
    ac_cv_prog_ac_ct_LIPO="lipo"
6163 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 82 jeremybenn
    break 2
6165
  fi
6166
done
6167 96 jeremybenn
  done
6168 82 jeremybenn
IFS=$as_save_IFS
6169
 
6170
fi
6171
fi
6172
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6173
if test -n "$ac_ct_LIPO"; then
6174 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6175 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6176
else
6177 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 82 jeremybenn
$as_echo "no" >&6; }
6179
fi
6180
 
6181
  if test "x$ac_ct_LIPO" = x; then
6182
    LIPO=":"
6183
  else
6184
    case $cross_compiling:$ac_tool_warned in
6185
yes:)
6186 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188
ac_tool_warned=yes ;;
6189
esac
6190
    LIPO=$ac_ct_LIPO
6191
  fi
6192
else
6193
  LIPO="$ac_cv_prog_LIPO"
6194
fi
6195
 
6196
    if test -n "$ac_tool_prefix"; then
6197
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6198
set dummy ${ac_tool_prefix}otool; ac_word=$2
6199 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6201 96 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6202 82 jeremybenn
  $as_echo_n "(cached) " >&6
6203
else
6204
  if test -n "$OTOOL"; then
6205
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6206
else
6207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208
for as_dir in $PATH
6209
do
6210
  IFS=$as_save_IFS
6211
  test -z "$as_dir" && as_dir=.
6212 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6213 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6215 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 82 jeremybenn
    break 2
6217
  fi
6218
done
6219 96 jeremybenn
  done
6220 82 jeremybenn
IFS=$as_save_IFS
6221
 
6222
fi
6223
fi
6224
OTOOL=$ac_cv_prog_OTOOL
6225
if test -n "$OTOOL"; then
6226 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6227 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6228
else
6229 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 82 jeremybenn
$as_echo "no" >&6; }
6231
fi
6232
 
6233
 
6234
fi
6235
if test -z "$ac_cv_prog_OTOOL"; then
6236
  ac_ct_OTOOL=$OTOOL
6237
  # Extract the first word of "otool", so it can be a program name with args.
6238
set dummy otool; ac_word=$2
6239 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6241 96 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6242 82 jeremybenn
  $as_echo_n "(cached) " >&6
6243
else
6244
  if test -n "$ac_ct_OTOOL"; then
6245
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6246
else
6247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248
for as_dir in $PATH
6249
do
6250
  IFS=$as_save_IFS
6251
  test -z "$as_dir" && as_dir=.
6252 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6253 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254
    ac_cv_prog_ac_ct_OTOOL="otool"
6255 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 82 jeremybenn
    break 2
6257
  fi
6258
done
6259 96 jeremybenn
  done
6260 82 jeremybenn
IFS=$as_save_IFS
6261
 
6262
fi
6263
fi
6264
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6265
if test -n "$ac_ct_OTOOL"; then
6266 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6267 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6268
else
6269 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 82 jeremybenn
$as_echo "no" >&6; }
6271
fi
6272
 
6273
  if test "x$ac_ct_OTOOL" = x; then
6274
    OTOOL=":"
6275
  else
6276
    case $cross_compiling:$ac_tool_warned in
6277
yes:)
6278 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280
ac_tool_warned=yes ;;
6281
esac
6282
    OTOOL=$ac_ct_OTOOL
6283
  fi
6284
else
6285
  OTOOL="$ac_cv_prog_OTOOL"
6286
fi
6287
 
6288
    if test -n "$ac_tool_prefix"; then
6289
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6290
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6291 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6293 96 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6294 82 jeremybenn
  $as_echo_n "(cached) " >&6
6295
else
6296
  if test -n "$OTOOL64"; then
6297
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6298
else
6299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300
for as_dir in $PATH
6301
do
6302
  IFS=$as_save_IFS
6303
  test -z "$as_dir" && as_dir=.
6304 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6305 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6307 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 82 jeremybenn
    break 2
6309
  fi
6310
done
6311 96 jeremybenn
  done
6312 82 jeremybenn
IFS=$as_save_IFS
6313
 
6314
fi
6315
fi
6316
OTOOL64=$ac_cv_prog_OTOOL64
6317
if test -n "$OTOOL64"; then
6318 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6319 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6320
else
6321 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 82 jeremybenn
$as_echo "no" >&6; }
6323
fi
6324
 
6325
 
6326
fi
6327
if test -z "$ac_cv_prog_OTOOL64"; then
6328
  ac_ct_OTOOL64=$OTOOL64
6329
  # Extract the first word of "otool64", so it can be a program name with args.
6330
set dummy otool64; ac_word=$2
6331 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6333 96 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6334 82 jeremybenn
  $as_echo_n "(cached) " >&6
6335
else
6336
  if test -n "$ac_ct_OTOOL64"; then
6337
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6338
else
6339
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
for as_dir in $PATH
6341
do
6342
  IFS=$as_save_IFS
6343
  test -z "$as_dir" && as_dir=.
6344 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6345 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6347 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 82 jeremybenn
    break 2
6349
  fi
6350
done
6351 96 jeremybenn
  done
6352 82 jeremybenn
IFS=$as_save_IFS
6353
 
6354
fi
6355
fi
6356
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6357
if test -n "$ac_ct_OTOOL64"; then
6358 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6359 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6360
else
6361 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 82 jeremybenn
$as_echo "no" >&6; }
6363
fi
6364
 
6365
  if test "x$ac_ct_OTOOL64" = x; then
6366
    OTOOL64=":"
6367
  else
6368
    case $cross_compiling:$ac_tool_warned in
6369
yes:)
6370 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372
ac_tool_warned=yes ;;
6373
esac
6374
    OTOOL64=$ac_ct_OTOOL64
6375
  fi
6376
else
6377
  OTOOL64="$ac_cv_prog_OTOOL64"
6378
fi
6379
 
6380
 
6381
 
6382
 
6383
 
6384
 
6385
 
6386
 
6387
 
6388
 
6389
 
6390
 
6391
 
6392
 
6393
 
6394
 
6395
 
6396
 
6397
 
6398
 
6399
 
6400
 
6401
 
6402
 
6403
 
6404
 
6405
 
6406 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6407 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6408 96 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6409 82 jeremybenn
  $as_echo_n "(cached) " >&6
6410
else
6411
  lt_cv_apple_cc_single_mod=no
6412
      if test -z "${LT_MULTI_MODULE}"; then
6413
        # By default we will add the -single_module flag. You can override
6414
        # by either setting the environment variable LT_MULTI_MODULE
6415
        # non-empty at configure time, or by adding -multi_module to the
6416
        # link flags.
6417
        rm -rf libconftest.dylib*
6418
        echo "int foo(void){return 1;}" > conftest.c
6419
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6420
-dynamiclib -Wl,-single_module conftest.c" >&5
6421
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6422
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6423
        _lt_result=$?
6424
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6425
          lt_cv_apple_cc_single_mod=yes
6426
        else
6427
          cat conftest.err >&5
6428
        fi
6429
        rm -rf libconftest.dylib*
6430
        rm -f conftest.*
6431
      fi
6432
fi
6433 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6434 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6435 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6436 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6437 96 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6438 82 jeremybenn
  $as_echo_n "(cached) " >&6
6439
else
6440
  lt_cv_ld_exported_symbols_list=no
6441
      save_LDFLAGS=$LDFLAGS
6442
      echo "_main" > conftest.sym
6443
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6444 96 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 82 jeremybenn
/* end confdefs.h.  */
6446
 
6447
int
6448
main ()
6449
{
6450
 
6451
  ;
6452
  return 0;
6453
}
6454
_ACEOF
6455 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6456 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6457
else
6458 96 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6459 82 jeremybenn
fi
6460 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6461
    conftest$ac_exeext conftest.$ac_ext
6462 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6463
 
6464
fi
6465 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6466 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6467
    case $host_os in
6468
    rhapsody* | darwin1.[012])
6469
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6470
    darwin1.*)
6471
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6472
    darwin*) # darwin 5.x on
6473
      # if running on 10.5 or later, the deployment target defaults
6474
      # to the OS version, if on x86, and 10.4, the deployment
6475
      # target defaults to 10.4. Don't you love it?
6476
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6477
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6478
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6479
        10.[012]*)
6480
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6481
        10.*)
6482
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6483
      esac
6484
    ;;
6485
  esac
6486
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6487
      _lt_dar_single_mod='$single_module'
6488
    fi
6489
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6490
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6491
    else
6492
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6493
    fi
6494
    if test "$DSYMUTIL" != ":"; then
6495
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6496
    else
6497
      _lt_dsymutil=
6498
    fi
6499
    ;;
6500
  esac
6501
 
6502 19 jeremybenn
for ac_header in dlfcn.h
6503 96 jeremybenn
do :
6504
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6505
"
6506
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6507 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6508 96 jeremybenn
#define HAVE_DLFCN_H 1
6509 19 jeremybenn
_ACEOF
6510
 
6511
fi
6512
 
6513
done
6514
 
6515
 
6516
 
6517 82 jeremybenn
# Set options
6518 19 jeremybenn
 
6519
 
6520
 
6521 82 jeremybenn
        enable_dlopen=no
6522 19 jeremybenn
 
6523
 
6524 82 jeremybenn
  enable_win32_dll=no
6525 19 jeremybenn
 
6526
 
6527 82 jeremybenn
            # Check whether --enable-shared was given.
6528 96 jeremybenn
if test "${enable_shared+set}" = set; then :
6529 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6530
    case $enableval in
6531
    yes) enable_shared=yes ;;
6532
    no) enable_shared=no ;;
6533
    *)
6534
      enable_shared=no
6535
      # Look at the argument we got.  We use all the common list separators.
6536
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6537
      for pkg in $enableval; do
6538
        IFS="$lt_save_ifs"
6539
        if test "X$pkg" = "X$p"; then
6540
          enable_shared=yes
6541
        fi
6542
      done
6543
      IFS="$lt_save_ifs"
6544
      ;;
6545
    esac
6546 19 jeremybenn
else
6547 82 jeremybenn
  enable_shared=yes
6548 19 jeremybenn
fi
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556
 
6557
 
6558 82 jeremybenn
  # Check whether --enable-static was given.
6559 96 jeremybenn
if test "${enable_static+set}" = set; then :
6560 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6561
    case $enableval in
6562
    yes) enable_static=yes ;;
6563
    no) enable_static=no ;;
6564
    *)
6565
     enable_static=no
6566
      # Look at the argument we got.  We use all the common list separators.
6567
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6568
      for pkg in $enableval; do
6569
        IFS="$lt_save_ifs"
6570
        if test "X$pkg" = "X$p"; then
6571
          enable_static=yes
6572
        fi
6573
      done
6574
      IFS="$lt_save_ifs"
6575
      ;;
6576
    esac
6577 19 jeremybenn
else
6578 82 jeremybenn
  enable_static=yes
6579 19 jeremybenn
fi
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588
 
6589
 
6590 82 jeremybenn
# Check whether --with-pic was given.
6591 96 jeremybenn
if test "${with_pic+set}" = set; then :
6592 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6593 19 jeremybenn
else
6594 82 jeremybenn
  pic_mode=default
6595 19 jeremybenn
fi
6596
 
6597
 
6598 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6599 19 jeremybenn
 
6600
 
6601
 
6602
 
6603
 
6604
 
6605
 
6606 82 jeremybenn
  # Check whether --enable-fast-install was given.
6607 96 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6608 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6609
    case $enableval in
6610
    yes) enable_fast_install=yes ;;
6611
    no) enable_fast_install=no ;;
6612
    *)
6613
      enable_fast_install=no
6614
      # Look at the argument we got.  We use all the common list separators.
6615
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6616
      for pkg in $enableval; do
6617
        IFS="$lt_save_ifs"
6618
        if test "X$pkg" = "X$p"; then
6619
          enable_fast_install=yes
6620
        fi
6621
      done
6622
      IFS="$lt_save_ifs"
6623
      ;;
6624
    esac
6625 19 jeremybenn
else
6626 82 jeremybenn
  enable_fast_install=yes
6627 19 jeremybenn
fi
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637
 
6638
 
6639 82 jeremybenn
# This can be used to rebuild libtool when needed
6640
LIBTOOL_DEPS="$ltmain"
6641 19 jeremybenn
 
6642 82 jeremybenn
# Always use our own libtool.
6643
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6644 19 jeremybenn
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
 
6657
 
6658
 
6659
 
6660
 
6661
 
6662
 
6663
 
6664
 
6665
 
6666
 
6667
 
6668
 
6669 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6670 19 jeremybenn
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679
 
6680
 
6681
 
6682
 
6683
 
6684 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6685
   setopt NO_GLOB_SUBST
6686 19 jeremybenn
fi
6687
 
6688 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6689 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6690 96 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6691 82 jeremybenn
  $as_echo_n "(cached) " >&6
6692 19 jeremybenn
else
6693
  rm -f .libs 2>/dev/null
6694
mkdir .libs 2>/dev/null
6695
if test -d .libs; then
6696
  lt_cv_objdir=.libs
6697
else
6698
  # MS-DOS does not allow filenames that begin with a dot.
6699
  lt_cv_objdir=_libs
6700
fi
6701
rmdir .libs 2>/dev/null
6702
fi
6703 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6704 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6705 19 jeremybenn
objdir=$lt_cv_objdir
6706
 
6707
 
6708
 
6709
 
6710
 
6711 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6712
#define LT_OBJDIR "$lt_cv_objdir/"
6713
_ACEOF
6714
 
6715
 
6716
 
6717
 
6718
 
6719
 
6720
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726
 
6727
 
6728
 
6729
 
6730
 
6731 19 jeremybenn
case $host_os in
6732
aix3*)
6733
  # AIX sometimes has problems with the GCC collect2 program.  For some
6734
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6735
  # vanish in a puff of smoke.
6736
  if test "X${COLLECT_NAMES+set}" != Xset; then
6737
    COLLECT_NAMES=
6738
    export COLLECT_NAMES
6739
  fi
6740
  ;;
6741
esac
6742
 
6743
# Sed substitution that helps us do robust quoting.  It backslashifies
6744
# metacharacters that are still active within double-quoted strings.
6745 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6746 19 jeremybenn
 
6747
# Same as above, but do not quote variable references.
6748 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6749 19 jeremybenn
 
6750
# Sed substitution to delay expansion of an escaped shell variable in a
6751
# double_quote_subst'ed string.
6752
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6753
 
6754 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6755
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6756
 
6757 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6758
no_glob_subst='s/\*/\\\*/g'
6759
 
6760
# Global variables:
6761 82 jeremybenn
ofile=libtool
6762 19 jeremybenn
can_build_shared=yes
6763
 
6764
# All known linkers require a `.a' archive for static linking (except MSVC,
6765
# which needs '.lib').
6766
libext=a
6767 82 jeremybenn
 
6768 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6769
 
6770
old_CC="$CC"
6771
old_CFLAGS="$CFLAGS"
6772
 
6773
# Set sane defaults for various variables
6774
test -z "$CC" && CC=cc
6775
test -z "$LTCC" && LTCC=$CC
6776
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6777
test -z "$LD" && LD=ld
6778
test -z "$ac_objext" && ac_objext=o
6779
 
6780
for cc_temp in $compiler""; do
6781
  case $cc_temp in
6782
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6783
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6784
    \-*) ;;
6785
    *) break;;
6786
  esac
6787
done
6788 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6789 19 jeremybenn
 
6790
 
6791
# Only perform the check for file, if the check method requires it
6792 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6793 19 jeremybenn
case $deplibs_check_method in
6794
file_magic*)
6795
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6796 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6797 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6798 96 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6799 82 jeremybenn
  $as_echo_n "(cached) " >&6
6800 19 jeremybenn
else
6801
  case $MAGIC_CMD in
6802
[\\/*] |  ?:[\\/]*)
6803
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6804
  ;;
6805
*)
6806
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6807
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6808
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6809
  for ac_dir in $ac_dummy; do
6810
    IFS="$lt_save_ifs"
6811
    test -z "$ac_dir" && ac_dir=.
6812
    if test -f $ac_dir/${ac_tool_prefix}file; then
6813
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6814
      if test -n "$file_magic_test_file"; then
6815
        case $deplibs_check_method in
6816
        "file_magic "*)
6817
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6818
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6819
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6820
            $EGREP "$file_magic_regex" > /dev/null; then
6821
            :
6822
          else
6823 82 jeremybenn
            cat <<_LT_EOF 1>&2
6824 19 jeremybenn
 
6825
*** Warning: the command libtool uses to detect shared libraries,
6826
*** $file_magic_cmd, produces output that libtool cannot recognize.
6827
*** The result is that libtool may fail to recognize shared libraries
6828
*** as such.  This will affect the creation of libtool libraries that
6829
*** depend on shared libraries, but programs linked with such libtool
6830
*** libraries will work regardless of this problem.  Nevertheless, you
6831
*** may want to report the problem to your system manager and/or to
6832
*** bug-libtool@gnu.org
6833
 
6834 82 jeremybenn
_LT_EOF
6835 19 jeremybenn
          fi ;;
6836
        esac
6837
      fi
6838
      break
6839
    fi
6840
  done
6841
  IFS="$lt_save_ifs"
6842
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6843
  ;;
6844
esac
6845
fi
6846
 
6847
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6848
if test -n "$MAGIC_CMD"; then
6849 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6850 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6851 19 jeremybenn
else
6852 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 82 jeremybenn
$as_echo "no" >&6; }
6854 19 jeremybenn
fi
6855
 
6856 82 jeremybenn
 
6857
 
6858
 
6859
 
6860 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6861
  if test -n "$ac_tool_prefix"; then
6862 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6863 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6864 96 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6865 82 jeremybenn
  $as_echo_n "(cached) " >&6
6866 19 jeremybenn
else
6867
  case $MAGIC_CMD in
6868
[\\/*] |  ?:[\\/]*)
6869
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6870
  ;;
6871
*)
6872
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6873
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6874
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6875
  for ac_dir in $ac_dummy; do
6876
    IFS="$lt_save_ifs"
6877
    test -z "$ac_dir" && ac_dir=.
6878
    if test -f $ac_dir/file; then
6879
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6880
      if test -n "$file_magic_test_file"; then
6881
        case $deplibs_check_method in
6882
        "file_magic "*)
6883
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6884
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6885
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6886
            $EGREP "$file_magic_regex" > /dev/null; then
6887
            :
6888
          else
6889 82 jeremybenn
            cat <<_LT_EOF 1>&2
6890 19 jeremybenn
 
6891
*** Warning: the command libtool uses to detect shared libraries,
6892
*** $file_magic_cmd, produces output that libtool cannot recognize.
6893
*** The result is that libtool may fail to recognize shared libraries
6894
*** as such.  This will affect the creation of libtool libraries that
6895
*** depend on shared libraries, but programs linked with such libtool
6896
*** libraries will work regardless of this problem.  Nevertheless, you
6897
*** may want to report the problem to your system manager and/or to
6898
*** bug-libtool@gnu.org
6899
 
6900 82 jeremybenn
_LT_EOF
6901 19 jeremybenn
          fi ;;
6902
        esac
6903
      fi
6904
      break
6905
    fi
6906
  done
6907
  IFS="$lt_save_ifs"
6908
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6909
  ;;
6910
esac
6911
fi
6912
 
6913
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6914
if test -n "$MAGIC_CMD"; then
6915 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6916 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6917 19 jeremybenn
else
6918 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 82 jeremybenn
$as_echo "no" >&6; }
6920 19 jeremybenn
fi
6921
 
6922 82 jeremybenn
 
6923 19 jeremybenn
  else
6924
    MAGIC_CMD=:
6925
  fi
6926
fi
6927
 
6928
  fi
6929
  ;;
6930
esac
6931
 
6932 82 jeremybenn
# Use C for the default configuration in the libtool script
6933 19 jeremybenn
 
6934
lt_save_CC="$CC"
6935
ac_ext=c
6936
ac_cpp='$CPP $CPPFLAGS'
6937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940
 
6941
 
6942
# Source file extension for C test sources.
6943
ac_ext=c
6944
 
6945
# Object file extension for compiled C test sources.
6946
objext=o
6947
objext=$objext
6948
 
6949
# Code to be used in simple compile tests
6950
lt_simple_compile_test_code="int some_variable = 0;"
6951
 
6952
# Code to be used in simple link tests
6953
lt_simple_link_test_code='int main(){return(0);}'
6954
 
6955
 
6956 82 jeremybenn
 
6957
 
6958
 
6959
 
6960
 
6961 19 jeremybenn
# If no C compiler was specified, use CC.
6962
LTCC=${LTCC-"$CC"}
6963
 
6964
# If no C compiler flags were specified, use CFLAGS.
6965
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6966
 
6967
# Allow CC to be a program name with arguments.
6968
compiler=$CC
6969
 
6970 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6971
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6972
compiler_DEFAULT=$CC
6973 19 jeremybenn
 
6974
# save warnings/boilerplate of simple test code
6975
ac_outfile=conftest.$ac_objext
6976
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6977
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6978
_lt_compiler_boilerplate=`cat conftest.err`
6979 82 jeremybenn
$RM conftest*
6980 19 jeremybenn
 
6981
ac_outfile=conftest.$ac_objext
6982
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6983
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6984
_lt_linker_boilerplate=`cat conftest.err`
6985 82 jeremybenn
$RM -r conftest*
6986 19 jeremybenn
 
6987
 
6988 82 jeremybenn
## CAVEAT EMPTOR:
6989
## There is no encapsulation within the following macros, do not change
6990
## the running order or otherwise move them around unless you know exactly
6991
## what you are doing...
6992
if test -n "$compiler"; then
6993 19 jeremybenn
 
6994
lt_prog_compiler_no_builtin_flag=
6995
 
6996
if test "$GCC" = yes; then
6997
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6998
 
6999 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7000 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7001 96 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7002 82 jeremybenn
  $as_echo_n "(cached) " >&6
7003 19 jeremybenn
else
7004
  lt_cv_prog_compiler_rtti_exceptions=no
7005 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7006 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7007
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7008
   # Insert the option either (1) after the last *FLAGS variable, or
7009
   # (2) before a word containing "conftest.", or (3) at the end.
7010
   # Note that $ac_compile itself does not contain backslashes and begins
7011
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7012
   # The option is referenced via a variable to avoid confusing sed.
7013
   lt_compile=`echo "$ac_compile" | $SED \
7014
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7015
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7016
   -e 's:$: $lt_compiler_flag:'`
7017 96 jeremybenn
   (eval echo "\"\$as_me:7017: $lt_compile\"" >&5)
7018 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7019
   ac_status=$?
7020
   cat conftest.err >&5
7021 96 jeremybenn
   echo "$as_me:7021: \$? = $ac_status" >&5
7022 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7023
     # The compiler can only warn and ignore the option if not recognized
7024
     # So say no if there are warnings other than the usual output.
7025 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7026 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7027
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7028
       lt_cv_prog_compiler_rtti_exceptions=yes
7029
     fi
7030
   fi
7031 82 jeremybenn
   $RM conftest*
7032 19 jeremybenn
 
7033
fi
7034 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7035 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7036 19 jeremybenn
 
7037
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7038
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7039
else
7040
    :
7041
fi
7042
 
7043
fi
7044
 
7045 82 jeremybenn
 
7046
 
7047
 
7048
 
7049
 
7050
  lt_prog_compiler_wl=
7051 19 jeremybenn
lt_prog_compiler_pic=
7052
lt_prog_compiler_static=
7053
 
7054 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7055 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7056 19 jeremybenn
 
7057
  if test "$GCC" = yes; then
7058
    lt_prog_compiler_wl='-Wl,'
7059
    lt_prog_compiler_static='-static'
7060
 
7061
    case $host_os in
7062
      aix*)
7063
      # All AIX code is PIC.
7064
      if test "$host_cpu" = ia64; then
7065
        # AIX 5 now supports IA64 processor
7066
        lt_prog_compiler_static='-Bstatic'
7067
      fi
7068
      ;;
7069
 
7070
    amigaos*)
7071 82 jeremybenn
      case $host_cpu in
7072
      powerpc)
7073
            # see comment about AmigaOS4 .so support
7074
            lt_prog_compiler_pic='-fPIC'
7075
        ;;
7076
      m68k)
7077
            # FIXME: we need at least 68020 code to build shared libraries, but
7078
            # adding the `-m68020' flag to GCC prevents building anything better,
7079
            # like `-m68040'.
7080
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7081
        ;;
7082
      esac
7083 19 jeremybenn
      ;;
7084
 
7085
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7086
      # PIC is the default for these OSes.
7087
      ;;
7088
 
7089 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7090 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7091
      # built for inclusion in a dll (and should export symbols for example).
7092
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7093
      # (--disable-auto-import) libraries
7094
      lt_prog_compiler_pic='-DDLL_EXPORT'
7095
      ;;
7096
 
7097
    darwin* | rhapsody*)
7098
      # PIC is the default on this platform
7099
      # Common symbols not allowed in MH_DYLIB files
7100
      lt_prog_compiler_pic='-fno-common'
7101
      ;;
7102
 
7103 82 jeremybenn
    hpux*)
7104
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7105
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7106
      # sets the default TLS model and affects inlining.
7107
      case $host_cpu in
7108
      hppa*64*)
7109
        # +Z the default
7110
        ;;
7111
      *)
7112
        lt_prog_compiler_pic='-fPIC'
7113
        ;;
7114
      esac
7115
      ;;
7116
 
7117 19 jeremybenn
    interix[3-9]*)
7118
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7119
      # Instead, we relocate shared libraries at runtime.
7120
      ;;
7121
 
7122
    msdosdjgpp*)
7123
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7124
      # on systems that don't support them.
7125
      lt_prog_compiler_can_build_shared=no
7126
      enable_shared=no
7127
      ;;
7128
 
7129 82 jeremybenn
    *nto* | *qnx*)
7130
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7131
      # it will coredump.
7132
      lt_prog_compiler_pic='-fPIC -shared'
7133
      ;;
7134
 
7135 19 jeremybenn
    sysv4*MP*)
7136
      if test -d /usr/nec; then
7137
        lt_prog_compiler_pic=-Kconform_pic
7138
      fi
7139
      ;;
7140
 
7141
    *)
7142
      lt_prog_compiler_pic='-fPIC'
7143
      ;;
7144
    esac
7145
  else
7146
    # PORTME Check for flag to pass linker flags through the system compiler.
7147
    case $host_os in
7148
    aix*)
7149
      lt_prog_compiler_wl='-Wl,'
7150
      if test "$host_cpu" = ia64; then
7151
        # AIX 5 now supports IA64 processor
7152
        lt_prog_compiler_static='-Bstatic'
7153
      else
7154
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7155
      fi
7156
      ;;
7157
 
7158 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7159 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7160
      # built for inclusion in a dll (and should export symbols for example).
7161
      lt_prog_compiler_pic='-DDLL_EXPORT'
7162
      ;;
7163
 
7164
    hpux9* | hpux10* | hpux11*)
7165
      lt_prog_compiler_wl='-Wl,'
7166
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7167
      # not for PA HP-UX.
7168
      case $host_cpu in
7169
      hppa*64*|ia64*)
7170
        # +Z the default
7171
        ;;
7172
      *)
7173
        lt_prog_compiler_pic='+Z'
7174
        ;;
7175
      esac
7176
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7177
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7178
      ;;
7179
 
7180
    irix5* | irix6* | nonstopux*)
7181
      lt_prog_compiler_wl='-Wl,'
7182
      # PIC (with -KPIC) is the default.
7183
      lt_prog_compiler_static='-non_shared'
7184
      ;;
7185
 
7186
    linux* | k*bsd*-gnu)
7187
      case $cc_basename in
7188 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7189
      ecc*)
7190 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7191
        lt_prog_compiler_pic='-KPIC'
7192
        lt_prog_compiler_static='-static'
7193
        ;;
7194 82 jeremybenn
      # icc used to be incompatible with GCC.
7195
      # ICC 10 doesn't accept -KPIC any more.
7196
      icc* | ifort*)
7197
        lt_prog_compiler_wl='-Wl,'
7198
        lt_prog_compiler_pic='-fPIC'
7199
        lt_prog_compiler_static='-static'
7200
        ;;
7201
      # Lahey Fortran 8.1.
7202
      lf95*)
7203
        lt_prog_compiler_wl='-Wl,'
7204
        lt_prog_compiler_pic='--shared'
7205
        lt_prog_compiler_static='--static'
7206
        ;;
7207 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7208
        # Portland Group compilers (*not* the Pentium gcc compiler,
7209
        # which looks to be a dead project)
7210
        lt_prog_compiler_wl='-Wl,'
7211
        lt_prog_compiler_pic='-fpic'
7212
        lt_prog_compiler_static='-Bstatic'
7213
        ;;
7214
      ccc*)
7215
        lt_prog_compiler_wl='-Wl,'
7216
        # All Alpha code is PIC.
7217
        lt_prog_compiler_static='-non_shared'
7218
        ;;
7219 82 jeremybenn
      xl*)
7220
        # IBM XL C 8.0/Fortran 10.1 on PPC
7221
        lt_prog_compiler_wl='-Wl,'
7222
        lt_prog_compiler_pic='-qpic'
7223
        lt_prog_compiler_static='-qstaticlink'
7224
        ;;
7225 19 jeremybenn
      *)
7226 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7227 19 jeremybenn
        *Sun\ C*)
7228
          # Sun C 5.9
7229
          lt_prog_compiler_pic='-KPIC'
7230
          lt_prog_compiler_static='-Bstatic'
7231
          lt_prog_compiler_wl='-Wl,'
7232
          ;;
7233
        *Sun\ F*)
7234
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7235
          lt_prog_compiler_pic='-KPIC'
7236
          lt_prog_compiler_static='-Bstatic'
7237
          lt_prog_compiler_wl=''
7238
          ;;
7239
        esac
7240
        ;;
7241
      esac
7242
      ;;
7243
 
7244 82 jeremybenn
    newsos6)
7245
      lt_prog_compiler_pic='-KPIC'
7246
      lt_prog_compiler_static='-Bstatic'
7247
      ;;
7248
 
7249
    *nto* | *qnx*)
7250
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7251
      # it will coredump.
7252
      lt_prog_compiler_pic='-fPIC -shared'
7253
      ;;
7254
 
7255 19 jeremybenn
    osf3* | osf4* | osf5*)
7256
      lt_prog_compiler_wl='-Wl,'
7257
      # All OSF/1 code is PIC.
7258
      lt_prog_compiler_static='-non_shared'
7259
      ;;
7260
 
7261
    rdos*)
7262
      lt_prog_compiler_static='-non_shared'
7263
      ;;
7264
 
7265
    solaris*)
7266
      lt_prog_compiler_pic='-KPIC'
7267
      lt_prog_compiler_static='-Bstatic'
7268
      case $cc_basename in
7269
      f77* | f90* | f95*)
7270
        lt_prog_compiler_wl='-Qoption ld ';;
7271
      *)
7272
        lt_prog_compiler_wl='-Wl,';;
7273
      esac
7274
      ;;
7275
 
7276
    sunos4*)
7277
      lt_prog_compiler_wl='-Qoption ld '
7278
      lt_prog_compiler_pic='-PIC'
7279
      lt_prog_compiler_static='-Bstatic'
7280
      ;;
7281
 
7282
    sysv4 | sysv4.2uw2* | sysv4.3*)
7283
      lt_prog_compiler_wl='-Wl,'
7284
      lt_prog_compiler_pic='-KPIC'
7285
      lt_prog_compiler_static='-Bstatic'
7286
      ;;
7287
 
7288
    sysv4*MP*)
7289
      if test -d /usr/nec ;then
7290
        lt_prog_compiler_pic='-Kconform_pic'
7291
        lt_prog_compiler_static='-Bstatic'
7292
      fi
7293
      ;;
7294
 
7295
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7296
      lt_prog_compiler_wl='-Wl,'
7297
      lt_prog_compiler_pic='-KPIC'
7298
      lt_prog_compiler_static='-Bstatic'
7299
      ;;
7300
 
7301
    unicos*)
7302
      lt_prog_compiler_wl='-Wl,'
7303
      lt_prog_compiler_can_build_shared=no
7304
      ;;
7305
 
7306
    uts4*)
7307
      lt_prog_compiler_pic='-pic'
7308
      lt_prog_compiler_static='-Bstatic'
7309
      ;;
7310
 
7311
    *)
7312
      lt_prog_compiler_can_build_shared=no
7313
      ;;
7314
    esac
7315
  fi
7316
 
7317 82 jeremybenn
case $host_os in
7318
  # For platforms which do not support PIC, -DPIC is meaningless:
7319
  *djgpp*)
7320
    lt_prog_compiler_pic=
7321
    ;;
7322
  *)
7323
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7324
    ;;
7325
esac
7326 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7327 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7328 19 jeremybenn
 
7329 82 jeremybenn
 
7330
 
7331
 
7332
 
7333
 
7334 19 jeremybenn
#
7335
# Check to make sure the PIC flag actually works.
7336
#
7337
if test -n "$lt_prog_compiler_pic"; then
7338 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7339 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7340 96 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7341 82 jeremybenn
  $as_echo_n "(cached) " >&6
7342 19 jeremybenn
else
7343 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7344
   ac_outfile=conftest.$ac_objext
7345 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7347
   # Insert the option either (1) after the last *FLAGS variable, or
7348
   # (2) before a word containing "conftest.", or (3) at the end.
7349
   # Note that $ac_compile itself does not contain backslashes and begins
7350
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7351
   # The option is referenced via a variable to avoid confusing sed.
7352
   lt_compile=`echo "$ac_compile" | $SED \
7353
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7354
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7355
   -e 's:$: $lt_compiler_flag:'`
7356 96 jeremybenn
   (eval echo "\"\$as_me:7356: $lt_compile\"" >&5)
7357 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7358
   ac_status=$?
7359
   cat conftest.err >&5
7360 96 jeremybenn
   echo "$as_me:7360: \$? = $ac_status" >&5
7361 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7362
     # The compiler can only warn and ignore the option if not recognized
7363
     # So say no if there are warnings other than the usual output.
7364 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7365 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7366
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7367 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7368 19 jeremybenn
     fi
7369
   fi
7370 82 jeremybenn
   $RM conftest*
7371 19 jeremybenn
 
7372
fi
7373 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7374 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7375 19 jeremybenn
 
7376 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7377 19 jeremybenn
    case $lt_prog_compiler_pic in
7378
     "" | " "*) ;;
7379
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7380
     esac
7381
else
7382
    lt_prog_compiler_pic=
7383
     lt_prog_compiler_can_build_shared=no
7384
fi
7385
 
7386
fi
7387
 
7388 82 jeremybenn
 
7389
 
7390
 
7391
 
7392
 
7393 19 jeremybenn
#
7394
# Check to make sure the static flag actually works.
7395
#
7396
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7397 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7398 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7399 96 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7400 82 jeremybenn
  $as_echo_n "(cached) " >&6
7401 19 jeremybenn
else
7402 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7403 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7404
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7405
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7406
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7407
     # The linker can only warn and ignore the option if not recognized
7408
     # So say no if there are warnings
7409
     if test -s conftest.err; then
7410
       # Append any errors to the config.log.
7411
       cat conftest.err 1>&5
7412 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7413 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7414
       if diff conftest.exp conftest.er2 >/dev/null; then
7415 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7416 19 jeremybenn
       fi
7417
     else
7418 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7419 19 jeremybenn
     fi
7420
   fi
7421 82 jeremybenn
   $RM -r conftest*
7422 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7423
 
7424
fi
7425 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7426 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7427 19 jeremybenn
 
7428 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7429 19 jeremybenn
    :
7430
else
7431
    lt_prog_compiler_static=
7432
fi
7433
 
7434
 
7435 82 jeremybenn
 
7436
 
7437
 
7438
 
7439
 
7440 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7441 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7442 96 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7443 82 jeremybenn
  $as_echo_n "(cached) " >&6
7444 19 jeremybenn
else
7445
  lt_cv_prog_compiler_c_o=no
7446 82 jeremybenn
   $RM -r conftest 2>/dev/null
7447 19 jeremybenn
   mkdir conftest
7448
   cd conftest
7449
   mkdir out
7450
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7451
 
7452
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7453
   # Insert the option either (1) after the last *FLAGS variable, or
7454
   # (2) before a word containing "conftest.", or (3) at the end.
7455
   # Note that $ac_compile itself does not contain backslashes and begins
7456
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7457
   lt_compile=`echo "$ac_compile" | $SED \
7458
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7459
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7460
   -e 's:$: $lt_compiler_flag:'`
7461 96 jeremybenn
   (eval echo "\"\$as_me:7461: $lt_compile\"" >&5)
7462 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7463
   ac_status=$?
7464
   cat out/conftest.err >&5
7465 96 jeremybenn
   echo "$as_me:7465: \$? = $ac_status" >&5
7466 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7467
   then
7468
     # The compiler can only warn and ignore the option if not recognized
7469
     # So say no if there are warnings
7470 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7471 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7472
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7473
       lt_cv_prog_compiler_c_o=yes
7474
     fi
7475
   fi
7476
   chmod u+w . 2>&5
7477 82 jeremybenn
   $RM conftest*
7478 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7479
   # template instantiation
7480 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7481
   $RM out/* && rmdir out
7482 19 jeremybenn
   cd ..
7483 82 jeremybenn
   $RM -r conftest
7484
   $RM conftest*
7485 19 jeremybenn
 
7486
fi
7487 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7488 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7489 19 jeremybenn
 
7490
 
7491 82 jeremybenn
 
7492
 
7493
 
7494
 
7495 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7496 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7497 96 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7498 82 jeremybenn
  $as_echo_n "(cached) " >&6
7499
else
7500
  lt_cv_prog_compiler_c_o=no
7501
   $RM -r conftest 2>/dev/null
7502
   mkdir conftest
7503
   cd conftest
7504
   mkdir out
7505
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7506
 
7507
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7508
   # Insert the option either (1) after the last *FLAGS variable, or
7509
   # (2) before a word containing "conftest.", or (3) at the end.
7510
   # Note that $ac_compile itself does not contain backslashes and begins
7511
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7512
   lt_compile=`echo "$ac_compile" | $SED \
7513
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7514
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7515
   -e 's:$: $lt_compiler_flag:'`
7516 96 jeremybenn
   (eval echo "\"\$as_me:7516: $lt_compile\"" >&5)
7517 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7518
   ac_status=$?
7519
   cat out/conftest.err >&5
7520 96 jeremybenn
   echo "$as_me:7520: \$? = $ac_status" >&5
7521 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7522
   then
7523
     # The compiler can only warn and ignore the option if not recognized
7524
     # So say no if there are warnings
7525
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7526
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7527
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7528
       lt_cv_prog_compiler_c_o=yes
7529
     fi
7530
   fi
7531
   chmod u+w . 2>&5
7532
   $RM conftest*
7533
   # SGI C++ compiler will create directory out/ii_files/ for
7534
   # template instantiation
7535
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7536
   $RM out/* && rmdir out
7537
   cd ..
7538
   $RM -r conftest
7539
   $RM conftest*
7540
 
7541
fi
7542 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7543 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7544
 
7545
 
7546
 
7547
 
7548 19 jeremybenn
hard_links="nottested"
7549
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7550
  # do not overwrite the value of need_locks provided by the user
7551 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7552 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7553 19 jeremybenn
  hard_links=yes
7554 82 jeremybenn
  $RM conftest*
7555 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7556
  touch conftest.a
7557
  ln conftest.a conftest.b 2>&5 || hard_links=no
7558
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7559 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7560 82 jeremybenn
$as_echo "$hard_links" >&6; }
7561 19 jeremybenn
  if test "$hard_links" = no; then
7562 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7563 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7564 19 jeremybenn
    need_locks=warn
7565
  fi
7566
else
7567
  need_locks=no
7568
fi
7569
 
7570
 
7571 82 jeremybenn
 
7572
 
7573
 
7574
 
7575 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7576 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7577
 
7578 19 jeremybenn
  runpath_var=
7579
  allow_undefined_flag=
7580 82 jeremybenn
  always_export_symbols=no
7581 19 jeremybenn
  archive_cmds=
7582
  archive_expsym_cmds=
7583 82 jeremybenn
  compiler_needs_object=no
7584
  enable_shared_with_static_runtimes=no
7585 19 jeremybenn
  export_dynamic_flag_spec=
7586 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7587
  hardcode_automatic=no
7588
  hardcode_direct=no
7589
  hardcode_direct_absolute=no
7590 19 jeremybenn
  hardcode_libdir_flag_spec=
7591
  hardcode_libdir_flag_spec_ld=
7592
  hardcode_libdir_separator=
7593
  hardcode_minus_L=no
7594
  hardcode_shlibpath_var=unsupported
7595 82 jeremybenn
  inherit_rpath=no
7596 19 jeremybenn
  link_all_deplibs=unknown
7597
  module_cmds=
7598
  module_expsym_cmds=
7599 82 jeremybenn
  old_archive_from_new_cmds=
7600
  old_archive_from_expsyms_cmds=
7601
  thread_safe_flag_spec=
7602
  whole_archive_flag_spec=
7603 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7604
  # included in the symbol list
7605
  include_expsyms=
7606
  # exclude_expsyms can be an extended regexp of symbols to exclude
7607
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7608
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7609
  # as well as any symbol that contains `d'.
7610 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7611 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7612
  # platforms (ab)use it in PIC code, but their linkers get confused if
7613
  # the symbol is explicitly referenced.  Since portable code cannot
7614
  # rely on this symbol name, it's probably fine to never include it in
7615
  # preloaded symbol tables.
7616 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7617 19 jeremybenn
  extract_expsyms_cmds=
7618
 
7619
  case $host_os in
7620 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7621 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7622
    # When not using gcc, we currently assume that we are using
7623
    # Microsoft Visual C++.
7624
    if test "$GCC" != yes; then
7625
      with_gnu_ld=no
7626
    fi
7627
    ;;
7628
  interix*)
7629
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7630
    with_gnu_ld=yes
7631
    ;;
7632
  openbsd*)
7633
    with_gnu_ld=no
7634
    ;;
7635 93 jeremybenn
  linux* | k*bsd*-gnu)
7636
    link_all_deplibs=no
7637
    ;;
7638 19 jeremybenn
  esac
7639
 
7640
  ld_shlibs=yes
7641
  if test "$with_gnu_ld" = yes; then
7642
    # If archive_cmds runs LD, not CC, wlarc should be empty
7643
    wlarc='${wl}'
7644
 
7645
    # Set some defaults for GNU ld with shared library support. These
7646
    # are reset later if shared libraries are not supported. Putting them
7647
    # here allows them to be overridden if necessary.
7648
    runpath_var=LD_RUN_PATH
7649 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7650 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7651
    # ancient GNU ld didn't support --whole-archive et. al.
7652 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7653
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7654
    else
7655
      whole_archive_flag_spec=
7656 19 jeremybenn
    fi
7657
    supports_anon_versioning=no
7658 82 jeremybenn
    case `$LD -v 2>&1` in
7659 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7660
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7661
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7662
      *\ 2.11.*) ;; # other 2.11 versions
7663
      *) supports_anon_versioning=yes ;;
7664
    esac
7665
 
7666
    # See if GNU ld supports shared libraries.
7667
    case $host_os in
7668 82 jeremybenn
    aix[3-9]*)
7669 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7670
      if test "$host_cpu" != ia64; then
7671
        ld_shlibs=no
7672 82 jeremybenn
        cat <<_LT_EOF 1>&2
7673 19 jeremybenn
 
7674
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7675
*** to be unable to reliably create shared libraries on AIX.
7676
*** Therefore, libtool is disabling shared libraries support.  If you
7677
*** really care for shared libraries, you may want to modify your PATH
7678
*** so that a non-GNU linker is found, and then restart.
7679
 
7680 82 jeremybenn
_LT_EOF
7681 19 jeremybenn
      fi
7682
      ;;
7683
 
7684
    amigaos*)
7685 82 jeremybenn
      case $host_cpu in
7686
      powerpc)
7687
            # see comment about AmigaOS4 .so support
7688
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7689
            archive_expsym_cmds=''
7690
        ;;
7691
      m68k)
7692
            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)'
7693
            hardcode_libdir_flag_spec='-L$libdir'
7694
            hardcode_minus_L=yes
7695
        ;;
7696
      esac
7697 19 jeremybenn
      ;;
7698
 
7699
    beos*)
7700 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7701 19 jeremybenn
        allow_undefined_flag=unsupported
7702
        # Joseph Beckenbach  says some releases of gcc
7703
        # support --undefined.  This deserves some investigation.  FIXME
7704
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7705
      else
7706
        ld_shlibs=no
7707
      fi
7708
      ;;
7709
 
7710 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7711
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7712 19 jeremybenn
      # as there is no search path for DLLs.
7713
      hardcode_libdir_flag_spec='-L$libdir'
7714
      allow_undefined_flag=unsupported
7715
      always_export_symbols=no
7716
      enable_shared_with_static_runtimes=yes
7717 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'
7718 19 jeremybenn
 
7719 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7720 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7721
        # If the export-symbols file already is a .def file (1st line
7722
        # is EXPORTS), use it as is; otherwise, prepend...
7723
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7724
          cp $export_symbols $output_objdir/$soname.def;
7725
        else
7726
          echo EXPORTS > $output_objdir/$soname.def;
7727
          cat $export_symbols >> $output_objdir/$soname.def;
7728
        fi~
7729
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7730
      else
7731
        ld_shlibs=no
7732
      fi
7733
      ;;
7734
 
7735
    interix[3-9]*)
7736
      hardcode_direct=no
7737
      hardcode_shlibpath_var=no
7738
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7739
      export_dynamic_flag_spec='${wl}-E'
7740
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7741
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7742
      # default) and relocated if they conflict, which is a slow very memory
7743
      # consuming and fragmenting process.  To avoid this, we pick a random,
7744
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7745
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7746
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7747
      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'
7748
      ;;
7749
 
7750 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7751
      tmp_diet=no
7752
      if test "$host_os" = linux-dietlibc; then
7753
        case $cc_basename in
7754
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7755
        esac
7756
      fi
7757
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7758
         && test "$tmp_diet" = no
7759
      then
7760 19 jeremybenn
        tmp_addflag=
7761 82 jeremybenn
        tmp_sharedflag='-shared'
7762 19 jeremybenn
        case $cc_basename,$host_cpu in
7763 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7764
          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'
7765 19 jeremybenn
          tmp_addflag=' $pic_flag'
7766
          ;;
7767
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7768 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'
7769 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7770 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7771 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7772
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7773
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7774
        ifc* | ifort*)                  # Intel Fortran compiler
7775
          tmp_addflag=' -nofor_main' ;;
7776 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7777
          whole_archive_flag_spec=
7778
          tmp_sharedflag='--shared' ;;
7779
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7780
          tmp_sharedflag='-qmkshrobj'
7781
          tmp_addflag= ;;
7782 19 jeremybenn
        esac
7783
        case `$CC -V 2>&1 | sed 5q` in
7784
        *Sun\ C*)                       # Sun C 5.9
7785 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'
7786
          compiler_needs_object=yes
7787 19 jeremybenn
          tmp_sharedflag='-G' ;;
7788
        *Sun\ F*)                       # Sun Fortran 8.3
7789
          tmp_sharedflag='-G' ;;
7790
        esac
7791
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7792
 
7793 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7794
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7795
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7796
            echo "local: *; };" >> $output_objdir/$libname.ver~
7797
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7798
        fi
7799
 
7800
        case $cc_basename in
7801
        xlf*)
7802
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7803
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7804
          hardcode_libdir_flag_spec=
7805
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7806
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7807
          if test "x$supports_anon_versioning" = xyes; then
7808
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7809
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7810
              echo "local: *; };" >> $output_objdir/$libname.ver~
7811
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7812
          fi
7813
          ;;
7814
        esac
7815 19 jeremybenn
      else
7816 82 jeremybenn
        ld_shlibs=no
7817 19 jeremybenn
      fi
7818
      ;;
7819
 
7820 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7821 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7822 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7823
        wlarc=
7824
      else
7825
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7827
      fi
7828
      ;;
7829
 
7830
    solaris*)
7831 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7832 19 jeremybenn
        ld_shlibs=no
7833 82 jeremybenn
        cat <<_LT_EOF 1>&2
7834 19 jeremybenn
 
7835
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7836
*** create shared libraries on Solaris systems.  Therefore, libtool
7837
*** is disabling shared libraries support.  We urge you to upgrade GNU
7838
*** binutils to release 2.9.1 or newer.  Another option is to modify
7839
*** your PATH or compiler configuration so that the native linker is
7840
*** used, and then restart.
7841
 
7842 82 jeremybenn
_LT_EOF
7843
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7844 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7846
      else
7847
        ld_shlibs=no
7848
      fi
7849
      ;;
7850
 
7851
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7852
      case `$LD -v 2>&1` in
7853
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7854
        ld_shlibs=no
7855
        cat <<_LT_EOF 1>&2
7856
 
7857
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7858
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7859
*** is disabling shared libraries support.  We urge you to upgrade GNU
7860
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7861
*** your PATH or compiler configuration so that the native linker is
7862
*** used, and then restart.
7863
 
7864
_LT_EOF
7865
        ;;
7866
        *)
7867 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7868
          # use absolute paths for naming shared libraries, and exclude the
7869
          # DT_RUNPATH tag from executables and libraries.  But doing so
7870
          # requires that you compile everything twice, which is a pain.
7871
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7872
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7873
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7874
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7875 19 jeremybenn
          else
7876
            ld_shlibs=no
7877
          fi
7878
        ;;
7879
      esac
7880
      ;;
7881
 
7882
    sunos4*)
7883
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7884
      wlarc=
7885
      hardcode_direct=yes
7886
      hardcode_shlibpath_var=no
7887
      ;;
7888
 
7889
    *)
7890 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7891 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7892
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7893
      else
7894
        ld_shlibs=no
7895
      fi
7896
      ;;
7897
    esac
7898
 
7899
    if test "$ld_shlibs" = no; then
7900
      runpath_var=
7901
      hardcode_libdir_flag_spec=
7902
      export_dynamic_flag_spec=
7903
      whole_archive_flag_spec=
7904
    fi
7905
  else
7906
    # PORTME fill in a description of your system's linker (not GNU ld)
7907
    case $host_os in
7908
    aix3*)
7909
      allow_undefined_flag=unsupported
7910
      always_export_symbols=yes
7911
      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'
7912
      # Note: this linker hardcodes the directories in LIBPATH if there
7913
      # are no directories specified by -L.
7914
      hardcode_minus_L=yes
7915
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7916
        # Neither direct hardcoding nor static linking is supported with a
7917
        # broken collect2.
7918
        hardcode_direct=unsupported
7919
      fi
7920
      ;;
7921
 
7922 82 jeremybenn
    aix[4-9]*)
7923 19 jeremybenn
      if test "$host_cpu" = ia64; then
7924
        # On IA64, the linker does run time linking by default, so we don't
7925
        # have to do anything special.
7926
        aix_use_runtimelinking=no
7927
        exp_sym_flag='-Bexport'
7928
        no_entry_flag=""
7929
      else
7930
        # If we're using GNU nm, then we don't want the "-C" option.
7931
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7932 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7933
          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'
7934 19 jeremybenn
        else
7935 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'
7936 19 jeremybenn
        fi
7937
        aix_use_runtimelinking=no
7938
 
7939
        # Test if we are trying to use run time linking or normal
7940
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7941
        # need to do runtime linking.
7942 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7943 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7944 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7945
            aix_use_runtimelinking=yes
7946
            break
7947
          fi
7948 19 jeremybenn
          done
7949
          ;;
7950
        esac
7951
 
7952
        exp_sym_flag='-bexport'
7953
        no_entry_flag='-bnoentry'
7954
      fi
7955
 
7956
      # When large executables or shared objects are built, AIX ld can
7957
      # have problems creating the table of contents.  If linking a library
7958
      # or program results in "error TOC overflow" add -mminimal-toc to
7959
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7960
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7961
 
7962
      archive_cmds=''
7963
      hardcode_direct=yes
7964 82 jeremybenn
      hardcode_direct_absolute=yes
7965 19 jeremybenn
      hardcode_libdir_separator=':'
7966
      link_all_deplibs=yes
7967 82 jeremybenn
      file_list_spec='${wl}-f,'
7968 19 jeremybenn
 
7969
      if test "$GCC" = yes; then
7970
        case $host_os in aix4.[012]|aix4.[012].*)
7971
        # We only want to do this on AIX 4.2 and lower, the check
7972
        # below for broken collect2 doesn't work under 4.3+
7973
          collect2name=`${CC} -print-prog-name=collect2`
7974 82 jeremybenn
          if test -f "$collect2name" &&
7975
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7976 19 jeremybenn
          then
7977 82 jeremybenn
          # We have reworked collect2
7978
          :
7979 19 jeremybenn
          else
7980 82 jeremybenn
          # We have old collect2
7981
          hardcode_direct=unsupported
7982
          # It fails to find uninstalled libraries when the uninstalled
7983
          # path is not listed in the libpath.  Setting hardcode_minus_L
7984
          # to unsupported forces relinking
7985
          hardcode_minus_L=yes
7986
          hardcode_libdir_flag_spec='-L$libdir'
7987
          hardcode_libdir_separator=
7988 19 jeremybenn
          fi
7989
          ;;
7990
        esac
7991
        shared_flag='-shared'
7992
        if test "$aix_use_runtimelinking" = yes; then
7993
          shared_flag="$shared_flag "'${wl}-G'
7994
        fi
7995 93 jeremybenn
        link_all_deplibs=no
7996 19 jeremybenn
      else
7997
        # not using gcc
7998
        if test "$host_cpu" = ia64; then
7999 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8000
        # chokes on -Wl,-G. The following line is correct:
8001 19 jeremybenn
          shared_flag='-G'
8002
        else
8003
          if test "$aix_use_runtimelinking" = yes; then
8004
            shared_flag='${wl}-G'
8005
          else
8006
            shared_flag='${wl}-bM:SRE'
8007
          fi
8008
        fi
8009
      fi
8010
 
8011 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8012 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8013
      # underscore (_), so it is better to generate a list of symbols to export.
8014
      always_export_symbols=yes
8015
      if test "$aix_use_runtimelinking" = yes; then
8016
        # Warning - without using the other runtime loading flags (-brtl),
8017
        # -berok will link without error, but may produce a broken library.
8018
        allow_undefined_flag='-berok'
8019 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8020
        # empty executable.
8021 96 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 19 jeremybenn
/* end confdefs.h.  */
8023
 
8024
int
8025
main ()
8026
{
8027
 
8028
  ;
8029
  return 0;
8030
}
8031
_ACEOF
8032 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8033 19 jeremybenn
 
8034
lt_aix_libpath_sed='
8035
    /Import File Strings/,/^$/ {
8036
        /^0/ {
8037
            s/^0  *\(.*\)$/\1/
8038
            p
8039
        }
8040
    }'
8041
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8042
# Check for a 64-bit object if we didn't find anything.
8043
if test -z "$aix_libpath"; then
8044
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8045
fi
8046
fi
8047 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8048
    conftest$ac_exeext conftest.$ac_ext
8049 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8050
 
8051 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8052
        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"
8053
      else
8054 19 jeremybenn
        if test "$host_cpu" = ia64; then
8055
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8056
          allow_undefined_flag="-z nodefs"
8057
          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"
8058
        else
8059 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8060
         # empty executable.
8061 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 19 jeremybenn
/* end confdefs.h.  */
8063
 
8064
int
8065
main ()
8066
{
8067
 
8068
  ;
8069
  return 0;
8070
}
8071
_ACEOF
8072 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8073 19 jeremybenn
 
8074
lt_aix_libpath_sed='
8075
    /Import File Strings/,/^$/ {
8076
        /^0/ {
8077
            s/^0  *\(.*\)$/\1/
8078
            p
8079
        }
8080
    }'
8081
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8082
# Check for a 64-bit object if we didn't find anything.
8083
if test -z "$aix_libpath"; then
8084
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8085
fi
8086
fi
8087 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8088
    conftest$ac_exeext conftest.$ac_ext
8089 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8090
 
8091
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8092
          # Warning - without using the other run time loading flags,
8093
          # -berok will link without error, but may produce a broken library.
8094
          no_undefined_flag=' ${wl}-bernotok'
8095
          allow_undefined_flag=' ${wl}-berok'
8096
          # Exported symbols can be pulled into shared objects from archives
8097
          whole_archive_flag_spec='$convenience'
8098
          archive_cmds_need_lc=yes
8099
          # This is similar to how AIX traditionally builds its shared libraries.
8100
          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'
8101
        fi
8102
      fi
8103
      ;;
8104
 
8105
    amigaos*)
8106 82 jeremybenn
      case $host_cpu in
8107
      powerpc)
8108
            # see comment about AmigaOS4 .so support
8109
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110
            archive_expsym_cmds=''
8111
        ;;
8112
      m68k)
8113
            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)'
8114
            hardcode_libdir_flag_spec='-L$libdir'
8115
            hardcode_minus_L=yes
8116
        ;;
8117
      esac
8118 19 jeremybenn
      ;;
8119
 
8120
    bsdi[45]*)
8121
      export_dynamic_flag_spec=-rdynamic
8122
      ;;
8123
 
8124 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8125 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8126
      # Microsoft Visual C++.
8127
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8128
      # no search path for DLLs.
8129
      hardcode_libdir_flag_spec=' '
8130
      allow_undefined_flag=unsupported
8131
      # Tell ltmain to make .lib files, not .a files.
8132
      libext=lib
8133
      # Tell ltmain to make .dll files, not .so files.
8134
      shrext_cmds=".dll"
8135
      # FIXME: Setting linknames here is a bad hack.
8136 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8137 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8138 82 jeremybenn
      old_archive_from_new_cmds='true'
8139 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8140
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8141
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8142
      enable_shared_with_static_runtimes=yes
8143
      ;;
8144
 
8145
    darwin* | rhapsody*)
8146 82 jeremybenn
 
8147
 
8148
  archive_cmds_need_lc=no
8149
  hardcode_direct=no
8150
  hardcode_automatic=yes
8151
  hardcode_shlibpath_var=unsupported
8152
  whole_archive_flag_spec=''
8153
  link_all_deplibs=yes
8154
  allow_undefined_flag="$_lt_dar_allow_undefined"
8155
  case $cc_basename in
8156
     ifort*) _lt_dar_can_shared=yes ;;
8157
     *) _lt_dar_can_shared=$GCC ;;
8158
  esac
8159
  if test "$_lt_dar_can_shared" = "yes"; then
8160
    output_verbose_link_cmd=echo
8161
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8162
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8163
    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}"
8164
    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}"
8165
 
8166
  else
8167
  ld_shlibs=no
8168
  fi
8169
 
8170 19 jeremybenn
      ;;
8171
 
8172
    dgux*)
8173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8174
      hardcode_libdir_flag_spec='-L$libdir'
8175
      hardcode_shlibpath_var=no
8176
      ;;
8177
 
8178
    freebsd1*)
8179
      ld_shlibs=no
8180
      ;;
8181
 
8182
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8183
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8184
    # does not break anything, and helps significantly (at the cost of a little
8185
    # extra space).
8186
    freebsd2.2*)
8187
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8188
      hardcode_libdir_flag_spec='-R$libdir'
8189
      hardcode_direct=yes
8190
      hardcode_shlibpath_var=no
8191
      ;;
8192
 
8193
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8194
    freebsd2*)
8195
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8196
      hardcode_direct=yes
8197
      hardcode_minus_L=yes
8198
      hardcode_shlibpath_var=no
8199
      ;;
8200
 
8201
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8202
    freebsd* | dragonfly*)
8203
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8204
      hardcode_libdir_flag_spec='-R$libdir'
8205
      hardcode_direct=yes
8206
      hardcode_shlibpath_var=no
8207
      ;;
8208
 
8209
    hpux9*)
8210
      if test "$GCC" = yes; then
8211 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'
8212 19 jeremybenn
      else
8213 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'
8214 19 jeremybenn
      fi
8215
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8216
      hardcode_libdir_separator=:
8217
      hardcode_direct=yes
8218
 
8219
      # hardcode_minus_L: Not really in the search PATH,
8220
      # but as the default location of the library.
8221
      hardcode_minus_L=yes
8222
      export_dynamic_flag_spec='${wl}-E'
8223
      ;;
8224
 
8225
    hpux10*)
8226
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8227
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8228
      else
8229
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8230
      fi
8231
      if test "$with_gnu_ld" = no; then
8232
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8233 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8234 19 jeremybenn
        hardcode_libdir_separator=:
8235
        hardcode_direct=yes
8236 82 jeremybenn
        hardcode_direct_absolute=yes
8237 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8238
        # hardcode_minus_L: Not really in the search PATH,
8239
        # but as the default location of the library.
8240
        hardcode_minus_L=yes
8241
      fi
8242
      ;;
8243
 
8244
    hpux11*)
8245
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8246
        case $host_cpu in
8247
        hppa*64*)
8248
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8249
          ;;
8250
        ia64*)
8251 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8252 19 jeremybenn
          ;;
8253
        *)
8254
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8255
          ;;
8256
        esac
8257
      else
8258
        case $host_cpu in
8259
        hppa*64*)
8260
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8261
          ;;
8262
        ia64*)
8263
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8264
          ;;
8265
        *)
8266
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8267
          ;;
8268
        esac
8269
      fi
8270
      if test "$with_gnu_ld" = no; then
8271
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8272
        hardcode_libdir_separator=:
8273
 
8274
        case $host_cpu in
8275
        hppa*64*|ia64*)
8276
          hardcode_direct=no
8277
          hardcode_shlibpath_var=no
8278
          ;;
8279
        *)
8280
          hardcode_direct=yes
8281 82 jeremybenn
          hardcode_direct_absolute=yes
8282 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8283
 
8284
          # hardcode_minus_L: Not really in the search PATH,
8285
          # but as the default location of the library.
8286
          hardcode_minus_L=yes
8287
          ;;
8288
        esac
8289
      fi
8290
      ;;
8291
 
8292
    irix5* | irix6* | nonstopux*)
8293
      if test "$GCC" = yes; then
8294 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'
8295
        # Try to use the -exported_symbol ld option, if it does not
8296
        # work, assume that -exports_file does not work either and
8297
        # implicitly export all symbols.
8298
        save_LDFLAGS="$LDFLAGS"
8299
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8300 96 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301
/* end confdefs.h.  */
8302 82 jeremybenn
int foo(void) {}
8303
_ACEOF
8304 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8305 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'
8306
 
8307
fi
8308 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8309
    conftest$ac_exeext conftest.$ac_ext
8310 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8311 19 jeremybenn
      else
8312 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'
8313
        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'
8314 19 jeremybenn
      fi
8315 82 jeremybenn
      archive_cmds_need_lc='no'
8316 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8317
      hardcode_libdir_separator=:
8318 82 jeremybenn
      inherit_rpath=yes
8319 19 jeremybenn
      link_all_deplibs=yes
8320
      ;;
8321
 
8322 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8323 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8324 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8325
      else
8326
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8327
      fi
8328
      hardcode_libdir_flag_spec='-R$libdir'
8329
      hardcode_direct=yes
8330
      hardcode_shlibpath_var=no
8331
      ;;
8332
 
8333
    newsos6)
8334
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8335
      hardcode_direct=yes
8336
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337
      hardcode_libdir_separator=:
8338
      hardcode_shlibpath_var=no
8339
      ;;
8340
 
8341 82 jeremybenn
    *nto* | *qnx*)
8342
      ;;
8343
 
8344 19 jeremybenn
    openbsd*)
8345
      if test -f /usr/libexec/ld.so; then
8346
        hardcode_direct=yes
8347
        hardcode_shlibpath_var=no
8348 82 jeremybenn
        hardcode_direct_absolute=yes
8349
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8350 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8351
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8352
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8353
          export_dynamic_flag_spec='${wl}-E'
8354
        else
8355
          case $host_os in
8356
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8357
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358
             hardcode_libdir_flag_spec='-R$libdir'
8359
             ;;
8360
           *)
8361
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8362
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8363
             ;;
8364
          esac
8365 82 jeremybenn
        fi
8366 19 jeremybenn
      else
8367
        ld_shlibs=no
8368
      fi
8369
      ;;
8370
 
8371
    os2*)
8372
      hardcode_libdir_flag_spec='-L$libdir'
8373
      hardcode_minus_L=yes
8374
      allow_undefined_flag=unsupported
8375 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'
8376
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 19 jeremybenn
      ;;
8378
 
8379
    osf3*)
8380
      if test "$GCC" = yes; then
8381
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8382 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'
8383 19 jeremybenn
      else
8384
        allow_undefined_flag=' -expect_unresolved \*'
8385 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'
8386 19 jeremybenn
      fi
8387 82 jeremybenn
      archive_cmds_need_lc='no'
8388 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389
      hardcode_libdir_separator=:
8390
      ;;
8391
 
8392
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8393
      if test "$GCC" = yes; then
8394
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8395 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'
8396 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397
      else
8398
        allow_undefined_flag=' -expect_unresolved \*'
8399 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'
8400
        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~
8401
        $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'
8402 19 jeremybenn
 
8403
        # Both c and cxx compiler support -rpath directly
8404
        hardcode_libdir_flag_spec='-rpath $libdir'
8405
      fi
8406 82 jeremybenn
      archive_cmds_need_lc='no'
8407 19 jeremybenn
      hardcode_libdir_separator=:
8408
      ;;
8409
 
8410
    solaris*)
8411 82 jeremybenn
      no_undefined_flag=' -z defs'
8412 19 jeremybenn
      if test "$GCC" = yes; then
8413
        wlarc='${wl}'
8414 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8415
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8416
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8417 19 jeremybenn
      else
8418 82 jeremybenn
        case `$CC -V 2>&1` in
8419
        *"Compilers 5.0"*)
8420
          wlarc=''
8421
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8423
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8424
          ;;
8425
        *)
8426
          wlarc='${wl}'
8427
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8428
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8429
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8430
          ;;
8431
        esac
8432 19 jeremybenn
      fi
8433
      hardcode_libdir_flag_spec='-R$libdir'
8434
      hardcode_shlibpath_var=no
8435
      case $host_os in
8436
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8437
      *)
8438
        # The compiler driver will combine and reorder linker options,
8439
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8440
        # but is careful enough not to reorder.
8441 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8442 19 jeremybenn
        if test "$GCC" = yes; then
8443
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8444
        else
8445
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8446
        fi
8447
        ;;
8448
      esac
8449
      link_all_deplibs=yes
8450
      ;;
8451
 
8452
    sunos4*)
8453
      if test "x$host_vendor" = xsequent; then
8454
        # Use $CC to link under sequent, because it throws in some extra .o
8455
        # files that make .init and .fini sections work.
8456
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8457
      else
8458
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8459
      fi
8460
      hardcode_libdir_flag_spec='-L$libdir'
8461
      hardcode_direct=yes
8462
      hardcode_minus_L=yes
8463
      hardcode_shlibpath_var=no
8464
      ;;
8465
 
8466
    sysv4)
8467
      case $host_vendor in
8468
        sni)
8469
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8470
          hardcode_direct=yes # is this really true???
8471
        ;;
8472
        siemens)
8473
          ## LD is ld it makes a PLAMLIB
8474
          ## CC just makes a GrossModule.
8475
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8476
          reload_cmds='$CC -r -o $output$reload_objs'
8477
          hardcode_direct=no
8478
        ;;
8479
        motorola)
8480
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8481
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8482
        ;;
8483
      esac
8484
      runpath_var='LD_RUN_PATH'
8485
      hardcode_shlibpath_var=no
8486
      ;;
8487
 
8488
    sysv4.3*)
8489
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490
      hardcode_shlibpath_var=no
8491
      export_dynamic_flag_spec='-Bexport'
8492
      ;;
8493
 
8494
    sysv4*MP*)
8495
      if test -d /usr/nec; then
8496
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8497
        hardcode_shlibpath_var=no
8498
        runpath_var=LD_RUN_PATH
8499
        hardcode_runpath_var=yes
8500
        ld_shlibs=yes
8501
      fi
8502
      ;;
8503
 
8504
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8505
      no_undefined_flag='${wl}-z,text'
8506
      archive_cmds_need_lc=no
8507
      hardcode_shlibpath_var=no
8508
      runpath_var='LD_RUN_PATH'
8509
 
8510
      if test "$GCC" = yes; then
8511
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8512
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513
      else
8514
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8515
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8516
      fi
8517
      ;;
8518
 
8519
    sysv5* | sco3.2v5* | sco5v6*)
8520
      # Note: We can NOT use -z defs as we might desire, because we do not
8521
      # link with -lc, and that would cause any symbols used from libc to
8522
      # always be unresolved, which means just about no library would
8523
      # ever link correctly.  If we're not using GNU ld we use -z text
8524
      # though, which does catch some bad symbols but isn't as heavy-handed
8525
      # as -z defs.
8526
      no_undefined_flag='${wl}-z,text'
8527
      allow_undefined_flag='${wl}-z,nodefs'
8528
      archive_cmds_need_lc=no
8529
      hardcode_shlibpath_var=no
8530 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8531 19 jeremybenn
      hardcode_libdir_separator=':'
8532
      link_all_deplibs=yes
8533
      export_dynamic_flag_spec='${wl}-Bexport'
8534
      runpath_var='LD_RUN_PATH'
8535
 
8536
      if test "$GCC" = yes; then
8537 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 19 jeremybenn
      else
8540 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8541
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 19 jeremybenn
      fi
8543
      ;;
8544
 
8545
    uts4*)
8546
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8547
      hardcode_libdir_flag_spec='-L$libdir'
8548
      hardcode_shlibpath_var=no
8549
      ;;
8550
 
8551
    *)
8552
      ld_shlibs=no
8553
      ;;
8554
    esac
8555 82 jeremybenn
 
8556
    if test x$host_vendor = xsni; then
8557
      case $host in
8558
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8559
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8560
        ;;
8561
      esac
8562
    fi
8563 19 jeremybenn
  fi
8564
 
8565 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8566 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8567 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8568
 
8569 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583
 
8584
 
8585 19 jeremybenn
#
8586
# Do we need to explicitly link libc?
8587
#
8588
case "x$archive_cmds_need_lc" in
8589
x|xyes)
8590
  # Assume -lc should be added
8591
  archive_cmds_need_lc=yes
8592
 
8593
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8594
    case $archive_cmds in
8595
    *'~'*)
8596
      # FIXME: we may have to deal with multi-command sequences.
8597
      ;;
8598
    '$CC '*)
8599
      # Test whether the compiler implicitly links with -lc since on some
8600
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8601
      # to ld, don't add -lc before -lgcc.
8602 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8603 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8604
      $RM conftest*
8605 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8606
 
8607 96 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8608 19 jeremybenn
  (eval $ac_compile) 2>&5
8609
  ac_status=$?
8610 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8611
  test $ac_status = 0; } 2>conftest.err; then
8612 19 jeremybenn
        soname=conftest
8613
        lib=conftest
8614
        libobjs=conftest.$ac_objext
8615
        deplibs=
8616
        wl=$lt_prog_compiler_wl
8617
        pic_flag=$lt_prog_compiler_pic
8618
        compiler_flags=-v
8619
        linker_flags=-v
8620
        verstring=
8621
        output_objdir=.
8622
        libname=conftest
8623
        lt_save_allow_undefined_flag=$allow_undefined_flag
8624
        allow_undefined_flag=
8625 96 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8626 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8627 19 jeremybenn
  ac_status=$?
8628 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8629
  test $ac_status = 0; }
8630 19 jeremybenn
        then
8631
          archive_cmds_need_lc=no
8632
        else
8633
          archive_cmds_need_lc=yes
8634
        fi
8635
        allow_undefined_flag=$lt_save_allow_undefined_flag
8636
      else
8637
        cat conftest.err 1>&5
8638
      fi
8639 82 jeremybenn
      $RM conftest*
8640 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8641 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8642 19 jeremybenn
      ;;
8643
    esac
8644
  fi
8645
  ;;
8646
esac
8647
 
8648
 
8649 82 jeremybenn
 
8650
 
8651
 
8652
 
8653
 
8654
 
8655
 
8656
 
8657
 
8658
 
8659
 
8660
 
8661
 
8662
 
8663
 
8664
 
8665
 
8666
 
8667
 
8668
 
8669
 
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 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8805 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8806
 
8807 19 jeremybenn
if test "$GCC" = yes; then
8808
  case $host_os in
8809
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8810
    *) lt_awk_arg="/^libraries:/" ;;
8811
  esac
8812
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8813 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8814 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8815
    # otherwise default to the standard path separator (i.e. ":") - it is
8816
    # assumed that no part of a normal pathname contains ";" but that should
8817
    # okay in the real world where ";" in dirpaths is itself problematic.
8818 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8819 19 jeremybenn
  else
8820 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8821 19 jeremybenn
  fi
8822
  # Ok, now we have the path, separated by spaces, we can step through it
8823
  # and add multilib dir if necessary.
8824
  lt_tmp_lt_search_path_spec=
8825
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8826
  for lt_sys_path in $lt_search_path_spec; do
8827
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8828
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8829
    else
8830
      test -d "$lt_sys_path" && \
8831
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8832
    fi
8833
  done
8834 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8835 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8836
  lt_foo="";
8837
  lt_count=0;
8838
  for (lt_i = NF; lt_i > 0; lt_i--) {
8839
    if ($lt_i != "" && $lt_i != ".") {
8840
      if ($lt_i == "..") {
8841
        lt_count++;
8842
      } else {
8843
        if (lt_count == 0) {
8844
          lt_foo="/" $lt_i lt_foo;
8845
        } else {
8846
          lt_count--;
8847
        }
8848
      }
8849
    }
8850
  }
8851
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8852
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8853
}'`
8854 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8855 19 jeremybenn
else
8856
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857
fi
8858 82 jeremybenn
library_names_spec=
8859
libname_spec='lib$name'
8860
soname_spec=
8861
shrext_cmds=".so"
8862
postinstall_cmds=
8863
postuninstall_cmds=
8864
finish_cmds=
8865
finish_eval=
8866
shlibpath_var=
8867
shlibpath_overrides_runpath=unknown
8868
version_type=none
8869
dynamic_linker="$host_os ld.so"
8870
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8871 19 jeremybenn
need_lib_prefix=unknown
8872
hardcode_into_libs=no
8873
 
8874
# when you set need_version to no, make sure it does not cause -set_version
8875
# flags to be left without arguments
8876
need_version=unknown
8877
 
8878
case $host_os in
8879
aix3*)
8880
  version_type=linux
8881
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8882
  shlibpath_var=LIBPATH
8883
 
8884
  # AIX 3 has no versioning support, so we append a major version to the name.
8885
  soname_spec='${libname}${release}${shared_ext}$major'
8886
  ;;
8887
 
8888 82 jeremybenn
aix[4-9]*)
8889 19 jeremybenn
  version_type=linux
8890
  need_lib_prefix=no
8891
  need_version=no
8892
  hardcode_into_libs=yes
8893
  if test "$host_cpu" = ia64; then
8894
    # AIX 5 supports IA64
8895
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8896
    shlibpath_var=LD_LIBRARY_PATH
8897
  else
8898
    # With GCC up to 2.95.x, collect2 would create an import file
8899
    # for dependence libraries.  The import file would start with
8900
    # the line `#! .'.  This would cause the generated library to
8901
    # depend on `.', always an invalid library.  This was fixed in
8902
    # development snapshots of GCC prior to 3.0.
8903
    case $host_os in
8904
      aix4 | aix4.[01] | aix4.[01].*)
8905
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8906
           echo ' yes '
8907 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8908 19 jeremybenn
        :
8909
      else
8910
        can_build_shared=no
8911
      fi
8912
      ;;
8913
    esac
8914
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8915
    # soname into executable. Probably we can add versioning support to
8916
    # collect2, so additional links can be useful in future.
8917
    if test "$aix_use_runtimelinking" = yes; then
8918
      # If using run time linking (on AIX 4.2 or later) use lib.so
8919
      # instead of lib.a to let people know that these are not
8920
      # typical AIX shared libraries.
8921
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922
    else
8923
      # We preserve .a as extension for shared libraries through AIX4.2
8924
      # and later when we are not doing run time linking.
8925
      library_names_spec='${libname}${release}.a $libname.a'
8926
      soname_spec='${libname}${release}${shared_ext}$major'
8927
    fi
8928
    shlibpath_var=LIBPATH
8929
  fi
8930
  ;;
8931
 
8932
amigaos*)
8933 82 jeremybenn
  case $host_cpu in
8934
  powerpc)
8935
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8936
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8937
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938
    ;;
8939
  m68k)
8940
    library_names_spec='$libname.ixlibrary $libname.a'
8941
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8942
    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'
8943
    ;;
8944
  esac
8945 19 jeremybenn
  ;;
8946
 
8947
beos*)
8948
  library_names_spec='${libname}${shared_ext}'
8949
  dynamic_linker="$host_os ld.so"
8950
  shlibpath_var=LIBRARY_PATH
8951
  ;;
8952
 
8953
bsdi[45]*)
8954
  version_type=linux
8955
  need_version=no
8956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957
  soname_spec='${libname}${release}${shared_ext}$major'
8958
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8959
  shlibpath_var=LD_LIBRARY_PATH
8960
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8961
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8962
  # the default ld.so.conf also contains /usr/contrib/lib and
8963
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8964
  # libtool to hard-code these into programs
8965
  ;;
8966
 
8967 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8968 19 jeremybenn
  version_type=windows
8969
  shrext_cmds=".dll"
8970
  need_version=no
8971
  need_lib_prefix=no
8972
 
8973
  case $GCC,$host_os in
8974 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8975 19 jeremybenn
    library_names_spec='$libname.dll.a'
8976
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8977
    postinstall_cmds='base_file=`basename \${file}`~
8978 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8979 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8980
      test -d \$dldir || mkdir -p \$dldir~
8981
      $install_prog $dir/$dlname \$dldir/$dlname~
8982 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8983
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8984
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8985
      fi'
8986 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987
      dlpath=$dir/\$dldll~
8988 82 jeremybenn
       $RM \$dlpath'
8989 19 jeremybenn
    shlibpath_overrides_runpath=yes
8990
 
8991
    case $host_os in
8992
    cygwin*)
8993
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8996
      ;;
8997 82 jeremybenn
    mingw* | cegcc*)
8998 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8999
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9002 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9003
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004
        # path with ; separators, and with drive letters. We can handle the
9005
        # drive letters (cygwin fileutils understands them), so leave them,
9006
        # especially as we might pass files found there to a mingw objdump,
9007
        # which wouldn't understand a cygwinified path. Ahh.
9008 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9009 19 jeremybenn
      else
9010 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9011 19 jeremybenn
      fi
9012
      ;;
9013
    pw32*)
9014
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9015
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016
      ;;
9017
    esac
9018
    ;;
9019
 
9020
  *)
9021
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9022
    ;;
9023
  esac
9024
  dynamic_linker='Win32 ld.exe'
9025
  # FIXME: first we should search . and the directory the executable is in
9026
  shlibpath_var=PATH
9027
  ;;
9028
 
9029
darwin* | rhapsody*)
9030
  dynamic_linker="$host_os dyld"
9031
  version_type=darwin
9032
  need_lib_prefix=no
9033
  need_version=no
9034 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9036
  shlibpath_overrides_runpath=yes
9037
  shlibpath_var=DYLD_LIBRARY_PATH
9038
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9039
 
9040
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9041
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9042
  ;;
9043
 
9044
dgux*)
9045
  version_type=linux
9046
  need_lib_prefix=no
9047
  need_version=no
9048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9049
  soname_spec='${libname}${release}${shared_ext}$major'
9050
  shlibpath_var=LD_LIBRARY_PATH
9051
  ;;
9052
 
9053
freebsd1*)
9054
  dynamic_linker=no
9055
  ;;
9056
 
9057
freebsd* | dragonfly*)
9058
  # DragonFly does not have aout.  When/if they implement a new
9059
  # versioning mechanism, adjust this.
9060
  if test -x /usr/bin/objformat; then
9061
    objformat=`/usr/bin/objformat`
9062
  else
9063
    case $host_os in
9064
    freebsd[123]*) objformat=aout ;;
9065
    *) objformat=elf ;;
9066
    esac
9067
  fi
9068
  version_type=freebsd-$objformat
9069
  case $version_type in
9070
    freebsd-elf*)
9071
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072
      need_version=no
9073
      need_lib_prefix=no
9074
      ;;
9075
    freebsd-*)
9076
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9077
      need_version=yes
9078
      ;;
9079
  esac
9080
  shlibpath_var=LD_LIBRARY_PATH
9081
  case $host_os in
9082
  freebsd2*)
9083
    shlibpath_overrides_runpath=yes
9084
    ;;
9085
  freebsd3.[01]* | freebsdelf3.[01]*)
9086
    shlibpath_overrides_runpath=yes
9087
    hardcode_into_libs=yes
9088
    ;;
9089
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9090
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9091
    shlibpath_overrides_runpath=no
9092
    hardcode_into_libs=yes
9093
    ;;
9094
  *) # from 4.6 on, and DragonFly
9095
    shlibpath_overrides_runpath=yes
9096
    hardcode_into_libs=yes
9097
    ;;
9098
  esac
9099
  ;;
9100
 
9101
gnu*)
9102
  version_type=linux
9103
  need_lib_prefix=no
9104
  need_version=no
9105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9106
  soname_spec='${libname}${release}${shared_ext}$major'
9107
  shlibpath_var=LD_LIBRARY_PATH
9108
  hardcode_into_libs=yes
9109
  ;;
9110
 
9111
hpux9* | hpux10* | hpux11*)
9112
  # Give a soname corresponding to the major version so that dld.sl refuses to
9113
  # link against other versions.
9114
  version_type=sunos
9115
  need_lib_prefix=no
9116
  need_version=no
9117
  case $host_cpu in
9118
  ia64*)
9119
    shrext_cmds='.so'
9120
    hardcode_into_libs=yes
9121
    dynamic_linker="$host_os dld.so"
9122
    shlibpath_var=LD_LIBRARY_PATH
9123
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9124
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125
    soname_spec='${libname}${release}${shared_ext}$major'
9126
    if test "X$HPUX_IA64_MODE" = X32; then
9127
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9128
    else
9129
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9130
    fi
9131
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9132
    ;;
9133 82 jeremybenn
  hppa*64*)
9134 19 jeremybenn
    shrext_cmds='.sl'
9135 82 jeremybenn
    hardcode_into_libs=yes
9136 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9137 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9138
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9139
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140
    soname_spec='${libname}${release}${shared_ext}$major'
9141
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9142
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9143
    ;;
9144
  *)
9145
    shrext_cmds='.sl'
9146
    dynamic_linker="$host_os dld.sl"
9147 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9148
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9149
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150
    soname_spec='${libname}${release}${shared_ext}$major'
9151
    ;;
9152
  esac
9153
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9154
  postinstall_cmds='chmod 555 $lib'
9155
  ;;
9156
 
9157
interix[3-9]*)
9158
  version_type=linux
9159
  need_lib_prefix=no
9160
  need_version=no
9161
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9162
  soname_spec='${libname}${release}${shared_ext}$major'
9163
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9164
  shlibpath_var=LD_LIBRARY_PATH
9165
  shlibpath_overrides_runpath=no
9166
  hardcode_into_libs=yes
9167
  ;;
9168
 
9169
irix5* | irix6* | nonstopux*)
9170
  case $host_os in
9171
    nonstopux*) version_type=nonstopux ;;
9172
    *)
9173
        if test "$lt_cv_prog_gnu_ld" = yes; then
9174
                version_type=linux
9175
        else
9176
                version_type=irix
9177
        fi ;;
9178
  esac
9179
  need_lib_prefix=no
9180
  need_version=no
9181
  soname_spec='${libname}${release}${shared_ext}$major'
9182
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9183
  case $host_os in
9184
  irix5* | nonstopux*)
9185
    libsuff= shlibsuff=
9186
    ;;
9187
  *)
9188
    case $LD in # libtool.m4 will add one of these switches to LD
9189
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9190
      libsuff= shlibsuff= libmagic=32-bit;;
9191
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9192
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9193
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9194
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9195
    *) libsuff= shlibsuff= libmagic=never-match;;
9196
    esac
9197
    ;;
9198
  esac
9199
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9200
  shlibpath_overrides_runpath=no
9201
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9202
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9203
  hardcode_into_libs=yes
9204
  ;;
9205
 
9206
# No shared lib support for Linux oldld, aout, or coff.
9207
linux*oldld* | linux*aout* | linux*coff*)
9208
  dynamic_linker=no
9209
  ;;
9210
 
9211
# This must be Linux ELF.
9212
linux* | k*bsd*-gnu)
9213
  version_type=linux
9214
  need_lib_prefix=no
9215
  need_version=no
9216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217
  soname_spec='${libname}${release}${shared_ext}$major'
9218
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9219
  shlibpath_var=LD_LIBRARY_PATH
9220
  shlibpath_overrides_runpath=no
9221 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9222
  save_LDFLAGS=$LDFLAGS
9223
  save_libdir=$libdir
9224
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9225
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9226 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 82 jeremybenn
/* end confdefs.h.  */
9228
 
9229
int
9230
main ()
9231
{
9232
 
9233
  ;
9234
  return 0;
9235
}
9236
_ACEOF
9237 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9238
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9239 82 jeremybenn
  shlibpath_overrides_runpath=yes
9240
fi
9241
fi
9242 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9243
    conftest$ac_exeext conftest.$ac_ext
9244 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9245
  libdir=$save_libdir
9246
 
9247 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9248
  # Some rework will be needed to allow for fast_install
9249
  # before this can be enabled.
9250
  hardcode_into_libs=yes
9251
 
9252
  # Append ld.so.conf contents to the search path
9253
  if test -f /etc/ld.so.conf; then
9254 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' ' '`
9255 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9256 19 jeremybenn
  fi
9257
 
9258
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9259
  # powerpc, because MkLinux only supported shared libraries with the
9260
  # GNU dynamic linker.  Since this was broken with cross compilers,
9261
  # most powerpc-linux boxes support dynamic linking these days and
9262
  # people can always --disable-shared, the test was removed, and we
9263
  # assume the GNU/Linux dynamic linker is in use.
9264
  dynamic_linker='GNU/Linux ld.so'
9265
  ;;
9266
 
9267 93 jeremybenn
netbsdelf*-gnu)
9268
  version_type=linux
9269
  need_lib_prefix=no
9270
  need_version=no
9271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272
  soname_spec='${libname}${release}${shared_ext}$major'
9273
  shlibpath_var=LD_LIBRARY_PATH
9274
  shlibpath_overrides_runpath=no
9275
  hardcode_into_libs=yes
9276
  dynamic_linker='NetBSD ld.elf_so'
9277
  ;;
9278
 
9279 19 jeremybenn
netbsd*)
9280
  version_type=sunos
9281
  need_lib_prefix=no
9282
  need_version=no
9283 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9284 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9285
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9286
    dynamic_linker='NetBSD (a.out) ld.so'
9287
  else
9288
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289
    soname_spec='${libname}${release}${shared_ext}$major'
9290
    dynamic_linker='NetBSD ld.elf_so'
9291
  fi
9292
  shlibpath_var=LD_LIBRARY_PATH
9293
  shlibpath_overrides_runpath=yes
9294
  hardcode_into_libs=yes
9295
  ;;
9296
 
9297
newsos6)
9298
  version_type=linux
9299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300
  shlibpath_var=LD_LIBRARY_PATH
9301
  shlibpath_overrides_runpath=yes
9302
  ;;
9303
 
9304 82 jeremybenn
*nto* | *qnx*)
9305
  version_type=qnx
9306 19 jeremybenn
  need_lib_prefix=no
9307
  need_version=no
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
  shlibpath_var=LD_LIBRARY_PATH
9311 82 jeremybenn
  shlibpath_overrides_runpath=no
9312
  hardcode_into_libs=yes
9313
  dynamic_linker='ldqnx.so'
9314 19 jeremybenn
  ;;
9315
 
9316
openbsd*)
9317
  version_type=sunos
9318
  sys_lib_dlsearch_path_spec="/usr/lib"
9319
  need_lib_prefix=no
9320
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9321
  case $host_os in
9322 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9323
    *)                          need_version=no  ;;
9324 19 jeremybenn
  esac
9325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9326
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9327
  shlibpath_var=LD_LIBRARY_PATH
9328 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9329 19 jeremybenn
    case $host_os in
9330
      openbsd2.[89] | openbsd2.[89].*)
9331
        shlibpath_overrides_runpath=no
9332
        ;;
9333
      *)
9334
        shlibpath_overrides_runpath=yes
9335
        ;;
9336
      esac
9337
  else
9338
    shlibpath_overrides_runpath=yes
9339
  fi
9340
  ;;
9341
 
9342
os2*)
9343
  libname_spec='$name'
9344
  shrext_cmds=".dll"
9345
  need_lib_prefix=no
9346
  library_names_spec='$libname${shared_ext} $libname.a'
9347
  dynamic_linker='OS/2 ld.exe'
9348
  shlibpath_var=LIBPATH
9349
  ;;
9350
 
9351
osf3* | osf4* | osf5*)
9352
  version_type=osf
9353
  need_lib_prefix=no
9354
  need_version=no
9355
  soname_spec='${libname}${release}${shared_ext}$major'
9356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357
  shlibpath_var=LD_LIBRARY_PATH
9358
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9359
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9360
  ;;
9361
 
9362
rdos*)
9363
  dynamic_linker=no
9364
  ;;
9365
 
9366
solaris*)
9367
  version_type=linux
9368
  need_lib_prefix=no
9369
  need_version=no
9370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371
  soname_spec='${libname}${release}${shared_ext}$major'
9372
  shlibpath_var=LD_LIBRARY_PATH
9373
  shlibpath_overrides_runpath=yes
9374
  hardcode_into_libs=yes
9375
  # ldd complains unless libraries are executable
9376
  postinstall_cmds='chmod +x $lib'
9377
  ;;
9378
 
9379
sunos4*)
9380
  version_type=sunos
9381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9382
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9383
  shlibpath_var=LD_LIBRARY_PATH
9384
  shlibpath_overrides_runpath=yes
9385
  if test "$with_gnu_ld" = yes; then
9386
    need_lib_prefix=no
9387
  fi
9388
  need_version=yes
9389
  ;;
9390
 
9391
sysv4 | sysv4.3*)
9392
  version_type=linux
9393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394
  soname_spec='${libname}${release}${shared_ext}$major'
9395
  shlibpath_var=LD_LIBRARY_PATH
9396
  case $host_vendor in
9397
    sni)
9398
      shlibpath_overrides_runpath=no
9399
      need_lib_prefix=no
9400
      runpath_var=LD_RUN_PATH
9401
      ;;
9402
    siemens)
9403
      need_lib_prefix=no
9404
      ;;
9405
    motorola)
9406
      need_lib_prefix=no
9407
      need_version=no
9408
      shlibpath_overrides_runpath=no
9409
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9410
      ;;
9411
  esac
9412
  ;;
9413
 
9414
sysv4*MP*)
9415
  if test -d /usr/nec ;then
9416
    version_type=linux
9417
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9418
    soname_spec='$libname${shared_ext}.$major'
9419
    shlibpath_var=LD_LIBRARY_PATH
9420
  fi
9421
  ;;
9422
 
9423
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9424
  version_type=freebsd-elf
9425
  need_lib_prefix=no
9426
  need_version=no
9427
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9428
  soname_spec='${libname}${release}${shared_ext}$major'
9429
  shlibpath_var=LD_LIBRARY_PATH
9430 82 jeremybenn
  shlibpath_overrides_runpath=yes
9431 19 jeremybenn
  hardcode_into_libs=yes
9432
  if test "$with_gnu_ld" = yes; then
9433
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9434
  else
9435
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9436
    case $host_os in
9437
      sco3.2v5*)
9438
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9439
        ;;
9440
    esac
9441
  fi
9442
  sys_lib_dlsearch_path_spec='/usr/lib'
9443
  ;;
9444
 
9445 82 jeremybenn
tpf*)
9446
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9447
  version_type=linux
9448
  need_lib_prefix=no
9449
  need_version=no
9450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451
  shlibpath_var=LD_LIBRARY_PATH
9452
  shlibpath_overrides_runpath=no
9453
  hardcode_into_libs=yes
9454
  ;;
9455
 
9456 19 jeremybenn
uts4*)
9457
  version_type=linux
9458
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459
  soname_spec='${libname}${release}${shared_ext}$major'
9460
  shlibpath_var=LD_LIBRARY_PATH
9461
  ;;
9462
 
9463
*)
9464
  dynamic_linker=no
9465
  ;;
9466
esac
9467 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9468 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9469 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9470
 
9471
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9472
if test "$GCC" = yes; then
9473
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9474
fi
9475
 
9476 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9477
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9478
fi
9479
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9480
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9481
fi
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
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 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9570 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9571 19 jeremybenn
hardcode_action=
9572 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9573
   test -n "$runpath_var" ||
9574 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9575
 
9576 82 jeremybenn
  # We can hardcode non-existent directories.
9577 19 jeremybenn
  if test "$hardcode_direct" != no &&
9578
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9579
     # have to relink, otherwise we might link with an installed library
9580
     # when we should be linking with a yet-to-be-installed one
9581 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9582 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9583
    # Linking always hardcodes the temporary library directory.
9584
    hardcode_action=relink
9585
  else
9586
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9587
    hardcode_action=immediate
9588
  fi
9589
else
9590
  # We cannot hardcode anything, or else we can only hardcode existing
9591
  # directories.
9592
  hardcode_action=unsupported
9593
fi
9594 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9595 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9596 19 jeremybenn
 
9597 82 jeremybenn
if test "$hardcode_action" = relink ||
9598
   test "$inherit_rpath" = yes; then
9599 19 jeremybenn
  # Fast installation is not supported
9600
  enable_fast_install=no
9601
elif test "$shlibpath_overrides_runpath" = yes ||
9602
     test "$enable_shared" = no; then
9603
  # Fast installation is not necessary
9604
  enable_fast_install=needless
9605
fi
9606
 
9607
 
9608 82 jeremybenn
 
9609
 
9610
 
9611
 
9612
  if test "x$enable_dlopen" != xyes; then
9613 19 jeremybenn
  enable_dlopen=unknown
9614
  enable_dlopen_self=unknown
9615
  enable_dlopen_self_static=unknown
9616
else
9617
  lt_cv_dlopen=no
9618
  lt_cv_dlopen_libs=
9619
 
9620
  case $host_os in
9621
  beos*)
9622
    lt_cv_dlopen="load_add_on"
9623
    lt_cv_dlopen_libs=
9624
    lt_cv_dlopen_self=yes
9625
    ;;
9626
 
9627 82 jeremybenn
  mingw* | pw32* | cegcc*)
9628 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9629
    lt_cv_dlopen_libs=
9630 82 jeremybenn
    ;;
9631 19 jeremybenn
 
9632
  cygwin*)
9633
    lt_cv_dlopen="dlopen"
9634
    lt_cv_dlopen_libs=
9635 82 jeremybenn
    ;;
9636 19 jeremybenn
 
9637
  darwin*)
9638
  # if libdl is installed we need to link against it
9639 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9640 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9641 96 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9642 82 jeremybenn
  $as_echo_n "(cached) " >&6
9643 19 jeremybenn
else
9644
  ac_check_lib_save_LIBS=$LIBS
9645
LIBS="-ldl  $LIBS"
9646 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 19 jeremybenn
/* end confdefs.h.  */
9648
 
9649
/* Override any GCC internal prototype to avoid an error.
9650
   Use char because int might match the return type of a GCC
9651
   builtin and then its argument prototype would still apply.  */
9652
#ifdef __cplusplus
9653
extern "C"
9654
#endif
9655
char dlopen ();
9656
int
9657
main ()
9658
{
9659
return dlopen ();
9660
  ;
9661
  return 0;
9662
}
9663
_ACEOF
9664 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9665 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9666
else
9667 96 jeremybenn
  ac_cv_lib_dl_dlopen=no
9668 19 jeremybenn
fi
9669 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9670
    conftest$ac_exeext conftest.$ac_ext
9671 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9672
fi
9673 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9674 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9675 96 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9676 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9677
else
9678
 
9679
    lt_cv_dlopen="dyld"
9680
    lt_cv_dlopen_libs=
9681
    lt_cv_dlopen_self=yes
9682
 
9683
fi
9684
 
9685 82 jeremybenn
    ;;
9686 19 jeremybenn
 
9687
  *)
9688 96 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9689
if test "x$ac_cv_func_shl_load" = x""yes; then :
9690 19 jeremybenn
  lt_cv_dlopen="shl_load"
9691
else
9692 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9693 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9694 96 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9695 82 jeremybenn
  $as_echo_n "(cached) " >&6
9696 19 jeremybenn
else
9697
  ac_check_lib_save_LIBS=$LIBS
9698
LIBS="-ldld  $LIBS"
9699 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 19 jeremybenn
/* end confdefs.h.  */
9701
 
9702
/* Override any GCC internal prototype to avoid an error.
9703
   Use char because int might match the return type of a GCC
9704
   builtin and then its argument prototype would still apply.  */
9705
#ifdef __cplusplus
9706
extern "C"
9707
#endif
9708
char shl_load ();
9709
int
9710
main ()
9711
{
9712
return shl_load ();
9713
  ;
9714
  return 0;
9715
}
9716
_ACEOF
9717 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9718 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9719
else
9720 96 jeremybenn
  ac_cv_lib_dld_shl_load=no
9721 19 jeremybenn
fi
9722 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9723
    conftest$ac_exeext conftest.$ac_ext
9724 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9725
fi
9726 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9727 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9728 96 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9729 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9730 19 jeremybenn
else
9731 96 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9732
if test "x$ac_cv_func_dlopen" = x""yes; then :
9733 19 jeremybenn
  lt_cv_dlopen="dlopen"
9734
else
9735 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9736 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9737 96 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9738 82 jeremybenn
  $as_echo_n "(cached) " >&6
9739 19 jeremybenn
else
9740
  ac_check_lib_save_LIBS=$LIBS
9741
LIBS="-ldl  $LIBS"
9742 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 19 jeremybenn
/* end confdefs.h.  */
9744
 
9745
/* Override any GCC internal prototype to avoid an error.
9746
   Use char because int might match the return type of a GCC
9747
   builtin and then its argument prototype would still apply.  */
9748
#ifdef __cplusplus
9749
extern "C"
9750
#endif
9751
char dlopen ();
9752
int
9753
main ()
9754
{
9755
return dlopen ();
9756
  ;
9757
  return 0;
9758
}
9759
_ACEOF
9760 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9761 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9762
else
9763 96 jeremybenn
  ac_cv_lib_dl_dlopen=no
9764 19 jeremybenn
fi
9765 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9766
    conftest$ac_exeext conftest.$ac_ext
9767 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9768
fi
9769 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9770 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9771 96 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9772 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9773
else
9774 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9775 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9776 96 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9777 82 jeremybenn
  $as_echo_n "(cached) " >&6
9778 19 jeremybenn
else
9779
  ac_check_lib_save_LIBS=$LIBS
9780
LIBS="-lsvld  $LIBS"
9781 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 19 jeremybenn
/* end confdefs.h.  */
9783
 
9784
/* Override any GCC internal prototype to avoid an error.
9785
   Use char because int might match the return type of a GCC
9786
   builtin and then its argument prototype would still apply.  */
9787
#ifdef __cplusplus
9788
extern "C"
9789
#endif
9790
char dlopen ();
9791
int
9792
main ()
9793
{
9794
return dlopen ();
9795
  ;
9796
  return 0;
9797
}
9798
_ACEOF
9799 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9800 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9801
else
9802 96 jeremybenn
  ac_cv_lib_svld_dlopen=no
9803 19 jeremybenn
fi
9804 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9805
    conftest$ac_exeext conftest.$ac_ext
9806 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9807
fi
9808 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9809 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9810 96 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9811 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9812
else
9813 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9814 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9815 96 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9816 82 jeremybenn
  $as_echo_n "(cached) " >&6
9817 19 jeremybenn
else
9818
  ac_check_lib_save_LIBS=$LIBS
9819
LIBS="-ldld  $LIBS"
9820 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 19 jeremybenn
/* end confdefs.h.  */
9822
 
9823
/* Override any GCC internal prototype to avoid an error.
9824
   Use char because int might match the return type of a GCC
9825
   builtin and then its argument prototype would still apply.  */
9826
#ifdef __cplusplus
9827
extern "C"
9828
#endif
9829
char dld_link ();
9830
int
9831
main ()
9832
{
9833
return dld_link ();
9834
  ;
9835
  return 0;
9836
}
9837
_ACEOF
9838 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9839 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9840
else
9841 96 jeremybenn
  ac_cv_lib_dld_dld_link=no
9842 19 jeremybenn
fi
9843 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9844
    conftest$ac_exeext conftest.$ac_ext
9845 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9846
fi
9847 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9848 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9849 96 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9850 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9851 19 jeremybenn
fi
9852
 
9853
 
9854
fi
9855
 
9856
 
9857
fi
9858
 
9859
 
9860
fi
9861
 
9862
 
9863
fi
9864
 
9865
 
9866
fi
9867
 
9868
    ;;
9869
  esac
9870
 
9871
  if test "x$lt_cv_dlopen" != xno; then
9872
    enable_dlopen=yes
9873
  else
9874
    enable_dlopen=no
9875
  fi
9876
 
9877
  case $lt_cv_dlopen in
9878
  dlopen)
9879
    save_CPPFLAGS="$CPPFLAGS"
9880
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9881
 
9882
    save_LDFLAGS="$LDFLAGS"
9883
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9884
 
9885
    save_LIBS="$LIBS"
9886
    LIBS="$lt_cv_dlopen_libs $LIBS"
9887
 
9888 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9889 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9890 96 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9891 82 jeremybenn
  $as_echo_n "(cached) " >&6
9892 19 jeremybenn
else
9893
          if test "$cross_compiling" = yes; then :
9894
  lt_cv_dlopen_self=cross
9895
else
9896
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9897
  lt_status=$lt_dlunknown
9898 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9899 96 jeremybenn
#line 9899 "configure"
9900 19 jeremybenn
#include "confdefs.h"
9901
 
9902
#if HAVE_DLFCN_H
9903
#include 
9904
#endif
9905
 
9906
#include 
9907
 
9908
#ifdef RTLD_GLOBAL
9909
#  define LT_DLGLOBAL           RTLD_GLOBAL
9910
#else
9911
#  ifdef DL_GLOBAL
9912
#    define LT_DLGLOBAL         DL_GLOBAL
9913
#  else
9914
#    define LT_DLGLOBAL         0
9915
#  endif
9916
#endif
9917
 
9918
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9919
   find out it does not work in some platform. */
9920
#ifndef LT_DLLAZY_OR_NOW
9921
#  ifdef RTLD_LAZY
9922
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9923
#  else
9924
#    ifdef DL_LAZY
9925
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9926
#    else
9927
#      ifdef RTLD_NOW
9928
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9929
#      else
9930
#        ifdef DL_NOW
9931
#          define LT_DLLAZY_OR_NOW      DL_NOW
9932
#        else
9933
#          define LT_DLLAZY_OR_NOW      0
9934
#        endif
9935
#      endif
9936
#    endif
9937
#  endif
9938
#endif
9939
 
9940
void fnord() { int i=42;}
9941
int main ()
9942
{
9943
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9944
  int status = $lt_dlunknown;
9945
 
9946
  if (self)
9947
    {
9948
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9949
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9950
      /* dlclose (self); */
9951
    }
9952
  else
9953
    puts (dlerror ());
9954
 
9955 82 jeremybenn
  return status;
9956 19 jeremybenn
}
9957 82 jeremybenn
_LT_EOF
9958 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9959 19 jeremybenn
  (eval $ac_link) 2>&5
9960
  ac_status=$?
9961 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9962
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9963 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9964
    lt_status=$?
9965
    case x$lt_status in
9966
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9967
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9968
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9969
    esac
9970
  else :
9971
    # compilation failed
9972
    lt_cv_dlopen_self=no
9973
  fi
9974
fi
9975
rm -fr conftest*
9976
 
9977
 
9978
fi
9979 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9980 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9981 19 jeremybenn
 
9982
    if test "x$lt_cv_dlopen_self" = xyes; then
9983
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9984 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9985 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9986 96 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9987 82 jeremybenn
  $as_echo_n "(cached) " >&6
9988 19 jeremybenn
else
9989
          if test "$cross_compiling" = yes; then :
9990
  lt_cv_dlopen_self_static=cross
9991
else
9992
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9993
  lt_status=$lt_dlunknown
9994 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9995 96 jeremybenn
#line 9995 "configure"
9996 19 jeremybenn
#include "confdefs.h"
9997
 
9998
#if HAVE_DLFCN_H
9999
#include 
10000
#endif
10001
 
10002
#include 
10003
 
10004
#ifdef RTLD_GLOBAL
10005
#  define LT_DLGLOBAL           RTLD_GLOBAL
10006
#else
10007
#  ifdef DL_GLOBAL
10008
#    define LT_DLGLOBAL         DL_GLOBAL
10009
#  else
10010
#    define LT_DLGLOBAL         0
10011
#  endif
10012
#endif
10013
 
10014
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10015
   find out it does not work in some platform. */
10016
#ifndef LT_DLLAZY_OR_NOW
10017
#  ifdef RTLD_LAZY
10018
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10019
#  else
10020
#    ifdef DL_LAZY
10021
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10022
#    else
10023
#      ifdef RTLD_NOW
10024
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10025
#      else
10026
#        ifdef DL_NOW
10027
#          define LT_DLLAZY_OR_NOW      DL_NOW
10028
#        else
10029
#          define LT_DLLAZY_OR_NOW      0
10030
#        endif
10031
#      endif
10032
#    endif
10033
#  endif
10034
#endif
10035
 
10036
void fnord() { int i=42;}
10037
int main ()
10038
{
10039
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10040
  int status = $lt_dlunknown;
10041
 
10042
  if (self)
10043
    {
10044
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10045
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10046
      /* dlclose (self); */
10047
    }
10048
  else
10049
    puts (dlerror ());
10050
 
10051 82 jeremybenn
  return status;
10052 19 jeremybenn
}
10053 82 jeremybenn
_LT_EOF
10054 96 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10055 19 jeremybenn
  (eval $ac_link) 2>&5
10056
  ac_status=$?
10057 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10059 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10060
    lt_status=$?
10061
    case x$lt_status in
10062
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10063
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10064
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10065
    esac
10066
  else :
10067
    # compilation failed
10068
    lt_cv_dlopen_self_static=no
10069
  fi
10070
fi
10071
rm -fr conftest*
10072
 
10073
 
10074
fi
10075 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10076 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10077 19 jeremybenn
    fi
10078
 
10079
    CPPFLAGS="$save_CPPFLAGS"
10080
    LDFLAGS="$save_LDFLAGS"
10081
    LIBS="$save_LIBS"
10082
    ;;
10083
  esac
10084
 
10085
  case $lt_cv_dlopen_self in
10086
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10087
  *) enable_dlopen_self=unknown ;;
10088
  esac
10089
 
10090
  case $lt_cv_dlopen_self_static in
10091
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10092
  *) enable_dlopen_self_static=unknown ;;
10093
  esac
10094
fi
10095
 
10096
 
10097
 
10098
 
10099
 
10100
 
10101
 
10102
 
10103
 
10104
 
10105
 
10106
 
10107
 
10108
 
10109
 
10110
 
10111
 
10112 82 jeremybenn
striplib=
10113
old_striplib=
10114 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10115 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10116
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10117
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10118
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10119 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10120 82 jeremybenn
$as_echo "yes" >&6; }
10121
else
10122
# FIXME - insert some real tests, host_os isn't really good enough
10123 19 jeremybenn
  case $host_os in
10124 82 jeremybenn
  darwin*)
10125
    if test -n "$STRIP" ; then
10126
      striplib="$STRIP -x"
10127
      old_striplib="$STRIP -S"
10128 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10129 82 jeremybenn
$as_echo "yes" >&6; }
10130 19 jeremybenn
    else
10131 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10132 82 jeremybenn
$as_echo "no" >&6; }
10133 19 jeremybenn
    fi
10134
    ;;
10135
  *)
10136 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137 82 jeremybenn
$as_echo "no" >&6; }
10138 19 jeremybenn
    ;;
10139
  esac
10140
fi
10141
 
10142
 
10143
 
10144
 
10145
 
10146
 
10147
 
10148
 
10149
 
10150
 
10151
 
10152
 
10153 82 jeremybenn
  # Report which library types will actually be built
10154 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10155 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10156 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10157 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10158 19 jeremybenn
 
10159 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10160 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10161
  test "$can_build_shared" = "no" && enable_shared=no
10162 19 jeremybenn
 
10163 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10164
  # are all built from PIC.
10165 19 jeremybenn
  case $host_os in
10166 82 jeremybenn
  aix3*)
10167 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10168 82 jeremybenn
    if test -n "$RANLIB"; then
10169
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10170
      postinstall_cmds='$RANLIB $lib'
10171 19 jeremybenn
    fi
10172
    ;;
10173
 
10174 82 jeremybenn
  aix[4-9]*)
10175
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10176
      test "$enable_shared" = yes && enable_static=no
10177 19 jeremybenn
    fi
10178
    ;;
10179
  esac
10180 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10181 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10182 19 jeremybenn
 
10183 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10184 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10185
  # Make sure either enable_shared or enable_static is yes.
10186
  test "$enable_shared" = yes || enable_static=yes
10187 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10188 82 jeremybenn
$as_echo "$enable_static" >&6; }
10189 19 jeremybenn
 
10190
 
10191
 
10192
 
10193
fi
10194
ac_ext=c
10195
ac_cpp='$CPP $CPPFLAGS'
10196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10199
 
10200
CC="$lt_save_CC"
10201
 
10202
 
10203
 
10204
 
10205
 
10206
 
10207
 
10208
 
10209
 
10210
 
10211
 
10212
 
10213
 
10214 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10215 19 jeremybenn
 
10216
 
10217
 
10218
 
10219 82 jeremybenn
# Only expand once:
10220 19 jeremybenn
 
10221
 
10222 82 jeremybenn
am__api_version='1.11'
10223 19 jeremybenn
 
10224
# Find a good install program.  We prefer a C program (faster),
10225
# so one script is as good as another.  But avoid the broken or
10226
# incompatible versions:
10227
# SysV /etc/install, /usr/sbin/install
10228
# SunOS /usr/etc/install
10229
# IRIX /sbin/install
10230
# AIX /bin/install
10231
# AmigaOS /C/install, which installs bootblocks on floppy discs
10232
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10233
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10234
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10235
# OS/2's system install, which has a completely different semantic
10236
# ./install, which can be erroneously created by make from ./install.sh.
10237 82 jeremybenn
# Reject install programs that cannot install multiple files.
10238 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10239 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10240 19 jeremybenn
if test -z "$INSTALL"; then
10241 96 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
10242 82 jeremybenn
  $as_echo_n "(cached) " >&6
10243 19 jeremybenn
else
10244
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245
for as_dir in $PATH
10246
do
10247
  IFS=$as_save_IFS
10248
  test -z "$as_dir" && as_dir=.
10249 96 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10250
case $as_dir/ in #((
10251
  ./ | .// | /[cC]/* | \
10252 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10253 96 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10254 19 jeremybenn
  /usr/ucb/* ) ;;
10255
  *)
10256
    # OSF1 and SCO ODT 3.0 have their own names for install.
10257
    # Don't use installbsd from OSF since it installs stuff as root
10258
    # by default.
10259
    for ac_prog in ginstall scoinst install; do
10260
      for ac_exec_ext in '' $ac_executable_extensions; do
10261
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10262
          if test $ac_prog = install &&
10263
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10264
            # AIX install.  It has an incompatible calling convention.
10265
            :
10266
          elif test $ac_prog = install &&
10267
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10268
            # program-specific install script used by HP pwplus--don't use.
10269
            :
10270
          else
10271 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10272
            echo one > conftest.one
10273
            echo two > conftest.two
10274
            mkdir conftest.dir
10275
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10276
              test -s conftest.one && test -s conftest.two &&
10277
              test -s conftest.dir/conftest.one &&
10278
              test -s conftest.dir/conftest.two
10279
            then
10280
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10281
              break 3
10282
            fi
10283 19 jeremybenn
          fi
10284
        fi
10285
      done
10286
    done
10287
    ;;
10288
esac
10289 82 jeremybenn
 
10290 96 jeremybenn
  done
10291 19 jeremybenn
IFS=$as_save_IFS
10292
 
10293 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10294 19 jeremybenn
 
10295
fi
10296
  if test "${ac_cv_path_install+set}" = set; then
10297
    INSTALL=$ac_cv_path_install
10298
  else
10299
    # As a last resort, use the slow shell script.  Don't cache a
10300
    # value for INSTALL within a source directory, because that will
10301
    # break other packages using the cache if that directory is
10302
    # removed, or if the value is a relative name.
10303
    INSTALL=$ac_install_sh
10304
  fi
10305
fi
10306 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10307 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10308 19 jeremybenn
 
10309
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10310
# It thinks the first close brace ends the variable substitution.
10311
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10312
 
10313
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10314
 
10315
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10316
 
10317 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10318 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10319 19 jeremybenn
# Just in case
10320
sleep 1
10321
echo timestamp > conftest.file
10322 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10323
# name.  Accept space and tab only in the latter.
10324
am_lf='
10325
'
10326
case `pwd` in
10327
  *[\\\"\#\$\&\'\`$am_lf]*)
10328 96 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10329 82 jeremybenn
esac
10330
case $srcdir in
10331
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10332 96 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10333 82 jeremybenn
esac
10334
 
10335 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10336
# arguments.  Must try -L first in case configure is actually a
10337
# symlink; some systems play weird games with the mod time of symlinks
10338
# (eg FreeBSD returns the mod time of the symlink's containing
10339
# directory).
10340
if (
10341 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10342 19 jeremybenn
   if test "$*" = "X"; then
10343
      # -L didn't work.
10344 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10345 19 jeremybenn
   fi
10346
   rm -f conftest.file
10347
   if test "$*" != "X $srcdir/configure conftest.file" \
10348
      && test "$*" != "X conftest.file $srcdir/configure"; then
10349
 
10350
      # If neither matched, then we have a broken ls.  This can happen
10351
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10352
      # broken ls alias from the environment.  This has actually
10353
      # happened.  Such a system could not be considered "sane".
10354 96 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10355
alias in your environment" "$LINENO" 5
10356 19 jeremybenn
   fi
10357
 
10358
   test "$2" = conftest.file
10359
   )
10360
then
10361
   # Ok.
10362
   :
10363
else
10364 96 jeremybenn
   as_fn_error "newly created file is older than distributed files!
10365
Check your system clock" "$LINENO" 5
10366 19 jeremybenn
fi
10367 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10368 82 jeremybenn
$as_echo "yes" >&6; }
10369 19 jeremybenn
test "$program_prefix" != NONE &&
10370
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10371
# Use a double $ so make ignores it.
10372
test "$program_suffix" != NONE &&
10373
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10374 82 jeremybenn
# Double any \ or $.
10375 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10376 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10377
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10378 19 jeremybenn
 
10379
# expand $ac_aux_dir to an absolute path
10380
am_aux_dir=`cd $ac_aux_dir && pwd`
10381
 
10382 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10383
  case $am_aux_dir in
10384
  *\ * | *\     *)
10385
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10386
  *)
10387
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10388
  esac
10389
fi
10390 19 jeremybenn
# Use eval to expand $SHELL
10391
if eval "$MISSING --run true"; then
10392
  am_missing_run="$MISSING --run "
10393
else
10394
  am_missing_run=
10395 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10396 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10397 19 jeremybenn
fi
10398
 
10399 82 jeremybenn
if test x"${install_sh}" != xset; then
10400
  case $am_aux_dir in
10401
  *\ * | *\     *)
10402
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10403
  *)
10404
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10405
  esac
10406
fi
10407
 
10408
# Installed binaries are usually stripped using `strip' when the user
10409
# run `make install-strip'.  However `strip' might not be the right
10410
# tool to use in cross-compilation environments, therefore Automake
10411
# will honor the `STRIP' environment variable to overrule this program.
10412
if test "$cross_compiling" != no; then
10413
  if test -n "$ac_tool_prefix"; then
10414
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10415
set dummy ${ac_tool_prefix}strip; ac_word=$2
10416 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10418 96 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10419 82 jeremybenn
  $as_echo_n "(cached) " >&6
10420
else
10421
  if test -n "$STRIP"; then
10422
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10423
else
10424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425
for as_dir in $PATH
10426
do
10427
  IFS=$as_save_IFS
10428
  test -z "$as_dir" && as_dir=.
10429 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10430 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10432 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 82 jeremybenn
    break 2
10434
  fi
10435
done
10436 96 jeremybenn
  done
10437 82 jeremybenn
IFS=$as_save_IFS
10438
 
10439
fi
10440
fi
10441
STRIP=$ac_cv_prog_STRIP
10442
if test -n "$STRIP"; then
10443 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10444 82 jeremybenn
$as_echo "$STRIP" >&6; }
10445
else
10446 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447 82 jeremybenn
$as_echo "no" >&6; }
10448
fi
10449
 
10450
 
10451
fi
10452
if test -z "$ac_cv_prog_STRIP"; then
10453
  ac_ct_STRIP=$STRIP
10454
  # Extract the first word of "strip", so it can be a program name with args.
10455
set dummy strip; ac_word=$2
10456 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10458 96 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10459 82 jeremybenn
  $as_echo_n "(cached) " >&6
10460
else
10461
  if test -n "$ac_ct_STRIP"; then
10462
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10463
else
10464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465
for as_dir in $PATH
10466
do
10467
  IFS=$as_save_IFS
10468
  test -z "$as_dir" && as_dir=.
10469 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10470 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471
    ac_cv_prog_ac_ct_STRIP="strip"
10472 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 82 jeremybenn
    break 2
10474
  fi
10475
done
10476 96 jeremybenn
  done
10477 82 jeremybenn
IFS=$as_save_IFS
10478
 
10479
fi
10480
fi
10481
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10482
if test -n "$ac_ct_STRIP"; then
10483 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10484 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10485
else
10486 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487 82 jeremybenn
$as_echo "no" >&6; }
10488
fi
10489
 
10490
  if test "x$ac_ct_STRIP" = x; then
10491
    STRIP=":"
10492
  else
10493
    case $cross_compiling:$ac_tool_warned in
10494
yes:)
10495 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10496 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10497
ac_tool_warned=yes ;;
10498
esac
10499
    STRIP=$ac_ct_STRIP
10500
  fi
10501
else
10502
  STRIP="$ac_cv_prog_STRIP"
10503
fi
10504
 
10505
fi
10506
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10507
 
10508 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10509 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10510 19 jeremybenn
if test -z "$MKDIR_P"; then
10511 96 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10512 82 jeremybenn
  $as_echo_n "(cached) " >&6
10513 19 jeremybenn
else
10514
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10516
do
10517
  IFS=$as_save_IFS
10518
  test -z "$as_dir" && as_dir=.
10519 96 jeremybenn
    for ac_prog in mkdir gmkdir; do
10520 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10521
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10522
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10523
             'mkdir (GNU coreutils) '* | \
10524
             'mkdir (coreutils) '* | \
10525
             'mkdir (fileutils) '4.1*)
10526
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10527
               break 3;;
10528
           esac
10529
         done
10530
       done
10531 96 jeremybenn
  done
10532 19 jeremybenn
IFS=$as_save_IFS
10533
 
10534
fi
10535
 
10536 96 jeremybenn
  test -d ./--version && rmdir ./--version
10537 19 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10538
    MKDIR_P="$ac_cv_path_mkdir -p"
10539
  else
10540
    # As a last resort, use the slow shell script.  Don't cache a
10541
    # value for MKDIR_P within a source directory, because that will
10542
    # break other packages using the cache if that directory is
10543
    # removed, or if the value is a relative name.
10544
    MKDIR_P="$ac_install_sh -d"
10545
  fi
10546
fi
10547 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10548 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10549 19 jeremybenn
 
10550
mkdir_p="$MKDIR_P"
10551
case $mkdir_p in
10552
  [\\/$]* | ?:[\\/]*) ;;
10553
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10554
esac
10555
 
10556
for ac_prog in gawk mawk nawk awk
10557
do
10558
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10559
set dummy $ac_prog; ac_word=$2
10560 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10561 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10562 96 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10563 82 jeremybenn
  $as_echo_n "(cached) " >&6
10564 19 jeremybenn
else
10565
  if test -n "$AWK"; then
10566
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10567
else
10568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569
for as_dir in $PATH
10570
do
10571
  IFS=$as_save_IFS
10572
  test -z "$as_dir" && as_dir=.
10573 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10574 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575
    ac_cv_prog_AWK="$ac_prog"
10576 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 19 jeremybenn
    break 2
10578
  fi
10579
done
10580 96 jeremybenn
  done
10581 19 jeremybenn
IFS=$as_save_IFS
10582
 
10583
fi
10584
fi
10585
AWK=$ac_cv_prog_AWK
10586
if test -n "$AWK"; then
10587 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10588 82 jeremybenn
$as_echo "$AWK" >&6; }
10589 19 jeremybenn
else
10590 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10591 82 jeremybenn
$as_echo "no" >&6; }
10592 19 jeremybenn
fi
10593
 
10594
 
10595
  test -n "$AWK" && break
10596
done
10597
 
10598 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10599 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10600
set x ${MAKE-make}
10601
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10602 96 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10603 82 jeremybenn
  $as_echo_n "(cached) " >&6
10604 19 jeremybenn
else
10605
  cat >conftest.make <<\_ACEOF
10606
SHELL = /bin/sh
10607
all:
10608
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10609
_ACEOF
10610
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10611
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10612
  *@@@%%%=?*=@@@%%%*)
10613
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10614
  *)
10615
    eval ac_cv_prog_make_${ac_make}_set=no;;
10616
esac
10617
rm -f conftest.make
10618
fi
10619
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10620 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10621 82 jeremybenn
$as_echo "yes" >&6; }
10622 19 jeremybenn
  SET_MAKE=
10623
else
10624 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 82 jeremybenn
$as_echo "no" >&6; }
10626 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10627
fi
10628
 
10629
rm -rf .tst 2>/dev/null
10630
mkdir .tst 2>/dev/null
10631
if test -d .tst; then
10632
  am__leading_dot=.
10633
else
10634
  am__leading_dot=_
10635
fi
10636
rmdir .tst 2>/dev/null
10637
 
10638
DEPDIR="${am__leading_dot}deps"
10639
 
10640
ac_config_commands="$ac_config_commands depfiles"
10641
 
10642
 
10643
am_make=${MAKE-make}
10644
cat > confinc << 'END'
10645
am__doit:
10646 82 jeremybenn
        @echo this is the am__doit target
10647 19 jeremybenn
.PHONY: am__doit
10648
END
10649
# If we don't find an include directive, just comment out the code.
10650 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10651 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10652 19 jeremybenn
am__include="#"
10653
am__quote=
10654
_am_result=none
10655
# First try GNU make style include.
10656
echo "include confinc" > confmf
10657 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10658
case `$am_make -s -f confmf 2> /dev/null` in #(
10659
*the\ am__doit\ target*)
10660
  am__include=include
10661
  am__quote=
10662
  _am_result=GNU
10663
  ;;
10664
esac
10665 19 jeremybenn
# Now try BSD make style include.
10666
if test "$am__include" = "#"; then
10667
   echo '.include "confinc"' > confmf
10668 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10669
   *the\ am__doit\ target*)
10670
     am__include=.include
10671
     am__quote="\""
10672
     _am_result=BSD
10673
     ;;
10674
   esac
10675 19 jeremybenn
fi
10676
 
10677
 
10678 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10679 82 jeremybenn
$as_echo "$_am_result" >&6; }
10680 19 jeremybenn
rm -f confinc confmf
10681
 
10682
# Check whether --enable-dependency-tracking was given.
10683 96 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10684 19 jeremybenn
  enableval=$enable_dependency_tracking;
10685
fi
10686
 
10687
if test "x$enable_dependency_tracking" != xno; then
10688
  am_depcomp="$ac_aux_dir/depcomp"
10689
  AMDEPBACKSLASH='\'
10690
fi
10691
 if test "x$enable_dependency_tracking" != xno; then
10692
  AMDEP_TRUE=
10693
  AMDEP_FALSE='#'
10694
else
10695
  AMDEP_TRUE='#'
10696
  AMDEP_FALSE=
10697
fi
10698
 
10699
 
10700
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10701
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10702
  # is not polluted with repeated "-I."
10703
  am__isrc=' -I$(srcdir)'
10704
  # test to see if srcdir already configured
10705
  if test -f $srcdir/config.status; then
10706 96 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10707 19 jeremybenn
  fi
10708
fi
10709
 
10710
# test whether we have cygpath
10711
if test -z "$CYGPATH_W"; then
10712
  if (cygpath --version) >/dev/null 2>/dev/null; then
10713
    CYGPATH_W='cygpath -w'
10714
  else
10715
    CYGPATH_W=echo
10716
  fi
10717
fi
10718
 
10719
 
10720
# Define the identity of the package.
10721
 PACKAGE='or1ksim'
10722 96 jeremybenn
 VERSION='2010-05-02'
10723 19 jeremybenn
 
10724
 
10725
cat >>confdefs.h <<_ACEOF
10726
#define PACKAGE "$PACKAGE"
10727
_ACEOF
10728
 
10729
 
10730
cat >>confdefs.h <<_ACEOF
10731
#define VERSION "$VERSION"
10732
_ACEOF
10733
 
10734
# Some tools Automake needs.
10735
 
10736
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10737
 
10738
 
10739
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10740
 
10741
 
10742
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10743
 
10744
 
10745
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10746
 
10747
 
10748
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10749
 
10750
# We need awk for the "check" target.  The system "awk" is bad on
10751
# some platforms.
10752
# Always define AMTAR for backward compatibility.
10753
 
10754
AMTAR=${AMTAR-"${am_missing_run}tar"}
10755
 
10756
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10757
 
10758
 
10759
 
10760
 
10761
depcc="$CC"   am_compiler_list=
10762
 
10763 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10764 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10765 96 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10766 82 jeremybenn
  $as_echo_n "(cached) " >&6
10767 19 jeremybenn
else
10768
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10769
  # We make a subdir and do the tests there.  Otherwise we can end up
10770
  # making bogus files that we don't know about and never remove.  For
10771
  # instance it was reported that on HP-UX the gcc test will end up
10772
  # making a dummy file named `D' -- because `-MD' means `put the output
10773
  # in D'.
10774
  mkdir conftest.dir
10775
  # Copy depcomp to subdir because otherwise we won't find it if we're
10776
  # using a relative directory.
10777
  cp "$am_depcomp" conftest.dir
10778
  cd conftest.dir
10779
  # We will build objects and dependencies in a subdirectory because
10780
  # it helps to detect inapplicable dependency modes.  For instance
10781
  # both Tru64's cc and ICC support -MD to output dependencies as a
10782
  # side effect of compilation, but ICC will put the dependencies in
10783
  # the current directory while Tru64 will put them in the object
10784
  # directory.
10785
  mkdir sub
10786
 
10787
  am_cv_CC_dependencies_compiler_type=none
10788
  if test "$am_compiler_list" = ""; then
10789
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10790
  fi
10791 82 jeremybenn
  am__universal=false
10792
  case " $depcc " in #(
10793
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10794
     esac
10795
 
10796 19 jeremybenn
  for depmode in $am_compiler_list; do
10797
    # Setup a source with many dependencies, because some compilers
10798
    # like to wrap large dependency lists on column 80 (with \), and
10799
    # we should not choose a depcomp mode which is confused by this.
10800
    #
10801
    # We need to recreate these files for each test, as the compiler may
10802
    # overwrite some of them when testing with obscure command lines.
10803
    # This happens at least with the AIX C compiler.
10804
    : > sub/conftest.c
10805
    for i in 1 2 3 4 5 6; do
10806
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10807
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10808
      # Solaris 8's {/usr,}/bin/sh.
10809
      touch sub/conftst$i.h
10810
    done
10811
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10812
 
10813 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10814
    # mode.  It turns out that the SunPro C++ compiler does not properly
10815
    # handle `-M -o', and we need to detect this.  Also, some Intel
10816
    # versions had trouble with output in subdirs
10817
    am__obj=sub/conftest.${OBJEXT-o}
10818
    am__minus_obj="-o $am__obj"
10819 19 jeremybenn
    case $depmode in
10820 82 jeremybenn
    gcc)
10821
      # This depmode causes a compiler race in universal mode.
10822
      test "$am__universal" = false || continue
10823
      ;;
10824 19 jeremybenn
    nosideeffect)
10825
      # after this tag, mechanisms are not by side-effect, so they'll
10826
      # only be used when explicitly requested
10827
      if test "x$enable_dependency_tracking" = xyes; then
10828
        continue
10829
      else
10830
        break
10831
      fi
10832
      ;;
10833 82 jeremybenn
    msvisualcpp | msvcmsys)
10834
      # This compiler won't grok `-c -o', but also, the minuso test has
10835
      # not run yet.  These depmodes are late enough in the game, and
10836
      # so weak that their functioning should not be impacted.
10837
      am__obj=conftest.${OBJEXT-o}
10838
      am__minus_obj=
10839
      ;;
10840 19 jeremybenn
    none) break ;;
10841
    esac
10842
    if depmode=$depmode \
10843 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10844 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10845 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10846 19 jeremybenn
         >/dev/null 2>conftest.err &&
10847
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10848
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10849 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10850 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10851
      # icc doesn't choke on unknown options, it will just issue warnings
10852
      # or remarks (even with -Werror).  So we grep stderr for any message
10853
      # that says an option was ignored or not supported.
10854
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10855
      #   icc: Command line warning: ignoring option '-M'; no argument required
10856
      # The diagnosis changed in icc 8.0:
10857
      #   icc: Command line remark: option '-MP' not supported
10858
      if (grep 'ignoring option' conftest.err ||
10859
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10860
        am_cv_CC_dependencies_compiler_type=$depmode
10861
        break
10862
      fi
10863
    fi
10864
  done
10865
 
10866
  cd ..
10867
  rm -rf conftest.dir
10868
else
10869
  am_cv_CC_dependencies_compiler_type=none
10870
fi
10871
 
10872
fi
10873 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10874 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10875 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10876
 
10877
 if
10878
  test "x$enable_dependency_tracking" != xno \
10879
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10880
  am__fastdepCC_TRUE=
10881
  am__fastdepCC_FALSE='#'
10882
else
10883
  am__fastdepCC_TRUE='#'
10884
  am__fastdepCC_FALSE=
10885
fi
10886
 
10887
 
10888
 
10889 91 jeremybenn
 
10890 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10891
 
10892
 
10893
 
10894
 
10895
# make sure we are using a recent autoconf version
10896
 
10897
 
10898
# yuck.
10899
case "$target_cpu" in
10900
or32*)  CPU_ARCH=or32;
10901
        ARCH_ISA=OR32;
10902
 
10903 96 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10904 82 jeremybenn
;;
10905
dlx*)   CPU_ARCH=dlx;
10906
        ARCH_ISA=DLX;;
10907 96 jeremybenn
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
10908 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
10909
        CPU_ARCH=or32;
10910
        ARCH_ISA=OR32;
10911
 
10912 96 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10913 82 jeremybenn
;;
10914
esac
10915
 
10916
# determine endianism from target CPU name. If it has "little" in the name,
10917
# then its litte endian, otherwise its big endian (default for OR1K)
10918
case "$target_cpu" in
10919
*little*)
10920 96 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10921 82 jeremybenn
;;
10922
       *)
10923 96 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10924 82 jeremybenn
;;
10925
esac
10926
 
10927
 
10928
 
10929
# Set the CFLAGS we want
10930
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
10931
 
10932
# By default we simply use the C compiler to build assembly code.
10933
 
10934
test "${CCAS+set}" = set || CCAS=$CC
10935
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10936
 
10937
 
10938
 
10939
depcc="$CCAS"   am_compiler_list=
10940
 
10941 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10942 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10943 96 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10944 82 jeremybenn
  $as_echo_n "(cached) " >&6
10945 19 jeremybenn
else
10946
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10947
  # We make a subdir and do the tests there.  Otherwise we can end up
10948
  # making bogus files that we don't know about and never remove.  For
10949
  # instance it was reported that on HP-UX the gcc test will end up
10950
  # making a dummy file named `D' -- because `-MD' means `put the output
10951
  # in D'.
10952
  mkdir conftest.dir
10953
  # Copy depcomp to subdir because otherwise we won't find it if we're
10954
  # using a relative directory.
10955
  cp "$am_depcomp" conftest.dir
10956
  cd conftest.dir
10957
  # We will build objects and dependencies in a subdirectory because
10958
  # it helps to detect inapplicable dependency modes.  For instance
10959
  # both Tru64's cc and ICC support -MD to output dependencies as a
10960
  # side effect of compilation, but ICC will put the dependencies in
10961
  # the current directory while Tru64 will put them in the object
10962
  # directory.
10963
  mkdir sub
10964
 
10965 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10966 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10967
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10968
  fi
10969 82 jeremybenn
  am__universal=false
10970
 
10971
 
10972 19 jeremybenn
  for depmode in $am_compiler_list; do
10973
    # Setup a source with many dependencies, because some compilers
10974
    # like to wrap large dependency lists on column 80 (with \), and
10975
    # we should not choose a depcomp mode which is confused by this.
10976
    #
10977
    # We need to recreate these files for each test, as the compiler may
10978
    # overwrite some of them when testing with obscure command lines.
10979
    # This happens at least with the AIX C compiler.
10980
    : > sub/conftest.c
10981
    for i in 1 2 3 4 5 6; do
10982
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10983
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10984
      # Solaris 8's {/usr,}/bin/sh.
10985
      touch sub/conftst$i.h
10986
    done
10987
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10988
 
10989 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10990
    # mode.  It turns out that the SunPro C++ compiler does not properly
10991
    # handle `-M -o', and we need to detect this.  Also, some Intel
10992
    # versions had trouble with output in subdirs
10993
    am__obj=sub/conftest.${OBJEXT-o}
10994
    am__minus_obj="-o $am__obj"
10995 19 jeremybenn
    case $depmode in
10996 82 jeremybenn
    gcc)
10997
      # This depmode causes a compiler race in universal mode.
10998
      test "$am__universal" = false || continue
10999
      ;;
11000 19 jeremybenn
    nosideeffect)
11001
      # after this tag, mechanisms are not by side-effect, so they'll
11002
      # only be used when explicitly requested
11003
      if test "x$enable_dependency_tracking" = xyes; then
11004
        continue
11005
      else
11006
        break
11007
      fi
11008
      ;;
11009 82 jeremybenn
    msvisualcpp | msvcmsys)
11010
      # This compiler won't grok `-c -o', but also, the minuso test has
11011
      # not run yet.  These depmodes are late enough in the game, and
11012
      # so weak that their functioning should not be impacted.
11013
      am__obj=conftest.${OBJEXT-o}
11014
      am__minus_obj=
11015
      ;;
11016 19 jeremybenn
    none) break ;;
11017
    esac
11018
    if depmode=$depmode \
11019 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11020 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11021 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11022 19 jeremybenn
         >/dev/null 2>conftest.err &&
11023
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11024
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11025 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11026 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11027
      # icc doesn't choke on unknown options, it will just issue warnings
11028
      # or remarks (even with -Werror).  So we grep stderr for any message
11029
      # that says an option was ignored or not supported.
11030
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11031
      #   icc: Command line warning: ignoring option '-M'; no argument required
11032
      # The diagnosis changed in icc 8.0:
11033
      #   icc: Command line remark: option '-MP' not supported
11034
      if (grep 'ignoring option' conftest.err ||
11035
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11036 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11037 19 jeremybenn
        break
11038
      fi
11039
    fi
11040
  done
11041
 
11042
  cd ..
11043
  rm -rf conftest.dir
11044
else
11045 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11046 19 jeremybenn
fi
11047
 
11048
fi
11049 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11050 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11051
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11052 19 jeremybenn
 
11053
 if
11054
  test "x$enable_dependency_tracking" != xno \
11055 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11056
  am__fastdepCCAS_TRUE=
11057
  am__fastdepCCAS_FALSE='#'
11058 19 jeremybenn
else
11059 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11060
  am__fastdepCCAS_FALSE=
11061 19 jeremybenn
fi
11062
 
11063
 
11064
 
11065
ac_ext=c
11066
ac_cpp='$CPP $CPPFLAGS'
11067
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070
if test -n "$ac_tool_prefix"; then
11071
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11072
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11073 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11075 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11076 82 jeremybenn
  $as_echo_n "(cached) " >&6
11077 19 jeremybenn
else
11078
  if test -n "$CC"; then
11079
  ac_cv_prog_CC="$CC" # Let the user override the test.
11080
else
11081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082
for as_dir in $PATH
11083
do
11084
  IFS=$as_save_IFS
11085
  test -z "$as_dir" && as_dir=.
11086 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11087 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11088
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11089 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090 19 jeremybenn
    break 2
11091
  fi
11092
done
11093 96 jeremybenn
  done
11094 19 jeremybenn
IFS=$as_save_IFS
11095
 
11096
fi
11097
fi
11098
CC=$ac_cv_prog_CC
11099
if test -n "$CC"; then
11100 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11101 82 jeremybenn
$as_echo "$CC" >&6; }
11102 19 jeremybenn
else
11103 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 82 jeremybenn
$as_echo "no" >&6; }
11105 19 jeremybenn
fi
11106
 
11107
 
11108
fi
11109
if test -z "$ac_cv_prog_CC"; then
11110
  ac_ct_CC=$CC
11111
  # Extract the first word of "gcc", so it can be a program name with args.
11112
set dummy gcc; ac_word=$2
11113 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11115 96 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11116 82 jeremybenn
  $as_echo_n "(cached) " >&6
11117 19 jeremybenn
else
11118
  if test -n "$ac_ct_CC"; then
11119
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11120
else
11121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122
for as_dir in $PATH
11123
do
11124
  IFS=$as_save_IFS
11125
  test -z "$as_dir" && as_dir=.
11126 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11127 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128
    ac_cv_prog_ac_ct_CC="gcc"
11129 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 19 jeremybenn
    break 2
11131
  fi
11132
done
11133 96 jeremybenn
  done
11134 19 jeremybenn
IFS=$as_save_IFS
11135
 
11136
fi
11137
fi
11138
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11139
if test -n "$ac_ct_CC"; then
11140 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11141 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11142 19 jeremybenn
else
11143 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 82 jeremybenn
$as_echo "no" >&6; }
11145 19 jeremybenn
fi
11146
 
11147
  if test "x$ac_ct_CC" = x; then
11148
    CC=""
11149
  else
11150
    case $cross_compiling:$ac_tool_warned in
11151
yes:)
11152 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11153 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11154 19 jeremybenn
ac_tool_warned=yes ;;
11155
esac
11156
    CC=$ac_ct_CC
11157
  fi
11158
else
11159
  CC="$ac_cv_prog_CC"
11160
fi
11161
 
11162
if test -z "$CC"; then
11163
          if test -n "$ac_tool_prefix"; then
11164
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11165
set dummy ${ac_tool_prefix}cc; ac_word=$2
11166 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11168 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11169 82 jeremybenn
  $as_echo_n "(cached) " >&6
11170 19 jeremybenn
else
11171
  if test -n "$CC"; then
11172
  ac_cv_prog_CC="$CC" # Let the user override the test.
11173
else
11174
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175
for as_dir in $PATH
11176
do
11177
  IFS=$as_save_IFS
11178
  test -z "$as_dir" && as_dir=.
11179 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11180 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11182 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 19 jeremybenn
    break 2
11184
  fi
11185
done
11186 96 jeremybenn
  done
11187 19 jeremybenn
IFS=$as_save_IFS
11188
 
11189
fi
11190
fi
11191
CC=$ac_cv_prog_CC
11192
if test -n "$CC"; then
11193 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11194 82 jeremybenn
$as_echo "$CC" >&6; }
11195 19 jeremybenn
else
11196 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197 82 jeremybenn
$as_echo "no" >&6; }
11198 19 jeremybenn
fi
11199
 
11200
 
11201
  fi
11202
fi
11203
if test -z "$CC"; then
11204
  # Extract the first word of "cc", so it can be a program name with args.
11205
set dummy cc; ac_word=$2
11206 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11208 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11209 82 jeremybenn
  $as_echo_n "(cached) " >&6
11210 19 jeremybenn
else
11211
  if test -n "$CC"; then
11212
  ac_cv_prog_CC="$CC" # Let the user override the test.
11213
else
11214
  ac_prog_rejected=no
11215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216
for as_dir in $PATH
11217
do
11218
  IFS=$as_save_IFS
11219
  test -z "$as_dir" && as_dir=.
11220 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11221 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11222
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11223
       ac_prog_rejected=yes
11224
       continue
11225
     fi
11226
    ac_cv_prog_CC="cc"
11227 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228 19 jeremybenn
    break 2
11229
  fi
11230
done
11231 96 jeremybenn
  done
11232 19 jeremybenn
IFS=$as_save_IFS
11233
 
11234
if test $ac_prog_rejected = yes; then
11235
  # We found a bogon in the path, so make sure we never use it.
11236
  set dummy $ac_cv_prog_CC
11237
  shift
11238
  if test $# != 0; then
11239
    # We chose a different compiler from the bogus one.
11240
    # However, it has the same basename, so the bogon will be chosen
11241
    # first if we set CC to just the basename; use the full file name.
11242
    shift
11243
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11244
  fi
11245
fi
11246
fi
11247
fi
11248
CC=$ac_cv_prog_CC
11249
if test -n "$CC"; then
11250 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11251 82 jeremybenn
$as_echo "$CC" >&6; }
11252 19 jeremybenn
else
11253 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 82 jeremybenn
$as_echo "no" >&6; }
11255 19 jeremybenn
fi
11256
 
11257
 
11258
fi
11259
if test -z "$CC"; then
11260
  if test -n "$ac_tool_prefix"; then
11261
  for ac_prog in cl.exe
11262
  do
11263
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11264
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11265 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11267 96 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11268 82 jeremybenn
  $as_echo_n "(cached) " >&6
11269 19 jeremybenn
else
11270
  if test -n "$CC"; then
11271
  ac_cv_prog_CC="$CC" # Let the user override the test.
11272
else
11273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274
for as_dir in $PATH
11275
do
11276
  IFS=$as_save_IFS
11277
  test -z "$as_dir" && as_dir=.
11278 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11279 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11280
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11281 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 19 jeremybenn
    break 2
11283
  fi
11284
done
11285 96 jeremybenn
  done
11286 19 jeremybenn
IFS=$as_save_IFS
11287
 
11288
fi
11289
fi
11290
CC=$ac_cv_prog_CC
11291
if test -n "$CC"; then
11292 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11293 82 jeremybenn
$as_echo "$CC" >&6; }
11294 19 jeremybenn
else
11295 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11296 82 jeremybenn
$as_echo "no" >&6; }
11297 19 jeremybenn
fi
11298
 
11299
 
11300
    test -n "$CC" && break
11301
  done
11302
fi
11303
if test -z "$CC"; then
11304
  ac_ct_CC=$CC
11305
  for ac_prog in cl.exe
11306
do
11307
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11308
set dummy $ac_prog; ac_word=$2
11309 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11311 96 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11312 82 jeremybenn
  $as_echo_n "(cached) " >&6
11313 19 jeremybenn
else
11314
  if test -n "$ac_ct_CC"; then
11315
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11316
else
11317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11318
for as_dir in $PATH
11319
do
11320
  IFS=$as_save_IFS
11321
  test -z "$as_dir" && as_dir=.
11322 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11323 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11324
    ac_cv_prog_ac_ct_CC="$ac_prog"
11325 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11326 19 jeremybenn
    break 2
11327
  fi
11328
done
11329 96 jeremybenn
  done
11330 19 jeremybenn
IFS=$as_save_IFS
11331
 
11332
fi
11333
fi
11334
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11335
if test -n "$ac_ct_CC"; then
11336 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11337 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11338 19 jeremybenn
else
11339 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11340 82 jeremybenn
$as_echo "no" >&6; }
11341 19 jeremybenn
fi
11342
 
11343
 
11344
  test -n "$ac_ct_CC" && break
11345
done
11346
 
11347
  if test "x$ac_ct_CC" = x; then
11348
    CC=""
11349
  else
11350
    case $cross_compiling:$ac_tool_warned in
11351
yes:)
11352 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11353 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11354 19 jeremybenn
ac_tool_warned=yes ;;
11355
esac
11356
    CC=$ac_ct_CC
11357
  fi
11358
fi
11359
 
11360
fi
11361
 
11362
 
11363 96 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11364 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11365 96 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
11366
See \`config.log' for more details." "$LINENO" 5; }
11367 19 jeremybenn
 
11368
# Provide some information about the compiler.
11369 96 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11370 82 jeremybenn
set X $ac_compile
11371
ac_compiler=$2
11372 96 jeremybenn
for ac_option in --version -v -V -qversion; do
11373
  { { ac_try="$ac_compiler $ac_option >&5"
11374 19 jeremybenn
case "(($ac_try" in
11375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376
  *) ac_try_echo=$ac_try;;
11377
esac
11378 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11379
$as_echo "$ac_try_echo"; } >&5
11380
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11381 19 jeremybenn
  ac_status=$?
11382 96 jeremybenn
  if test -s conftest.err; then
11383
    sed '10a\
11384
... rest of stderr output deleted ...
11385
         10q' conftest.err >conftest.er1
11386
    cat conftest.er1 >&5
11387
  fi
11388
  rm -f conftest.er1 conftest.err
11389
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11390
  test $ac_status = 0; }
11391
done
11392 19 jeremybenn
 
11393 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11394 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11395 96 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11396 82 jeremybenn
  $as_echo_n "(cached) " >&6
11397 19 jeremybenn
else
11398 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 19 jeremybenn
/* end confdefs.h.  */
11400
 
11401
int
11402
main ()
11403
{
11404
#ifndef __GNUC__
11405
       choke me
11406
#endif
11407
 
11408
  ;
11409
  return 0;
11410
}
11411
_ACEOF
11412 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11413 19 jeremybenn
  ac_compiler_gnu=yes
11414
else
11415 96 jeremybenn
  ac_compiler_gnu=no
11416 19 jeremybenn
fi
11417
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11419
 
11420
fi
11421 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11422 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11423
if test $ac_compiler_gnu = yes; then
11424
  GCC=yes
11425
else
11426
  GCC=
11427
fi
11428 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11429
ac_save_CFLAGS=$CFLAGS
11430 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11431 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11432 96 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
11433 82 jeremybenn
  $as_echo_n "(cached) " >&6
11434 19 jeremybenn
else
11435
  ac_save_c_werror_flag=$ac_c_werror_flag
11436
   ac_c_werror_flag=yes
11437
   ac_cv_prog_cc_g=no
11438
   CFLAGS="-g"
11439 96 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 19 jeremybenn
/* end confdefs.h.  */
11441
 
11442
int
11443
main ()
11444
{
11445
 
11446
  ;
11447
  return 0;
11448
}
11449
_ACEOF
11450 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11451 19 jeremybenn
  ac_cv_prog_cc_g=yes
11452
else
11453 96 jeremybenn
  CFLAGS=""
11454
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 19 jeremybenn
/* end confdefs.h.  */
11456
 
11457
int
11458
main ()
11459
{
11460
 
11461
  ;
11462
  return 0;
11463
}
11464
_ACEOF
11465 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11466
 
11467 19 jeremybenn
else
11468 96 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11469 19 jeremybenn
         CFLAGS="-g"
11470 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 19 jeremybenn
/* end confdefs.h.  */
11472
 
11473
int
11474
main ()
11475
{
11476
 
11477
  ;
11478
  return 0;
11479
}
11480
_ACEOF
11481 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11482 19 jeremybenn
  ac_cv_prog_cc_g=yes
11483
fi
11484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11485
fi
11486
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487
fi
11488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489
   ac_c_werror_flag=$ac_save_c_werror_flag
11490
fi
11491 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11492 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11493 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11494
  CFLAGS=$ac_save_CFLAGS
11495
elif test $ac_cv_prog_cc_g = yes; then
11496
  if test "$GCC" = yes; then
11497
    CFLAGS="-g -O2"
11498
  else
11499
    CFLAGS="-g"
11500
  fi
11501
else
11502
  if test "$GCC" = yes; then
11503
    CFLAGS="-O2"
11504
  else
11505
    CFLAGS=
11506
  fi
11507
fi
11508 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11509 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11510 96 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11511 82 jeremybenn
  $as_echo_n "(cached) " >&6
11512 19 jeremybenn
else
11513
  ac_cv_prog_cc_c89=no
11514
ac_save_CC=$CC
11515 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 19 jeremybenn
/* end confdefs.h.  */
11517
#include 
11518
#include 
11519
#include 
11520
#include 
11521
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11522
struct buf { int x; };
11523
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11524
static char *e (p, i)
11525
     char **p;
11526
     int i;
11527
{
11528
  return p[i];
11529
}
11530
static char *f (char * (*g) (char **, int), char **p, ...)
11531
{
11532
  char *s;
11533
  va_list v;
11534
  va_start (v,p);
11535
  s = g (p, va_arg (v,int));
11536
  va_end (v);
11537
  return s;
11538
}
11539
 
11540
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11541
   function prototypes and stuff, but not '\xHH' hex character constants.
11542
   These don't provoke an error unfortunately, instead are silently treated
11543
   as 'x'.  The following induces an error, until -std is added to get
11544
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11545
   array size at least.  It's necessary to write '\x00'==0 to get something
11546
   that's true only with -std.  */
11547
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11548
 
11549
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11550
   inside strings and character constants.  */
11551
#define FOO(x) 'x'
11552
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11553
 
11554
int test (int i, double x);
11555
struct s1 {int (*f) (int a);};
11556
struct s2 {int (*f) (double a);};
11557
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11558
int argc;
11559
char **argv;
11560
int
11561
main ()
11562
{
11563
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11564
  ;
11565
  return 0;
11566
}
11567
_ACEOF
11568
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11569
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11570
do
11571
  CC="$ac_save_CC $ac_arg"
11572 96 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11573 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11574
fi
11575
rm -f core conftest.err conftest.$ac_objext
11576
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11577
done
11578
rm -f conftest.$ac_ext
11579
CC=$ac_save_CC
11580
 
11581
fi
11582
# AC_CACHE_VAL
11583
case "x$ac_cv_prog_cc_c89" in
11584
  x)
11585 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11586 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11587 19 jeremybenn
  xno)
11588 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11589 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11590 19 jeremybenn
  *)
11591
    CC="$CC $ac_cv_prog_cc_c89"
11592 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11593 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11594 19 jeremybenn
esac
11595 96 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11596 19 jeremybenn
 
11597 96 jeremybenn
fi
11598 19 jeremybenn
 
11599
ac_ext=c
11600
ac_cpp='$CPP $CPPFLAGS'
11601
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11602
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11603
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11604
 
11605
if test "x$CC" != xcc; then
11606 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11607 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11608 19 jeremybenn
else
11609 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11610 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11611 19 jeremybenn
fi
11612 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11613 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11614 96 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11615 82 jeremybenn
  $as_echo_n "(cached) " >&6
11616 19 jeremybenn
else
11617 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 19 jeremybenn
/* end confdefs.h.  */
11619
 
11620
int
11621
main ()
11622
{
11623
 
11624
  ;
11625
  return 0;
11626
}
11627
_ACEOF
11628
# Make sure it works both with $CC and with simple cc.
11629
# We do the test twice because some compilers refuse to overwrite an
11630
# existing .o file with -o, though they will create one.
11631
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11632
rm -f conftest2.*
11633 96 jeremybenn
if { { case "(($ac_try" in
11634 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635
  *) ac_try_echo=$ac_try;;
11636
esac
11637 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11638
$as_echo "$ac_try_echo"; } >&5
11639 19 jeremybenn
  (eval "$ac_try") 2>&5
11640
  ac_status=$?
11641 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11642
  test $ac_status = 0; } &&
11643
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11644 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645
  *) ac_try_echo=$ac_try;;
11646
esac
11647 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11648
$as_echo "$ac_try_echo"; } >&5
11649 19 jeremybenn
  (eval "$ac_try") 2>&5
11650
  ac_status=$?
11651 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11652
  test $ac_status = 0; };
11653 19 jeremybenn
then
11654
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11655
  if test "x$CC" != xcc; then
11656
    # Test first that cc exists at all.
11657
    if { ac_try='cc -c conftest.$ac_ext >&5'
11658 96 jeremybenn
  { { case "(($ac_try" in
11659 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660
  *) ac_try_echo=$ac_try;;
11661
esac
11662 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11663
$as_echo "$ac_try_echo"; } >&5
11664 19 jeremybenn
  (eval "$ac_try") 2>&5
11665
  ac_status=$?
11666 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11667
  test $ac_status = 0; }; }; then
11668 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11669
      rm -f conftest2.*
11670 96 jeremybenn
      if { { case "(($ac_try" in
11671 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672
  *) ac_try_echo=$ac_try;;
11673
esac
11674 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11675
$as_echo "$ac_try_echo"; } >&5
11676 19 jeremybenn
  (eval "$ac_try") 2>&5
11677
  ac_status=$?
11678 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11679
  test $ac_status = 0; } &&
11680
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11681 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682
  *) ac_try_echo=$ac_try;;
11683
esac
11684 96 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11685
$as_echo "$ac_try_echo"; } >&5
11686 19 jeremybenn
  (eval "$ac_try") 2>&5
11687
  ac_status=$?
11688 96 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11689
  test $ac_status = 0; };
11690 19 jeremybenn
      then
11691
        # cc works too.
11692
        :
11693
      else
11694
        # cc exists but doesn't like -o.
11695
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11696
      fi
11697
    fi
11698
  fi
11699
else
11700
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11701
fi
11702
rm -f core conftest*
11703
 
11704
fi
11705
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11706 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11707 82 jeremybenn
$as_echo "yes" >&6; }
11708 19 jeremybenn
else
11709 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 82 jeremybenn
$as_echo "no" >&6; }
11711 19 jeremybenn
 
11712 96 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11713 19 jeremybenn
 
11714
fi
11715
 
11716
# FIXME: we rely on the cache variable name because
11717
# there is no other way.
11718
set dummy $CC
11719 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11720
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11721
if test "$am_t" != yes; then
11722 19 jeremybenn
   # Losing compiler, so override with the script.
11723
   # FIXME: It is wrong to rewrite CC.
11724
   # But if we don't then we get into trouble of one sort or another.
11725
   # A longer-term fix would be to have automake use am__CC in this case,
11726
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11727
   CC="$am_aux_dir/compile $CC"
11728
fi
11729
 
11730
 
11731
 
11732 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11733 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11734
set x ${MAKE-make}
11735
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11736 96 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11737 82 jeremybenn
  $as_echo_n "(cached) " >&6
11738 19 jeremybenn
else
11739
  cat >conftest.make <<\_ACEOF
11740
SHELL = /bin/sh
11741
all:
11742
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11743
_ACEOF
11744
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11745
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11746
  *@@@%%%=?*=@@@%%%*)
11747
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11748
  *)
11749
    eval ac_cv_prog_make_${ac_make}_set=no;;
11750
esac
11751
rm -f conftest.make
11752
fi
11753
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11754 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11755 82 jeremybenn
$as_echo "yes" >&6; }
11756 19 jeremybenn
  SET_MAKE=
11757
else
11758 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 82 jeremybenn
$as_echo "no" >&6; }
11760 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11761
fi
11762
 
11763
 
11764 82 jeremybenn
 
11765 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11766
set dummy ar; ac_word=$2
11767 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11769 96 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
11770 82 jeremybenn
  $as_echo_n "(cached) " >&6
11771 19 jeremybenn
else
11772
  if test -n "$AR"; then
11773
  ac_cv_prog_AR="$AR" # Let the user override the test.
11774
else
11775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776
for as_dir in $PATH
11777
do
11778
  IFS=$as_save_IFS
11779
  test -z "$as_dir" && as_dir=.
11780 96 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11781 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11782
    ac_cv_prog_AR="ar"
11783 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 19 jeremybenn
    break 2
11785
  fi
11786
done
11787 96 jeremybenn
  done
11788 19 jeremybenn
IFS=$as_save_IFS
11789
 
11790
fi
11791
fi
11792
AR=$ac_cv_prog_AR
11793
if test -n "$AR"; then
11794 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11795 82 jeremybenn
$as_echo "$AR" >&6; }
11796 19 jeremybenn
else
11797 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 82 jeremybenn
$as_echo "no" >&6; }
11799 19 jeremybenn
fi
11800
 
11801
 
11802
 
11803
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11804
# This allows people to set it when running configure or make
11805
test -n "$ARFLAGS" || ARFLAGS="cr"
11806
 
11807 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11808 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11809 96 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then :
11810 82 jeremybenn
  $as_echo_n "(cached) " >&6
11811 19 jeremybenn
else
11812 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 19 jeremybenn
/* end confdefs.h.  */
11814
#include 
11815
#include 
11816
 
11817
int
11818
main ()
11819
{
11820
return *(signal (0, 0)) (0) == 1;
11821
  ;
11822
  return 0;
11823
}
11824
_ACEOF
11825 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11826 19 jeremybenn
  ac_cv_type_signal=int
11827
else
11828 96 jeremybenn
  ac_cv_type_signal=void
11829 19 jeremybenn
fi
11830
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831
fi
11832 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11833 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11834 19 jeremybenn
 
11835
cat >>confdefs.h <<_ACEOF
11836
#define RETSIGTYPE $ac_cv_type_signal
11837
_ACEOF
11838
 
11839
 
11840 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
11841
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11842
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11843
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h
11844 96 jeremybenn
do :
11845
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11846
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11847
eval as_val=\$$as_ac_Header
11848
   if test "x$as_val" = x""yes; then :
11849 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11850
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11851 19 jeremybenn
_ACEOF
11852
 
11853
fi
11854
 
11855
done
11856
 
11857
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11858 96 jeremybenn
do :
11859
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11861
eval as_val=\$$as_ac_var
11862
   if test "x$as_val" = x""yes; then :
11863 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11864 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11865 19 jeremybenn
_ACEOF
11866
 
11867
fi
11868
done
11869
 
11870 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11871 96 jeremybenn
do :
11872
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11873
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11874
eval as_val=\$$as_ac_var
11875
   if test "x$as_val" = x""yes; then :
11876 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11877 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11878 19 jeremybenn
_ACEOF
11879
 
11880
fi
11881
done
11882
 
11883
for ac_func in basename
11884 96 jeremybenn
do :
11885
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11886
if test "x$ac_cv_func_basename" = x""yes; then :
11887 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11888 96 jeremybenn
#define HAVE_BASENAME 1
11889 19 jeremybenn
_ACEOF
11890
 
11891
fi
11892
done
11893
 
11894 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11895 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11896 96 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11897 82 jeremybenn
  $as_echo_n "(cached) " >&6
11898 19 jeremybenn
else
11899 96 jeremybenn
  if test "$cross_compiling" = yes; then :
11900 19 jeremybenn
  ac_cv_func_strcoll_works=no
11901
else
11902 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 19 jeremybenn
/* end confdefs.h.  */
11904
$ac_includes_default
11905
int
11906
main ()
11907
{
11908
return (strcoll ("abc", "def") >= 0 ||
11909
         strcoll ("ABC", "DEF") >= 0 ||
11910
         strcoll ("123", "456") >= 0)
11911
  ;
11912
  return 0;
11913
}
11914
_ACEOF
11915 96 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11916 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11917
else
11918 96 jeremybenn
  ac_cv_func_strcoll_works=no
11919 19 jeremybenn
fi
11920 96 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11921
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11922 19 jeremybenn
fi
11923
 
11924
fi
11925 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11926 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11927 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11928
 
11929 96 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11930 19 jeremybenn
 
11931
fi
11932
 
11933 96 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11934 82 jeremybenn
               #include 
11935 96 jeremybenn
"
11936
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11937
  ac_have_decl=1
11938 19 jeremybenn
else
11939 96 jeremybenn
  ac_have_decl=0
11940 19 jeremybenn
fi
11941
 
11942 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11943 96 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11944 19 jeremybenn
_ACEOF
11945 96 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11946 82 jeremybenn
               #include 
11947 96 jeremybenn
"
11948
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11949
  ac_have_decl=1
11950 19 jeremybenn
else
11951 96 jeremybenn
  ac_have_decl=0
11952 19 jeremybenn
fi
11953
 
11954 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11955 96 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11956 19 jeremybenn
_ACEOF
11957
 
11958 96 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11959 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11960 96 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then :
11961 82 jeremybenn
  $as_echo_n "(cached) " >&6
11962 19 jeremybenn
else
11963 82 jeremybenn
  ac_cv_c_bigendian=unknown
11964
    # See if we're dealing with a universal compiler.
11965 96 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 19 jeremybenn
/* end confdefs.h.  */
11967 82 jeremybenn
#ifndef __APPLE_CC__
11968
               not a universal capable compiler
11969
             #endif
11970
             typedef int dummy;
11971
 
11972 19 jeremybenn
_ACEOF
11973 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11974 82 jeremybenn
 
11975
        # Check for potential -arch flags.  It is not universal unless
11976 96 jeremybenn
        # there are at least two -arch flags with different values.
11977
        ac_arch=
11978
        ac_prev=
11979
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11980
         if test -n "$ac_prev"; then
11981
           case $ac_word in
11982
             i?86 | x86_64 | ppc | ppc64)
11983
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11984
                 ac_arch=$ac_word
11985
               else
11986
                 ac_cv_c_bigendian=universal
11987
                 break
11988
               fi
11989
               ;;
11990
           esac
11991
           ac_prev=
11992
         elif test "x$ac_word" = "x-arch"; then
11993
           ac_prev=arch
11994
         fi
11995
       done
11996 19 jeremybenn
fi
11997
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
11999
      # See if sys/param.h defines the BYTE_ORDER macro.
12000 96 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 19 jeremybenn
/* end confdefs.h.  */
12002 82 jeremybenn
#include 
12003
             #include 
12004
 
12005
int
12006
main ()
12007
{
12008
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12009
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12010
                     && LITTLE_ENDIAN)
12011
              bogus endian macros
12012
             #endif
12013
 
12014
  ;
12015
  return 0;
12016
}
12017 19 jeremybenn
_ACEOF
12018 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12019 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
12020 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 19 jeremybenn
/* end confdefs.h.  */
12022 82 jeremybenn
#include 
12023
                #include 
12024
 
12025 19 jeremybenn
int
12026
main ()
12027
{
12028 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12029
                 not big endian
12030
                #endif
12031 19 jeremybenn
 
12032
  ;
12033
  return 0;
12034
}
12035
_ACEOF
12036 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12037 82 jeremybenn
  ac_cv_c_bigendian=yes
12038 19 jeremybenn
else
12039 96 jeremybenn
  ac_cv_c_bigendian=no
12040 19 jeremybenn
fi
12041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042
fi
12043 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12044
    fi
12045
    if test $ac_cv_c_bigendian = unknown; then
12046
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12047 96 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 19 jeremybenn
/* end confdefs.h.  */
12049 82 jeremybenn
#include 
12050 19 jeremybenn
 
12051
int
12052
main ()
12053
{
12054 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12055
              bogus endian macros
12056
             #endif
12057 19 jeremybenn
 
12058
  ;
12059
  return 0;
12060
}
12061
_ACEOF
12062 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12063 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12064 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 19 jeremybenn
/* end confdefs.h.  */
12066 82 jeremybenn
#include 
12067 19 jeremybenn
 
12068
int
12069
main ()
12070
{
12071 82 jeremybenn
#ifndef _BIG_ENDIAN
12072
                 not big endian
12073
                #endif
12074 19 jeremybenn
 
12075
  ;
12076
  return 0;
12077
}
12078
_ACEOF
12079 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12080 19 jeremybenn
  ac_cv_c_bigendian=yes
12081
else
12082 96 jeremybenn
  ac_cv_c_bigendian=no
12083 19 jeremybenn
fi
12084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12085 82 jeremybenn
fi
12086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087
    fi
12088
    if test $ac_cv_c_bigendian = unknown; then
12089
      # Compile a test program.
12090 96 jeremybenn
      if test "$cross_compiling" = yes; then :
12091 82 jeremybenn
  # Try to guess by grepping values from an object file.
12092 96 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 19 jeremybenn
/* end confdefs.h.  */
12094 82 jeremybenn
short int ascii_mm[] =
12095
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12096
                short int ascii_ii[] =
12097
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12098
                int use_ascii (int i) {
12099
                  return ascii_mm[i] + ascii_ii[i];
12100
                }
12101
                short int ebcdic_ii[] =
12102
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12103
                short int ebcdic_mm[] =
12104
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12105
                int use_ebcdic (int i) {
12106
                  return ebcdic_mm[i] + ebcdic_ii[i];
12107
                }
12108
                extern int foo;
12109
 
12110 19 jeremybenn
int
12111
main ()
12112
{
12113 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12114 19 jeremybenn
  ;
12115
  return 0;
12116
}
12117
_ACEOF
12118 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12119 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12120
              ac_cv_c_bigendian=yes
12121
            fi
12122
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12123
              if test "$ac_cv_c_bigendian" = unknown; then
12124
                ac_cv_c_bigendian=no
12125
              else
12126
                # finding both strings is unlikely to happen, but who knows?
12127
                ac_cv_c_bigendian=unknown
12128
              fi
12129
            fi
12130 19 jeremybenn
fi
12131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132
else
12133 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 19 jeremybenn
/* end confdefs.h.  */
12135
$ac_includes_default
12136
int
12137
main ()
12138
{
12139
 
12140 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12141
             union
12142
             {
12143
               long int l;
12144
               char c[sizeof (long int)];
12145
             } u;
12146
             u.l = 1;
12147
             return u.c[sizeof (long int) - 1] == 1;
12148 19 jeremybenn
 
12149
  ;
12150
  return 0;
12151
}
12152
_ACEOF
12153 96 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12154 19 jeremybenn
  ac_cv_c_bigendian=no
12155
else
12156 96 jeremybenn
  ac_cv_c_bigendian=yes
12157 19 jeremybenn
fi
12158 96 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12159
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12160 19 jeremybenn
fi
12161
 
12162 82 jeremybenn
    fi
12163 19 jeremybenn
fi
12164 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12165 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12166
 case $ac_cv_c_bigendian in #(
12167
   yes)
12168 96 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12169 82 jeremybenn
;; #(
12170
   no)
12171
      ;; #(
12172
   universal)
12173 19 jeremybenn
 
12174 96 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12175 82 jeremybenn
 
12176
     ;; #(
12177
   *)
12178 96 jeremybenn
     as_fn_error "unknown endianness
12179
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12180 82 jeremybenn
 esac
12181
 
12182
 
12183
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12184
# think it's because GCC 4 does not like the way autoconf overrides the built
12185
# in type declaration. So we must check for them by steam.
12186 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12187 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12188 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12189 82 jeremybenn
/* end confdefs.h.  */
12190
#ifdef HAVE_STRING_H
12191
                                  #include 
12192
                                  #else
12193
                                  char *strndup (const char *s,
12194
                                                 size_t      n);
12195
                                  #endif
12196
int
12197
main ()
12198
{
12199
\
12200
                                const char *s = "test";
12201
                                  char       *t;
12202
                                  t = strndup (s, 3);
12203
  ;
12204
  return 0;
12205
}
12206
_ACEOF
12207 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12208 82 jeremybenn
  \
12209
 
12210 96 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12211 82 jeremybenn
 \
12212 96 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213 82 jeremybenn
$as_echo "yes" >&6; }
12214
else
12215 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 82 jeremybenn
$as_echo "no" >&6; }
12217 19 jeremybenn
fi
12218 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12219
    conftest$ac_exeext conftest.$ac_ext
12220 19 jeremybenn
 
12221 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12222 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12223 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 82 jeremybenn
/* end confdefs.h.  */
12225
#ifdef HAVE_STRINGS_H
12226
                                  #include 
12227
                                  #else
12228
                                  int strcasecmp (const char *s1,
12229
                                                  const char *s2);
12230
                                  #endif
12231
int
12232
main ()
12233
{
12234
\
12235
                                const char *s = "test";
12236
                                  const char *t = "TEST";
12237
                                  int         res;
12238
                                  res = strcasecmp (s, t);
12239
  ;
12240
  return 0;
12241
}
12242
_ACEOF
12243 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12244 82 jeremybenn
  \
12245
 
12246 96 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12247 82 jeremybenn
 \
12248 96 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12249 82 jeremybenn
$as_echo "yes" >&6; }
12250
else
12251 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 82 jeremybenn
$as_echo "no" >&6; }
12253
fi
12254 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12255
    conftest$ac_exeext conftest.$ac_ext
12256 82 jeremybenn
 
12257 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12258 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12259 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 82 jeremybenn
/* end confdefs.h.  */
12261
#ifdef HAVE_CTYPE_H
12262
                                  #include 
12263
                                  #else
12264
                                  int isblank (int  c);
12265
                                  #endif
12266
int
12267
main ()
12268
{
12269
\
12270
                                return isblank ('x');
12271
  ;
12272
  return 0;
12273
}
12274
_ACEOF
12275 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12276 82 jeremybenn
  \
12277 19 jeremybenn
 
12278 96 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12279 82 jeremybenn
 \
12280 96 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281 82 jeremybenn
$as_echo "yes" >&6; }
12282
else
12283 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284 82 jeremybenn
$as_echo "no" >&6; }
12285
fi
12286 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12287
    conftest$ac_exeext conftest.$ac_ext
12288 82 jeremybenn
 
12289 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12290 96 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12291
if test "x$ac_cv_type_size_t" = x""yes; then :
12292 19 jeremybenn
 
12293
else
12294
 
12295
cat >>confdefs.h <<_ACEOF
12296
#define size_t unsigned int
12297
_ACEOF
12298
 
12299
fi
12300
 
12301 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12302 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12303 96 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then :
12304 82 jeremybenn
  $as_echo_n "(cached) " >&6
12305 19 jeremybenn
else
12306 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 19 jeremybenn
/* end confdefs.h.  */
12308
#include 
12309
#include 
12310
 
12311
int
12312
main ()
12313
{
12314
struct tm tm;
12315
                                     int *p = &tm.tm_sec;
12316 82 jeremybenn
                                     return !p;
12317 19 jeremybenn
  ;
12318
  return 0;
12319
}
12320
_ACEOF
12321 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12322 19 jeremybenn
  ac_cv_struct_tm=time.h
12323
else
12324 96 jeremybenn
  ac_cv_struct_tm=sys/time.h
12325 19 jeremybenn
fi
12326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12327
fi
12328 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12329 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12330 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12331
 
12332 96 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12333 19 jeremybenn
 
12334
fi
12335
 
12336
 
12337
# Checks for library functions (for argtable2).
12338
for ac_header in stdlib.h
12339 96 jeremybenn
do :
12340
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12341
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12342 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12343 96 jeremybenn
#define HAVE_STDLIB_H 1
12344 19 jeremybenn
_ACEOF
12345
 
12346
fi
12347
 
12348
done
12349
 
12350 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12351 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12352 96 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12353 82 jeremybenn
  $as_echo_n "(cached) " >&6
12354 19 jeremybenn
else
12355 96 jeremybenn
  if test "$cross_compiling" = yes; then :
12356 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12357
else
12358 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 19 jeremybenn
/* end confdefs.h.  */
12360
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12361
# include 
12362
#else
12363
char *malloc ();
12364
#endif
12365
 
12366
int
12367
main ()
12368
{
12369
return ! malloc (0);
12370
  ;
12371
  return 0;
12372
}
12373
_ACEOF
12374 96 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12375 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12376
else
12377 96 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12378 19 jeremybenn
fi
12379 96 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12380
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12381 19 jeremybenn
fi
12382
 
12383
fi
12384 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12385 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12386 96 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12387 19 jeremybenn
 
12388 96 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12389 19 jeremybenn
 
12390
else
12391 96 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12392 19 jeremybenn
 
12393
   case " $LIBOBJS " in
12394
  *" malloc.$ac_objext "* ) ;;
12395
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12396
 ;;
12397
esac
12398
 
12399
 
12400 96 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12401 19 jeremybenn
 
12402
fi
12403
 
12404
 
12405
for ac_func in strftime
12406 96 jeremybenn
do :
12407
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12408
if test "x$ac_cv_func_strftime" = x""yes; then :
12409 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12410 96 jeremybenn
#define HAVE_STRFTIME 1
12411 19 jeremybenn
_ACEOF
12412
 
12413
else
12414
  # strftime is in -lintl on SCO UNIX.
12415 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12416 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12417 96 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12418 82 jeremybenn
  $as_echo_n "(cached) " >&6
12419 19 jeremybenn
else
12420
  ac_check_lib_save_LIBS=$LIBS
12421
LIBS="-lintl  $LIBS"
12422 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 19 jeremybenn
/* end confdefs.h.  */
12424
 
12425
/* Override any GCC internal prototype to avoid an error.
12426
   Use char because int might match the return type of a GCC
12427
   builtin and then its argument prototype would still apply.  */
12428
#ifdef __cplusplus
12429
extern "C"
12430
#endif
12431
char strftime ();
12432
int
12433
main ()
12434
{
12435
return strftime ();
12436
  ;
12437
  return 0;
12438
}
12439
_ACEOF
12440 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12441 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12442
else
12443 96 jeremybenn
  ac_cv_lib_intl_strftime=no
12444 19 jeremybenn
fi
12445 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12446
    conftest$ac_exeext conftest.$ac_ext
12447 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12448
fi
12449 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12450 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12451 96 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12452
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12453 19 jeremybenn
 
12454
LIBS="-lintl $LIBS"
12455
fi
12456
 
12457
fi
12458
done
12459
 
12460 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12461 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12462 96 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then :
12463 82 jeremybenn
  $as_echo_n "(cached) " >&6
12464 19 jeremybenn
else
12465 96 jeremybenn
  if test "$cross_compiling" = yes; then :
12466 19 jeremybenn
  ac_cv_func_strtod=no
12467
else
12468 96 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 19 jeremybenn
/* end confdefs.h.  */
12470
 
12471
$ac_includes_default
12472
#ifndef strtod
12473
double strtod ();
12474
#endif
12475
int
12476
main()
12477
{
12478
  {
12479
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12480
    char *string = " +69";
12481
    char *term;
12482
    double value;
12483
    value = strtod (string, &term);
12484
    if (value != 69 || term != (string + 4))
12485
      return 1;
12486
  }
12487
 
12488
  {
12489
    /* Under Solaris 2.4, strtod returns the wrong value for the
12490
       terminating character under some conditions.  */
12491
    char *string = "NaN";
12492
    char *term;
12493
    strtod (string, &term);
12494
    if (term != string && *(term - 1) == 0)
12495
      return 1;
12496
  }
12497
  return 0;
12498
}
12499
 
12500
_ACEOF
12501 96 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12502 19 jeremybenn
  ac_cv_func_strtod=yes
12503
else
12504 96 jeremybenn
  ac_cv_func_strtod=no
12505 19 jeremybenn
fi
12506 96 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12507
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12508 19 jeremybenn
fi
12509
 
12510
fi
12511 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12512 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12513 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12514
  case " $LIBOBJS " in
12515
  *" strtod.$ac_objext "* ) ;;
12516
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12517
 ;;
12518
esac
12519
 
12520 96 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12521
if test "x$ac_cv_func_pow" = x""yes; then :
12522 19 jeremybenn
 
12523
fi
12524
 
12525
if test $ac_cv_func_pow = no; then
12526 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12527 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12528 96 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then :
12529 82 jeremybenn
  $as_echo_n "(cached) " >&6
12530 19 jeremybenn
else
12531
  ac_check_lib_save_LIBS=$LIBS
12532
LIBS="-lm  $LIBS"
12533 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 19 jeremybenn
/* end confdefs.h.  */
12535
 
12536
/* Override any GCC internal prototype to avoid an error.
12537
   Use char because int might match the return type of a GCC
12538
   builtin and then its argument prototype would still apply.  */
12539
#ifdef __cplusplus
12540
extern "C"
12541
#endif
12542
char pow ();
12543
int
12544
main ()
12545
{
12546
return pow ();
12547
  ;
12548
  return 0;
12549
}
12550
_ACEOF
12551 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12552 19 jeremybenn
  ac_cv_lib_m_pow=yes
12553
else
12554 96 jeremybenn
  ac_cv_lib_m_pow=no
12555 19 jeremybenn
fi
12556 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12557
    conftest$ac_exeext conftest.$ac_ext
12558 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12559
fi
12560 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12561 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12562 96 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12563 19 jeremybenn
  POW_LIB=-lm
12564
else
12565 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12566 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12567 19 jeremybenn
fi
12568
 
12569
fi
12570
 
12571
fi
12572
 
12573
for ac_func in bzero strchr strcspn strrchr strtol
12574 96 jeremybenn
do :
12575
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12577
eval as_val=\$$as_ac_var
12578
   if test "x$as_val" = x""yes; then :
12579 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12580 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12581 19 jeremybenn
_ACEOF
12582
 
12583
fi
12584
done
12585
 
12586 96 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12587
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12588 19 jeremybenn
  SYS_GETOPTLONG=1
12589
else
12590
  SYS_GETOPTLONG=0
12591
fi
12592
 
12593 96 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12594
if test "x$ac_cv_func_regcomp" = x""yes; then :
12595 19 jeremybenn
  SYS_REGEX=1
12596
else
12597
  SYS_REGEX=0
12598
fi
12599
 
12600 96 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12601
if test "x$ac_cv_func_strptime" = x""yes; then :
12602 19 jeremybenn
  SYS_STRPTIME=1
12603
else
12604
  SYS_STRPTIME=0
12605
fi
12606
 
12607
 
12608
# Define automake conditionals (for argtable2)
12609
 if test "$SYS_GETOPTLONG" = "1"; then
12610
  USE_SYS_GETOPTLONG_TRUE=
12611
  USE_SYS_GETOPTLONG_FALSE='#'
12612
else
12613
  USE_SYS_GETOPTLONG_TRUE='#'
12614
  USE_SYS_GETOPTLONG_FALSE=
12615
fi
12616
 
12617
 if test "$SYS_REGEX" = "1"; then
12618
  USE_ARGREX_TRUE=
12619
  USE_ARGREX_FALSE='#'
12620
else
12621
  USE_ARGREX_TRUE='#'
12622
  USE_ARGREX_FALSE=
12623
fi
12624
 
12625
 if test "$SYS_STRPTIME" = "1"; then
12626
  USE_ARGDATE_TRUE=
12627
  USE_ARGDATE_FALSE='#'
12628
else
12629
  USE_ARGDATE_TRUE='#'
12630
  USE_ARGDATE_FALSE=
12631
fi
12632
 
12633
 
12634
# check for "long long" (added by Erez)
12635 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 19 jeremybenn
/* end confdefs.h.  */
12637
 
12638
int
12639
main ()
12640
{
12641
long long ll; unsigned long long ull;
12642
  ;
12643
  return 0;
12644
}
12645
_ACEOF
12646 96 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12647 19 jeremybenn
 
12648 96 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12649 19 jeremybenn
 
12650
fi
12651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652
 
12653
# check for {u,}int{8,16,32}_t in inttypes.h.
12654 96 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12655
"
12656
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12657 82 jeremybenn
 
12658 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12659
#define HAVE_UINT8_T 1
12660
_ACEOF
12661
 
12662
 
12663
fi
12664 96 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12665
"
12666
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12667 82 jeremybenn
 
12668 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12669
#define HAVE_UINT16_T 1
12670
_ACEOF
12671
 
12672
 
12673
fi
12674 96 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12675
"
12676
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12677 82 jeremybenn
 
12678 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12679
#define HAVE_UINT32_T 1
12680
_ACEOF
12681
 
12682
 
12683
fi
12684
 
12685 96 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12686
"
12687
if test "x$ac_cv_type_int8_t" = x""yes; then :
12688 82 jeremybenn
 
12689 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12690
#define HAVE_INT8_T 1
12691
_ACEOF
12692
 
12693
 
12694
fi
12695 96 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12696
"
12697
if test "x$ac_cv_type_int16_t" = x""yes; then :
12698 82 jeremybenn
 
12699 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12700
#define HAVE_INT16_T 1
12701
_ACEOF
12702
 
12703
 
12704
fi
12705 96 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12706
"
12707
if test "x$ac_cv_type_int32_t" = x""yes; then :
12708 19 jeremybenn
 
12709 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12710
#define HAVE_INT32_T 1
12711
_ACEOF
12712
 
12713
 
12714
fi
12715
 
12716
 
12717 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12718
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12719
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12720
# This bug is HP SR number 8606223364.
12721 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12722 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12723 96 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then :
12724 82 jeremybenn
  $as_echo_n "(cached) " >&6
12725 19 jeremybenn
else
12726 96 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12727 19 jeremybenn
 
12728
else
12729 96 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12730
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12731 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12732 96 jeremybenn
{ as_fn_set_status 77
12733
as_fn_error "cannot compute sizeof (char)
12734
See \`config.log' for more details." "$LINENO" 5; }; }
12735 19 jeremybenn
   else
12736
     ac_cv_sizeof_char=0
12737
   fi
12738
fi
12739 96 jeremybenn
 
12740 19 jeremybenn
fi
12741 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12742 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12743 19 jeremybenn
 
12744
 
12745
 
12746
cat >>confdefs.h <<_ACEOF
12747
#define SIZEOF_CHAR $ac_cv_sizeof_char
12748
_ACEOF
12749
 
12750
 
12751
# The cast to long int works around a bug in the HP C Compiler
12752
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12753
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12754
# This bug is HP SR number 8606223364.
12755 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12756 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12757 96 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then :
12758 82 jeremybenn
  $as_echo_n "(cached) " >&6
12759 19 jeremybenn
else
12760 96 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12761 19 jeremybenn
 
12762
else
12763 96 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12764
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12765 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12766 96 jeremybenn
{ as_fn_set_status 77
12767
as_fn_error "cannot compute sizeof (short)
12768
See \`config.log' for more details." "$LINENO" 5; }; }
12769 19 jeremybenn
   else
12770
     ac_cv_sizeof_short=0
12771
   fi
12772
fi
12773 96 jeremybenn
 
12774 19 jeremybenn
fi
12775 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12776 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12777 19 jeremybenn
 
12778
 
12779
 
12780
cat >>confdefs.h <<_ACEOF
12781
#define SIZEOF_SHORT $ac_cv_sizeof_short
12782
_ACEOF
12783
 
12784
 
12785
# The cast to long int works around a bug in the HP C Compiler
12786
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12787
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12788
# This bug is HP SR number 8606223364.
12789 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12790 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12791 96 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then :
12792 82 jeremybenn
  $as_echo_n "(cached) " >&6
12793 19 jeremybenn
else
12794 96 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12795 19 jeremybenn
 
12796
else
12797 96 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12798
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12799 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12800 96 jeremybenn
{ as_fn_set_status 77
12801
as_fn_error "cannot compute sizeof (int)
12802
See \`config.log' for more details." "$LINENO" 5; }; }
12803 19 jeremybenn
   else
12804
     ac_cv_sizeof_int=0
12805
   fi
12806
fi
12807 96 jeremybenn
 
12808 19 jeremybenn
fi
12809 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12810 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12811 19 jeremybenn
 
12812
 
12813
 
12814
cat >>confdefs.h <<_ACEOF
12815
#define SIZEOF_INT $ac_cv_sizeof_int
12816
_ACEOF
12817
 
12818
 
12819
# The cast to long int works around a bug in the HP C Compiler
12820
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12821
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12822
# This bug is HP SR number 8606223364.
12823 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12824 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12825 96 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then :
12826 82 jeremybenn
  $as_echo_n "(cached) " >&6
12827 19 jeremybenn
else
12828 96 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12829 19 jeremybenn
 
12830
else
12831 96 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12832
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12833 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12834 96 jeremybenn
{ as_fn_set_status 77
12835
as_fn_error "cannot compute sizeof (long)
12836
See \`config.log' for more details." "$LINENO" 5; }; }
12837 19 jeremybenn
   else
12838
     ac_cv_sizeof_long=0
12839
   fi
12840
fi
12841 96 jeremybenn
 
12842 19 jeremybenn
fi
12843 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12844 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
12845 19 jeremybenn
 
12846
 
12847
 
12848
cat >>confdefs.h <<_ACEOF
12849
#define SIZEOF_LONG $ac_cv_sizeof_long
12850
_ACEOF
12851
 
12852
 
12853
 
12854
#Check for compare function type for qsort (needed by some Linuxes)
12855 96 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12856
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12857 19 jeremybenn
 
12858
cat >>confdefs.h <<_ACEOF
12859
#define HAVE___COMPAR_FN_T 1
12860
_ACEOF
12861
 
12862
 
12863
fi
12864
 
12865
 
12866
# check for GNU readline
12867 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12868 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12869 96 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12870 82 jeremybenn
  $as_echo_n "(cached) " >&6
12871 19 jeremybenn
else
12872
  ac_check_lib_save_LIBS=$LIBS
12873
LIBS="-lreadline  $LIBS"
12874 96 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 19 jeremybenn
/* end confdefs.h.  */
12876
 
12877
/* Override any GCC internal prototype to avoid an error.
12878
   Use char because int might match the return type of a GCC
12879
   builtin and then its argument prototype would still apply.  */
12880
#ifdef __cplusplus
12881
extern "C"
12882
#endif
12883
char add_history ();
12884
int
12885
main ()
12886
{
12887
return add_history ();
12888
  ;
12889
  return 0;
12890
}
12891
_ACEOF
12892 96 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12893 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12894
else
12895 96 jeremybenn
  ac_cv_lib_readline_add_history=no
12896 19 jeremybenn
fi
12897 96 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12898
    conftest$ac_exeext conftest.$ac_ext
12899 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12900
fi
12901 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12902 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12903 96 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12904 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12905
#define HAVE_LIBREADLINE 1
12906
_ACEOF
12907
 
12908
  LIBS="-lreadline $LIBS"
12909
 
12910
fi
12911
 
12912
 
12913
# yuck
12914
case "$host_os" in
12915
aix*)   prefer_curses=yes ;;
12916
esac
12917
 
12918
case "$host_cpu" in
12919
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12920
esac
12921
 
12922
case "$host_os" in
12923
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12924
esac
12925
 
12926
case "$host_os" in
12927
solaris*) LIBS="-lsocket -lnsl" ;;
12928
esac
12929
 
12930
# define options
12931 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12932 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12933 19 jeremybenn
# Check whether --enable-profiling was given.
12934 96 jeremybenn
if test "${enable_profiling+set}" = set; then :
12935 19 jeremybenn
  enableval=$enable_profiling;
12936
    case "$enableval" in
12937
        yes) profile="-pg" ;;
12938
    esac
12939
 
12940
fi
12941
 
12942 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12943 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12944 19 jeremybenn
 
12945
execution="1"
12946
 
12947
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12948 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12949 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12950 19 jeremybenn
# Check whether --enable-execution was given.
12951 96 jeremybenn
if test "${enable_execution+set}" = set; then :
12952 19 jeremybenn
  enableval=$enable_execution;
12953
    case "$enableval" in
12954
    simple)
12955
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12956
      execution="0"
12957 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12958 82 jeremybenn
$as_echo "simple" >&6; }
12959 19 jeremybenn
      ;;
12960
    complex)
12961
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12962
      execution="1"
12963 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12964 82 jeremybenn
$as_echo "complex" >&6; }
12965 19 jeremybenn
      ;;
12966
    dynamic)
12967
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12968
      execution="2"
12969 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12970 82 jeremybenn
$as_echo "dynamic" >&6; }
12971 19 jeremybenn
      ;;
12972
    *)
12973 96 jeremybenn
      as_fn_error "\"excecution must one of simple/complex/dynamic\"" "$LINENO" 5
12974 19 jeremybenn
      ;;
12975
    esac
12976
 
12977
else
12978
 
12979 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12980 82 jeremybenn
$as_echo "complex" >&6; }
12981 19 jeremybenn
 
12982
fi
12983
 
12984
 
12985
eth_phy="0"
12986 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12987 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12988 19 jeremybenn
# Check whether --enable-ethphy was given.
12989 96 jeremybenn
if test "${enable_ethphy+set}" = set; then :
12990 19 jeremybenn
  enableval=$enable_ethphy;
12991
    case "$enableval" in
12992
  no)  eth_phy="0" ;;
12993
        yes) eth_phy="1" ;;
12994
    esac
12995
 
12996
fi
12997
 
12998 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
12999 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
13000 19 jeremybenn
 
13001
 
13002
raw_range_stats="0"
13003 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13004 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13005 19 jeremybenn
# Check whether --enable-range_stats was given.
13006 96 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13007 19 jeremybenn
  enableval=$enable_range_stats;
13008
    case "$enableval" in
13009
  no)  raw_range_stats="0" ;;
13010
        yes) raw_range_stats="1" simple_execution="1" ;;
13011
    esac
13012
 
13013
fi
13014
 
13015 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13016 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13017 19 jeremybenn
 
13018
set_ov_flag="0"
13019 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether instructions set overflow flag" >&5
13020 82 jeremybenn
$as_echo_n "checking whether instructions set overflow flag... " >&6; }
13021 19 jeremybenn
# Check whether --enable-ov_flag was given.
13022 96 jeremybenn
if test "${enable_ov_flag+set}" = set; then :
13023 19 jeremybenn
  enableval=$enable_ov_flag;
13024
    case "$enableval" in
13025
    no)  set_ov_flag="0" ;;
13026
    yes) set_ov_flag="1" ;;
13027
    esac
13028
 
13029
fi
13030
 
13031 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ov_flag-no}" >&5
13032 82 jeremybenn
$as_echo "${enable_ov_flag-no}" >&6; }
13033 19 jeremybenn
 
13034
set_arith_flag="0"
13035 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether arithmethic instructions set flag" >&5
13036 82 jeremybenn
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
13037 19 jeremybenn
# Check whether --enable-arith_flag was given.
13038 96 jeremybenn
if test "${enable_arith_flag+set}" = set; then :
13039 19 jeremybenn
  enableval=$enable_arith_flag;
13040
    case "$enableval" in
13041
  no)  set_arith_flag="0" ;;
13042
        yes) set_arith_flag="1" ;;
13043
    esac
13044
 
13045
fi
13046
 
13047 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_arith_flag-no}" >&5
13048 82 jeremybenn
$as_echo "${enable_arith_flag-no}" >&6; }
13049 19 jeremybenn
 
13050
# check for --enable-debug argument (for argtable2)
13051
# Check whether --enable-debug was given.
13052 96 jeremybenn
if test "${enable_debug+set}" = set; then :
13053 19 jeremybenn
  enableval=$enable_debug;
13054
       case $enableval in
13055
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13056
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13057
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13058
       esac
13059
 
13060
else
13061
  DEBUGFLAGS="-DNDEBUG"
13062
 
13063
fi
13064
 
13065
 
13066
 
13067
 
13068
cat >>confdefs.h <<_ACEOF
13069
#define RAW_RANGE_STATS $raw_range_stats
13070
_ACEOF
13071
 
13072
 
13073
cat >>confdefs.h <<_ACEOF
13074
#define SET_OV_FLAG $set_ov_flag
13075
_ACEOF
13076
 
13077
 
13078
cat >>confdefs.h <<_ACEOF
13079
#define ARITH_SET_FLAG $set_arith_flag
13080
_ACEOF
13081
 
13082
 
13083
cat >>confdefs.h <<_ACEOF
13084
#define HAVE_ETH_PHY $eth_phy
13085
_ACEOF
13086
 
13087
 
13088
cat >>confdefs.h <<_ACEOF
13089
#define SIMPLE_EXECUTION $execution == 0
13090
_ACEOF
13091
 
13092
 
13093
cat >>confdefs.h <<_ACEOF
13094
#define COMPLEX_EXECUTION $execution == 1
13095
_ACEOF
13096
 
13097
 
13098
cat >>confdefs.h <<_ACEOF
13099
#define DYNAMIC_EXECUTION $execution == 2
13100
_ACEOF
13101
 
13102
 if test x$execution = x1; then
13103
  GENERATE_NEEDED_TRUE=
13104
  GENERATE_NEEDED_FALSE='#'
13105
else
13106
  GENERATE_NEEDED_TRUE='#'
13107
  GENERATE_NEEDED_FALSE=
13108
fi
13109
 
13110
 if test x$execution = x2; then
13111
  DYNAMIC_EXECUTION_TRUE=
13112
  DYNAMIC_EXECUTION_FALSE='#'
13113
else
13114
  DYNAMIC_EXECUTION_TRUE='#'
13115
  DYNAMIC_EXECUTION_FALSE=
13116
fi
13117
 
13118
 
13119
 
13120
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13121
 
13122 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13123
# ourselves. This stops runtest complaining
13124
if test x"$DEJAGNU" = x
13125
then
13126 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13127 90 jeremybenn
fi
13128
 
13129 96 jeremybenn
 
13130
 
13131
# The following line will override the default definition of the srcdir, and
13132
# ensure that short names are used for the test names.
13133
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13134
 
13135
 
13136 19 jeremybenn
BUILD_DIR=`pwd`
13137
 
13138
 
13139
 
13140
 
13141
 
13142
 
13143
 
13144
 
13145
 
13146
 
13147
 
13148
 
13149
 
13150
 
13151
 
13152
 
13153
 
13154
 
13155 96 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13156 19 jeremybenn
 
13157
 
13158
# yuck
13159
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13160
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13161
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13162
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13163
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13164
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
13165
 
13166
 
13167 93 jeremybenn
ac_config_files="$ac_config_files Makefile argtable2/Makefile bpb/Makefile cache/Makefile cpu/Makefile cpu/common/Makefile cpu/or1k/Makefile cuc/Makefile debug/Makefile doc/Makefile mmu/Makefile peripheral/Makefile peripheral/channels/Makefile pm/Makefile pic/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-upcalls/Makefile tick/Makefile vapi/Makefile"
13168 19 jeremybenn
 
13169
 
13170
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13171
case "$CPU_ARCH" in
13172
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13173
;;
13174
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13175
;;
13176
esac
13177
 
13178 82 jeremybenn
# Generate the output
13179
 
13180
 
13181 19 jeremybenn
cat >confcache <<\_ACEOF
13182
# This file is a shell script that caches the results of configure
13183
# tests run on this system so they can be shared between configure
13184
# scripts and configure runs, see configure's option --config-cache.
13185
# It is not useful on other systems.  If it contains results you don't
13186
# want to keep, you may remove or edit it.
13187
#
13188
# config.status only pays attention to the cache file if you give it
13189
# the --recheck option to rerun configure.
13190
#
13191
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13192
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13193
# following values.
13194
 
13195
_ACEOF
13196
 
13197
# The following way of writing the cache mishandles newlines in values,
13198
# but we know of no workaround that is simple, portable, and efficient.
13199
# So, we kill variables containing newlines.
13200
# Ultrix sh set writes to stderr and can't be redirected directly,
13201
# and sets the high bit in the cache file unless we assign to the vars.
13202
(
13203
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13204
    eval ac_val=\$$ac_var
13205
    case $ac_val in #(
13206
    *${as_nl}*)
13207
      case $ac_var in #(
13208 96 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13209 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13210 19 jeremybenn
      esac
13211
      case $ac_var in #(
13212
      _ | IFS | as_nl) ;; #(
13213 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13214 96 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13215 19 jeremybenn
      esac ;;
13216
    esac
13217
  done
13218
 
13219
  (set) 2>&1 |
13220
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13221
    *${as_nl}ac_space=\ *)
13222 96 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13223
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13224 19 jeremybenn
      sed -n \
13225
        "s/'/'\\\\''/g;
13226
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13227
      ;; #(
13228
    *)
13229
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13230
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13231
      ;;
13232
    esac |
13233
    sort
13234
) |
13235
  sed '
13236
     /^ac_cv_env_/b end
13237
     t clear
13238
     :clear
13239
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13240
     t end
13241
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13242
     :end' >>confcache
13243
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13244
  if test -w "$cache_file"; then
13245
    test "x$cache_file" != "x/dev/null" &&
13246 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13247 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13248 19 jeremybenn
    cat confcache >$cache_file
13249
  else
13250 96 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13251 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13252 19 jeremybenn
  fi
13253
fi
13254
rm -f confcache
13255
 
13256
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13257
# Let make expand exec_prefix.
13258
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13259
 
13260
DEFS=-DHAVE_CONFIG_H
13261
 
13262
ac_libobjs=
13263
ac_ltlibobjs=
13264
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13265
  # 1. Remove the extension, and $U if already installed.
13266
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13267 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13268 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13269
  #    will be set to the directory where LIBOBJS objects are built.
13270 96 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13271
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13272 19 jeremybenn
done
13273
LIBOBJS=$ac_libobjs
13274
 
13275
LTLIBOBJS=$ac_ltlibobjs
13276
 
13277
 
13278
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13279 96 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
13280
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13281 19 jeremybenn
fi
13282
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13283 96 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13284
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13285 19 jeremybenn
fi
13286 82 jeremybenn
 if test -n "$EXEEXT"; then
13287
  am__EXEEXT_TRUE=
13288
  am__EXEEXT_FALSE='#'
13289
else
13290
  am__EXEEXT_TRUE='#'
13291
  am__EXEEXT_FALSE=
13292
fi
13293
 
13294
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13295 96 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13296
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13297 19 jeremybenn
fi
13298 82 jeremybenn
 
13299 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13300 96 jeremybenn
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13301
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13302 19 jeremybenn
fi
13303
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13304 96 jeremybenn
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13305
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13306 19 jeremybenn
fi
13307
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13308 96 jeremybenn
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13309
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13310 19 jeremybenn
fi
13311
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13312 96 jeremybenn
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13313
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13314 19 jeremybenn
fi
13315
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13316 96 jeremybenn
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13317
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13318 19 jeremybenn
fi
13319
 
13320
: ${CONFIG_STATUS=./config.status}
13321 82 jeremybenn
ac_write_fail=0
13322 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13323
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13324 96 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13325 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13326 96 jeremybenn
as_write_fail=0
13327
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13328 19 jeremybenn
#! $SHELL
13329
# Generated by $as_me.
13330
# Run this file to recreate the current configuration.
13331
# Compiler output produced by configure, useful for debugging
13332
# configure, is in config.log if it exists.
13333
 
13334
debug=false
13335
ac_cs_recheck=false
13336
ac_cs_silent=false
13337 96 jeremybenn
 
13338 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13339 96 jeremybenn
export SHELL
13340
_ASEOF
13341
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13342
## -------------------- ##
13343
## M4sh Initialization. ##
13344
## -------------------- ##
13345 19 jeremybenn
 
13346
# Be more Bourne compatible
13347
DUALCASE=1; export DUALCASE # for MKS sh
13348 96 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13349 19 jeremybenn
  emulate sh
13350
  NULLCMD=:
13351 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13352 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13353
  alias -g '${1+"$@"}'='"$@"'
13354
  setopt NO_GLOB_SUBST
13355
else
13356 96 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13357
  *posix*) :
13358
    set -o posix ;; #(
13359
  *) :
13360
     ;;
13361 19 jeremybenn
esac
13362
fi
13363
 
13364
 
13365 82 jeremybenn
as_nl='
13366
'
13367
export as_nl
13368
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13369
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13370
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13371
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13372 96 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13373
# but without wasting forks for bash or zsh.
13374
if test -z "$BASH_VERSION$ZSH_VERSION" \
13375
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13376
  as_echo='print -r --'
13377
  as_echo_n='print -rn --'
13378
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13379 82 jeremybenn
  as_echo='printf %s\n'
13380
  as_echo_n='printf %s'
13381
else
13382
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13383
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13384
    as_echo_n='/usr/ucb/echo -n'
13385 19 jeremybenn
  else
13386 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13387
    as_echo_n_body='eval
13388
      arg=$1;
13389 96 jeremybenn
      case $arg in #(
13390 82 jeremybenn
      *"$as_nl"*)
13391
        expr "X$arg" : "X\\(.*\\)$as_nl";
13392
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13393
      esac;
13394
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13395
    '
13396
    export as_echo_n_body
13397
    as_echo_n='sh -c $as_echo_n_body as_echo'
13398 19 jeremybenn
  fi
13399 82 jeremybenn
  export as_echo_body
13400
  as_echo='sh -c $as_echo_body as_echo'
13401 19 jeremybenn
fi
13402
 
13403 82 jeremybenn
# The user is always right.
13404
if test "${PATH_SEPARATOR+set}" != set; then
13405
  PATH_SEPARATOR=:
13406
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13407
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13408
      PATH_SEPARATOR=';'
13409
  }
13410
fi
13411
 
13412 19 jeremybenn
 
13413
# IFS
13414
# We need space, tab and new line, in precisely that order.  Quoting is
13415
# there to prevent editors from complaining about space-tab.
13416
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13417
# splitting by setting IFS to empty value.)
13418
IFS=" ""        $as_nl"
13419
 
13420
# Find who we are.  Look in the path if we contain no directory separator.
13421 96 jeremybenn
case $0 in #((
13422 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13423
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424
for as_dir in $PATH
13425
do
13426
  IFS=$as_save_IFS
13427
  test -z "$as_dir" && as_dir=.
13428 96 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13429
  done
13430 19 jeremybenn
IFS=$as_save_IFS
13431
 
13432
     ;;
13433
esac
13434
# We did not find ourselves, most probably we were run as `sh COMMAND'
13435
# in which case we are not to be found in the path.
13436
if test "x$as_myself" = x; then
13437
  as_myself=$0
13438
fi
13439
if test ! -f "$as_myself"; then
13440 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13441 96 jeremybenn
  exit 1
13442 19 jeremybenn
fi
13443
 
13444 96 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13445
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13446
# suppresses any "Segmentation fault" message there.  '((' could
13447
# trigger a bug in pdksh 5.2.14.
13448
for as_var in BASH_ENV ENV MAIL MAILPATH
13449
do eval test x\${$as_var+set} = xset \
13450
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13451 19 jeremybenn
done
13452
PS1='$ '
13453
PS2='> '
13454
PS4='+ '
13455
 
13456
# NLS nuisances.
13457 82 jeremybenn
LC_ALL=C
13458
export LC_ALL
13459
LANGUAGE=C
13460
export LANGUAGE
13461 19 jeremybenn
 
13462 96 jeremybenn
# CDPATH.
13463
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13464
 
13465
 
13466
# as_fn_error ERROR [LINENO LOG_FD]
13467
# ---------------------------------
13468
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13469
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13470
# script with status $?, using 1 if that was 0.
13471
as_fn_error ()
13472
{
13473
  as_status=$?; test $as_status -eq 0 && as_status=1
13474
  if test "$3"; then
13475
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13476
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13477
  fi
13478
  $as_echo "$as_me: error: $1" >&2
13479
  as_fn_exit $as_status
13480
} # as_fn_error
13481
 
13482
 
13483
# as_fn_set_status STATUS
13484
# -----------------------
13485
# Set $? to STATUS, without forking.
13486
as_fn_set_status ()
13487
{
13488
  return $1
13489
} # as_fn_set_status
13490
 
13491
# as_fn_exit STATUS
13492
# -----------------
13493
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13494
as_fn_exit ()
13495
{
13496
  set +e
13497
  as_fn_set_status $1
13498
  exit $1
13499
} # as_fn_exit
13500
 
13501
# as_fn_unset VAR
13502
# ---------------
13503
# Portably unset VAR.
13504
as_fn_unset ()
13505
{
13506
  { eval $1=; unset $1;}
13507
}
13508
as_unset=as_fn_unset
13509
# as_fn_append VAR VALUE
13510
# ----------------------
13511
# Append the text in VALUE to the end of the definition contained in VAR. Take
13512
# advantage of any shell optimizations that allow amortized linear growth over
13513
# repeated appends, instead of the typical quadratic growth present in naive
13514
# implementations.
13515
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13516
  eval 'as_fn_append ()
13517
  {
13518
    eval $1+=\$2
13519
  }'
13520
else
13521
  as_fn_append ()
13522
  {
13523
    eval $1=\$$1\$2
13524
  }
13525
fi # as_fn_append
13526
 
13527
# as_fn_arith ARG...
13528
# ------------------
13529
# Perform arithmetic evaluation on the ARGs, and store the result in the
13530
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13531
# must be portable across $(()) and expr.
13532
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13533
  eval 'as_fn_arith ()
13534
  {
13535
    as_val=$(( $* ))
13536
  }'
13537
else
13538
  as_fn_arith ()
13539
  {
13540
    as_val=`expr "$@" || test $? -eq 1`
13541
  }
13542
fi # as_fn_arith
13543
 
13544
 
13545 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13546
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13547
  as_expr=expr
13548
else
13549
  as_expr=false
13550
fi
13551
 
13552
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13553
  as_basename=basename
13554
else
13555
  as_basename=false
13556
fi
13557
 
13558 96 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13559
  as_dirname=dirname
13560
else
13561
  as_dirname=false
13562
fi
13563 19 jeremybenn
 
13564
as_me=`$as_basename -- "$0" ||
13565
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13566
         X"$0" : 'X\(//\)$' \| \
13567
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13568 82 jeremybenn
$as_echo X/"$0" |
13569 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13570
            s//\1/
13571
            q
13572
          }
13573
          /^X\/\(\/\/\)$/{
13574
            s//\1/
13575
            q
13576
          }
13577
          /^X\/\(\/\).*/{
13578
            s//\1/
13579
            q
13580
          }
13581
          s/.*/./; q'`
13582
 
13583 96 jeremybenn
# Avoid depending upon Character Ranges.
13584
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13585
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13586
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13587
as_cr_digits='0123456789'
13588
as_cr_alnum=$as_cr_Letters$as_cr_digits
13589 19 jeremybenn
 
13590
ECHO_C= ECHO_N= ECHO_T=
13591 96 jeremybenn
case `echo -n x` in #(((((
13592 19 jeremybenn
-n*)
13593 96 jeremybenn
  case `echo 'xy\c'` in
13594 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13595 96 jeremybenn
  xy)  ECHO_C='\c';;
13596
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13597
       ECHO_T=' ';;
13598 19 jeremybenn
  esac;;
13599
*)
13600
  ECHO_N='-n';;
13601
esac
13602
 
13603
rm -f conf$$ conf$$.exe conf$$.file
13604
if test -d conf$$.dir; then
13605
  rm -f conf$$.dir/conf$$.file
13606
else
13607
  rm -f conf$$.dir
13608 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13609 19 jeremybenn
fi
13610 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13611
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13612
    as_ln_s='ln -s'
13613
    # ... but there are two gotchas:
13614
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13615
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13616
    # In both cases, we have to default to `cp -p'.
13617
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13618
      as_ln_s='cp -p'
13619
  elif ln conf$$.file conf$$ 2>/dev/null; then
13620
    as_ln_s=ln
13621
  else
13622 19 jeremybenn
    as_ln_s='cp -p'
13623 82 jeremybenn
  fi
13624 19 jeremybenn
else
13625
  as_ln_s='cp -p'
13626
fi
13627
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13628
rmdir conf$$.dir 2>/dev/null
13629
 
13630 96 jeremybenn
 
13631
# as_fn_mkdir_p
13632
# -------------
13633
# Create "$as_dir" as a directory, including parents if necessary.
13634
as_fn_mkdir_p ()
13635
{
13636
 
13637
  case $as_dir in #(
13638
  -*) as_dir=./$as_dir;;
13639
  esac
13640
  test -d "$as_dir" || eval $as_mkdir_p || {
13641
    as_dirs=
13642
    while :; do
13643
      case $as_dir in #(
13644
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13645
      *) as_qdir=$as_dir;;
13646
      esac
13647
      as_dirs="'$as_qdir' $as_dirs"
13648
      as_dir=`$as_dirname -- "$as_dir" ||
13649
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13650
         X"$as_dir" : 'X\(//\)[^/]' \| \
13651
         X"$as_dir" : 'X\(//\)$' \| \
13652
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13653
$as_echo X"$as_dir" |
13654
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13655
            s//\1/
13656
            q
13657
          }
13658
          /^X\(\/\/\)[^/].*/{
13659
            s//\1/
13660
            q
13661
          }
13662
          /^X\(\/\/\)$/{
13663
            s//\1/
13664
            q
13665
          }
13666
          /^X\(\/\).*/{
13667
            s//\1/
13668
            q
13669
          }
13670
          s/.*/./; q'`
13671
      test -d "$as_dir" && break
13672
    done
13673
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13674
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13675
 
13676
 
13677
} # as_fn_mkdir_p
13678 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13679 96 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13680 19 jeremybenn
else
13681
  test -d ./-p && rmdir ./-p
13682
  as_mkdir_p=false
13683
fi
13684
 
13685
if test -x / >/dev/null 2>&1; then
13686
  as_test_x='test -x'
13687
else
13688
  if ls -dL / >/dev/null 2>&1; then
13689
    as_ls_L_option=L
13690
  else
13691
    as_ls_L_option=
13692
  fi
13693
  as_test_x='
13694
    eval sh -c '\''
13695
      if test -d "$1"; then
13696 82 jeremybenn
        test -d "$1/.";
13697 19 jeremybenn
      else
13698 96 jeremybenn
        case $1 in #(
13699 82 jeremybenn
        -*)set "./$1";;
13700 19 jeremybenn
        esac;
13701 96 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13702 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13703
    '\'' sh
13704
  '
13705
fi
13706
as_executable_p=$as_test_x
13707
 
13708
# Sed expression to map a string onto a valid CPP name.
13709
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13710
 
13711
# Sed expression to map a string onto a valid variable name.
13712
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13713
 
13714
 
13715
exec 6>&1
13716 96 jeremybenn
## ----------------------------------- ##
13717
## Main body of $CONFIG_STATUS script. ##
13718
## ----------------------------------- ##
13719
_ASEOF
13720
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13721 19 jeremybenn
 
13722 96 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723
# Save the log message, to keep $0 and so on meaningful, and to
13724 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13725
# values after options handling.
13726
ac_log="
13727 96 jeremybenn
This file was extended by or1ksim $as_me 2010-05-02, which was
13728
generated by GNU Autoconf 2.65.  Invocation command line was
13729 19 jeremybenn
 
13730
  CONFIG_FILES    = $CONFIG_FILES
13731
  CONFIG_HEADERS  = $CONFIG_HEADERS
13732
  CONFIG_LINKS    = $CONFIG_LINKS
13733
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13734
  $ $0 $@
13735
 
13736
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13737
"
13738
 
13739
_ACEOF
13740
 
13741 82 jeremybenn
case $ac_config_files in *"
13742
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13743
esac
13744
 
13745
case $ac_config_headers in *"
13746
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13747
esac
13748
 
13749
 
13750
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13751 19 jeremybenn
# Files that config.status was made for.
13752
config_files="$ac_config_files"
13753
config_headers="$ac_config_headers"
13754
config_commands="$ac_config_commands"
13755
 
13756
_ACEOF
13757
 
13758 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13759 19 jeremybenn
ac_cs_usage="\
13760 96 jeremybenn
\`$as_me' instantiates files and other configuration actions
13761
from templates according to the current configuration.  Unless the files
13762
and actions are specified as TAGs, all are instantiated by default.
13763 19 jeremybenn
 
13764 96 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13765 19 jeremybenn
 
13766
  -h, --help       print this help, then exit
13767
  -V, --version    print version number and configuration settings, then exit
13768 96 jeremybenn
      --config     print configuration, then exit
13769 82 jeremybenn
  -q, --quiet, --silent
13770
                   do not print progress messages
13771 19 jeremybenn
  -d, --debug      don't remove temporary files
13772
      --recheck    update $as_me by reconfiguring in the same conditions
13773 82 jeremybenn
      --file=FILE[:TEMPLATE]
13774
                   instantiate the configuration file FILE
13775
      --header=FILE[:TEMPLATE]
13776
                   instantiate the configuration header FILE
13777 19 jeremybenn
 
13778
Configuration files:
13779
$config_files
13780
 
13781
Configuration headers:
13782
$config_headers
13783
 
13784
Configuration commands:
13785
$config_commands
13786
 
13787 96 jeremybenn
Report bugs to ."
13788 19 jeremybenn
 
13789
_ACEOF
13790 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13791 96 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13792 19 jeremybenn
ac_cs_version="\\
13793 96 jeremybenn
or1ksim config.status 2010-05-02
13794
configured by $0, generated by GNU Autoconf 2.65,
13795
  with options \\"\$ac_cs_config\\"
13796 19 jeremybenn
 
13797 96 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13798 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13799
gives unlimited permission to copy, distribute and modify it."
13800
 
13801
ac_pwd='$ac_pwd'
13802
srcdir='$srcdir'
13803
INSTALL='$INSTALL'
13804
MKDIR_P='$MKDIR_P'
13805 82 jeremybenn
AWK='$AWK'
13806
test -n "\$AWK" || AWK=awk
13807 19 jeremybenn
_ACEOF
13808
 
13809 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13810
# The default lists apply if the user does not specify any file.
13811 19 jeremybenn
ac_need_defaults=:
13812
while test $# != 0
13813
do
13814
  case $1 in
13815
  --*=*)
13816
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13817
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13818
    ac_shift=:
13819
    ;;
13820
  *)
13821
    ac_option=$1
13822
    ac_optarg=$2
13823
    ac_shift=shift
13824
    ;;
13825
  esac
13826
 
13827
  case $ac_option in
13828
  # Handling of the options.
13829
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13830
    ac_cs_recheck=: ;;
13831
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13832 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13833 96 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
13834
    $as_echo "$ac_cs_config"; exit ;;
13835 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13836
    debug=: ;;
13837
  --file | --fil | --fi | --f )
13838
    $ac_shift
13839 82 jeremybenn
    case $ac_optarg in
13840
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13841
    esac
13842 96 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13843 19 jeremybenn
    ac_need_defaults=false;;
13844
  --header | --heade | --head | --hea )
13845
    $ac_shift
13846 82 jeremybenn
    case $ac_optarg in
13847
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13848
    esac
13849 96 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13850 19 jeremybenn
    ac_need_defaults=false;;
13851
  --he | --h)
13852
    # Conflict between --help and --header
13853 96 jeremybenn
    as_fn_error "ambiguous option: \`$1'
13854
Try \`$0 --help' for more information.";;
13855 19 jeremybenn
  --help | --hel | -h )
13856 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13857 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13858
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13859
    ac_cs_silent=: ;;
13860
 
13861
  # This is an error.
13862 96 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13863
Try \`$0 --help' for more information." ;;
13864 19 jeremybenn
 
13865 96 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13866 19 jeremybenn
     ac_need_defaults=false ;;
13867
 
13868
  esac
13869
  shift
13870
done
13871
 
13872
ac_configure_extra_args=
13873
 
13874
if $ac_cs_silent; then
13875
  exec 6>/dev/null
13876
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13877
fi
13878
 
13879
_ACEOF
13880 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881 19 jeremybenn
if \$ac_cs_recheck; then
13882 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13883
  shift
13884
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13885
  CONFIG_SHELL='$SHELL'
13886 19 jeremybenn
  export CONFIG_SHELL
13887 82 jeremybenn
  exec "\$@"
13888 19 jeremybenn
fi
13889
 
13890
_ACEOF
13891 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13892 19 jeremybenn
exec 5>>config.log
13893
{
13894
  echo
13895
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13896
## Running $as_me. ##
13897
_ASBOX
13898 82 jeremybenn
  $as_echo "$ac_log"
13899 19 jeremybenn
} >&5
13900
 
13901
_ACEOF
13902 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13903 19 jeremybenn
#
13904
# INIT-COMMANDS
13905
#
13906 82 jeremybenn
 
13907
 
13908
# The HP-UX ksh and POSIX shell print the target directory to stdout
13909
# if CDPATH is set.
13910
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13911
 
13912
sed_quote_subst='$sed_quote_subst'
13913
double_quote_subst='$double_quote_subst'
13914
delay_variable_subst='$delay_variable_subst'
13915
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13916
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13917
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13918
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13919
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13920
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13921
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13922
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13923
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13924
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13925
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13926
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13927
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13928
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13929
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13930
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13931
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13932
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13933
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13934
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13935
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13936
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13937
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13938
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13939
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13940
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13941
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13942
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13943
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13944
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13945
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13946
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13947
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13948
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13949
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13950
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13951
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13952
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13953
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13954
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13955
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13956
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13957
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13958
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13959
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"`'
13960
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"`'
13961
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13962
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13963
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13964
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13965
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13966
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13967
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13968
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13969
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13970
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13971
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13972
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13973
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13974
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13975
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13976
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13977
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13978
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13979
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13980
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13981
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13982
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13983
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13984
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13985
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13986
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13988
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13989
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13990
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13991
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13992
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13993
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13994
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13995
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13996
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13997
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13998
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13999
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14000
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14001
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14002
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14003
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14004
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14005
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14006
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14007
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14008
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14009
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14010
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14011
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14012
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14013
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14014
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14015
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14016
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14017
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14018
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14019
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14020
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14021
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14022
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14023
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14024
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14025
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14026
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14027
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14028
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14029
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14030
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14031
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14032
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14033
 
14034
LTCC='$LTCC'
14035
LTCFLAGS='$LTCFLAGS'
14036
compiler='$compiler_DEFAULT'
14037
 
14038
# Quote evaled strings.
14039
for var in SED \
14040
GREP \
14041
EGREP \
14042
FGREP \
14043
LD \
14044
NM \
14045
LN_S \
14046
lt_SP2NL \
14047
lt_NL2SP \
14048
reload_flag \
14049
OBJDUMP \
14050
deplibs_check_method \
14051
file_magic_cmd \
14052
AR \
14053
AR_FLAGS \
14054
STRIP \
14055
RANLIB \
14056
CC \
14057
CFLAGS \
14058
compiler \
14059
lt_cv_sys_global_symbol_pipe \
14060
lt_cv_sys_global_symbol_to_cdecl \
14061
lt_cv_sys_global_symbol_to_c_name_address \
14062
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14063
SHELL \
14064
ECHO \
14065
lt_prog_compiler_no_builtin_flag \
14066
lt_prog_compiler_wl \
14067
lt_prog_compiler_pic \
14068
lt_prog_compiler_static \
14069
lt_cv_prog_compiler_c_o \
14070
need_locks \
14071
DSYMUTIL \
14072
NMEDIT \
14073
LIPO \
14074
OTOOL \
14075
OTOOL64 \
14076
shrext_cmds \
14077
export_dynamic_flag_spec \
14078
whole_archive_flag_spec \
14079
compiler_needs_object \
14080
with_gnu_ld \
14081
allow_undefined_flag \
14082
no_undefined_flag \
14083
hardcode_libdir_flag_spec \
14084
hardcode_libdir_flag_spec_ld \
14085
hardcode_libdir_separator \
14086
fix_srcfile_path \
14087
exclude_expsyms \
14088
include_expsyms \
14089
file_list_spec \
14090
variables_saved_for_relink \
14091
libname_spec \
14092
library_names_spec \
14093
soname_spec \
14094
finish_eval \
14095
old_striplib \
14096
striplib; do
14097
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14098
    *[\\\\\\\`\\"\\\$]*)
14099
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14100
      ;;
14101
    *)
14102
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14103
      ;;
14104
    esac
14105
done
14106
 
14107
# Double-quote double-evaled strings.
14108
for var in reload_cmds \
14109
old_postinstall_cmds \
14110
old_postuninstall_cmds \
14111
old_archive_cmds \
14112
extract_expsyms_cmds \
14113
old_archive_from_new_cmds \
14114
old_archive_from_expsyms_cmds \
14115
archive_cmds \
14116
archive_expsym_cmds \
14117
module_cmds \
14118
module_expsym_cmds \
14119
export_symbols_cmds \
14120
prelink_cmds \
14121
postinstall_cmds \
14122
postuninstall_cmds \
14123
finish_cmds \
14124
sys_lib_search_path_spec \
14125
sys_lib_dlsearch_path_spec; do
14126
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14127
    *[\\\\\\\`\\"\\\$]*)
14128
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14129
      ;;
14130
    *)
14131
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14132
      ;;
14133
    esac
14134
done
14135
 
14136
# Fix-up fallback echo if it was mangled by the above quoting rules.
14137
case \$lt_ECHO in
14138
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14139
  ;;
14140
esac
14141
 
14142
ac_aux_dir='$ac_aux_dir'
14143
xsi_shell='$xsi_shell'
14144
lt_shell_append='$lt_shell_append'
14145
 
14146
# See if we are running on zsh, and set the options which allow our
14147
# commands through without removal of \ escapes INIT.
14148
if test -n "\${ZSH_VERSION+set}" ; then
14149
   setopt NO_GLOB_SUBST
14150
fi
14151
 
14152
 
14153
    PACKAGE='$PACKAGE'
14154
    VERSION='$VERSION'
14155
    TIMESTAMP='$TIMESTAMP'
14156
    RM='$RM'
14157
    ofile='$ofile'
14158
 
14159
 
14160
 
14161 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14162
 
14163
_ACEOF
14164
 
14165 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14166 19 jeremybenn
 
14167
# Handling of arguments.
14168
for ac_config_target in $ac_config_targets
14169
do
14170
  case $ac_config_target in
14171 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14172 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14173
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14174
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14175
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14176
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14177
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14178
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14179
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14180
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14181
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14182
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14183
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14184
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14185
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14186
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14187
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14188
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14189 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14190
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14191
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14192
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14193
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14194
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14195
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14196
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14197
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14198 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14199
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14200 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14201 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14202
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14203
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14204
 
14205 96 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14206 19 jeremybenn
  esac
14207
done
14208
 
14209
 
14210
# If the user did not use the arguments to specify the items to instantiate,
14211
# then the envvar interface is used.  Set only those that are not.
14212
# We use the long form for the default assignment because of an extremely
14213
# bizarre bug on SunOS 4.1.3.
14214
if $ac_need_defaults; then
14215
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14216
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14217
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14218
fi
14219
 
14220
# Have a temporary directory for convenience.  Make it in the build tree
14221
# simply because there is no reason against having it here, and in addition,
14222
# creating and moving files from /tmp can sometimes cause problems.
14223
# Hook for its removal unless debugging.
14224
# Note that there is a small window in which the directory will not be cleaned:
14225
# after its creation but before its name has been assigned to `$tmp'.
14226
$debug ||
14227
{
14228
  tmp=
14229
  trap 'exit_status=$?
14230
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14231
' 0
14232 96 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14233 19 jeremybenn
}
14234
# Create a (secure) tmp directory for tmp files.
14235
 
14236
{
14237
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14238
  test -n "$tmp" && test -d "$tmp"
14239
}  ||
14240
{
14241
  tmp=./conf$$-$RANDOM
14242
  (umask 077 && mkdir "$tmp")
14243 96 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14244 19 jeremybenn
 
14245 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14246
# No need to generate them if there are no CONFIG_FILES.
14247
# This happens for instance with `./config.status config.h'.
14248 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14249
 
14250 82 jeremybenn
 
14251 96 jeremybenn
ac_cr=`echo X | tr X '\015'`
14252
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14253
# But we know of no other shell where ac_cr would be empty at this
14254
# point, so we can use a bashism as a fallback.
14255
if test "x$ac_cr" = x; then
14256
  eval ac_cr=\$\'\\r\'
14257
fi
14258 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14259
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14260 96 jeremybenn
  ac_cs_awk_cr='\r'
14261 82 jeremybenn
else
14262
  ac_cs_awk_cr=$ac_cr
14263
fi
14264
 
14265
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14266 19 jeremybenn
_ACEOF
14267
 
14268
 
14269 82 jeremybenn
{
14270
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14271
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14272
  echo "_ACEOF"
14273
} >conf$$subs.sh ||
14274 96 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14275 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14276 19 jeremybenn
ac_delim='%!_!# '
14277
for ac_last_try in false false false false false :; do
14278 82 jeremybenn
  . ./conf$$subs.sh ||
14279 96 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14280 19 jeremybenn
 
14281 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14282
  if test $ac_delim_n = $ac_delim_num; then
14283 19 jeremybenn
    break
14284
  elif $ac_last_try; then
14285 96 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14286 19 jeremybenn
  else
14287
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14288
  fi
14289
done
14290 82 jeremybenn
rm -f conf$$subs.sh
14291 19 jeremybenn
 
14292 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14293
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14294 19 jeremybenn
_ACEOF
14295 82 jeremybenn
sed -n '
14296
h
14297
s/^/S["/; s/!.*/"]=/
14298
p
14299
g
14300
s/^[^!]*!//
14301
:repl
14302
t repl
14303
s/'"$ac_delim"'$//
14304
t delim
14305
:nl
14306
h
14307 96 jeremybenn
s/\(.\{148\}\)..*/\1/
14308 82 jeremybenn
t more1
14309
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14310
p
14311
n
14312
b repl
14313
:more1
14314
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14315
p
14316
g
14317
s/.\{148\}//
14318
t nl
14319
:delim
14320
h
14321 96 jeremybenn
s/\(.\{148\}\)..*/\1/
14322 82 jeremybenn
t more2
14323
s/["\\]/\\&/g; s/^/"/; s/$/"/
14324
p
14325
b
14326
:more2
14327
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14328
p
14329
g
14330
s/.\{148\}//
14331
t delim
14332
' 
14333
/^[^""]/{
14334
  N
14335
  s/\n//
14336
}
14337
' >>$CONFIG_STATUS || ac_write_fail=1
14338
rm -f conf$$subs.awk
14339
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14340
_ACAWK
14341
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14342
  for (key in S) S_is_set[key] = 1
14343
  FS = ""
14344 19 jeremybenn
 
14345 82 jeremybenn
}
14346
{
14347
  line = $ 0
14348
  nfields = split(line, field, "@")
14349
  substed = 0
14350
  len = length(field[1])
14351
  for (i = 2; i < nfields; i++) {
14352
    key = field[i]
14353
    keylen = length(key)
14354
    if (S_is_set[key]) {
14355
      value = S[key]
14356
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14357
      len += length(value) + length(field[++i])
14358
      substed = 1
14359
    } else
14360
      len += 1 + keylen
14361
  }
14362 19 jeremybenn
 
14363 82 jeremybenn
  print line
14364
}
14365
 
14366
_ACAWK
14367 19 jeremybenn
_ACEOF
14368 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14369
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14370
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14371
else
14372
  cat
14373
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14374 96 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14375 19 jeremybenn
_ACEOF
14376
 
14377
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14378
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14379
# trailing colons and then remove the whole line if VPATH becomes empty
14380
# (actually we leave an empty line to preserve line numbers).
14381
if test "x$srcdir" = x.; then
14382
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14383
s/:*\$(srcdir):*/:/
14384
s/:*\${srcdir}:*/:/
14385
s/:*@srcdir@:*/:/
14386
s/^\([^=]*=[     ]*\):*/\1/
14387
s/:*$//
14388
s/^[^=]*=[       ]*$//
14389
}'
14390
fi
14391
 
14392 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14393 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14394
 
14395 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14396
# No need to generate them if there are no CONFIG_HEADERS.
14397
# This happens for instance with `./config.status Makefile'.
14398
if test -n "$CONFIG_HEADERS"; then
14399
cat >"$tmp/defines.awk" <<\_ACAWK ||
14400
BEGIN {
14401
_ACEOF
14402 19 jeremybenn
 
14403 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14404
# here-document in config.status, that substitutes the proper values into
14405
# config.h.in to produce config.h.
14406
 
14407
# Create a delimiter string that does not exist in confdefs.h, to ease
14408
# handling of long lines.
14409
ac_delim='%!_!# '
14410
for ac_last_try in false false :; do
14411
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14412
  if test -z "$ac_t"; then
14413
    break
14414
  elif $ac_last_try; then
14415 96 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14416 82 jeremybenn
  else
14417
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14418
  fi
14419
done
14420
 
14421
# For the awk script, D is an array of macro values keyed by name,
14422
# likewise P contains macro parameters if any.  Preserve backslash
14423
# newline sequences.
14424
 
14425
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14426
sed -n '
14427
s/.\{148\}/&'"$ac_delim"'/g
14428
t rset
14429
:rset
14430
s/^[     ]*#[    ]*define[       ][      ]*/ /
14431
t def
14432
d
14433
:def
14434
s/\\$//
14435
t bsnl
14436
s/["\\]/\\&/g
14437
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14438
D["\1"]=" \3"/p
14439
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14440
d
14441
:bsnl
14442
s/["\\]/\\&/g
14443
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14444
D["\1"]=" \3\\\\\\n"\\/p
14445
t cont
14446
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14447
t cont
14448
d
14449
:cont
14450
n
14451
s/.\{148\}/&'"$ac_delim"'/g
14452
t clear
14453
:clear
14454
s/\\$//
14455
t bsnlc
14456
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14457
d
14458
:bsnlc
14459
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14460
b cont
14461
' 
14462
s/'"$ac_delim"'/"\\\
14463
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14464
 
14465
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14466
  for (key in D) D_is_set[key] = 1
14467
  FS = ""
14468
}
14469
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14470
  line = \$ 0
14471
  split(line, arg, " ")
14472
  if (arg[1] == "#") {
14473
    defundef = arg[2]
14474
    mac1 = arg[3]
14475
  } else {
14476
    defundef = substr(arg[1], 2)
14477
    mac1 = arg[2]
14478
  }
14479
  split(mac1, mac2, "(") #)
14480
  macro = mac2[1]
14481
  prefix = substr(line, 1, index(line, defundef) - 1)
14482
  if (D_is_set[macro]) {
14483
    # Preserve the white space surrounding the "#".
14484
    print prefix "define", macro P[macro] D[macro]
14485
    next
14486
  } else {
14487
    # Replace #undef with comments.  This is necessary, for example,
14488
    # in the case of _POSIX_SOURCE, which is predefined and required
14489
    # on some systems where configure will not decide to define it.
14490
    if (defundef == "undef") {
14491
      print "/*", prefix defundef, macro, "*/"
14492
      next
14493
    }
14494
  }
14495
}
14496
{ print }
14497
_ACAWK
14498
_ACEOF
14499
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14500 96 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14501 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14502
 
14503
 
14504
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14505
shift
14506
for ac_tag
14507 19 jeremybenn
do
14508
  case $ac_tag in
14509
  :[FHLC]) ac_mode=$ac_tag; continue;;
14510
  esac
14511
  case $ac_mode$ac_tag in
14512
  :[FHL]*:*);;
14513 96 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14514 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14515
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14516
  esac
14517
  ac_save_IFS=$IFS
14518
  IFS=:
14519
  set x $ac_tag
14520
  IFS=$ac_save_IFS
14521
  shift
14522
  ac_file=$1
14523
  shift
14524
 
14525
  case $ac_mode in
14526
  :L) ac_source=$1;;
14527
  :[FH])
14528
    ac_file_inputs=
14529
    for ac_f
14530
    do
14531
      case $ac_f in
14532
      -) ac_f="$tmp/stdin";;
14533
      *) # Look for the file first in the build tree, then in the source tree
14534
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14535
         # because $ac_f cannot contain `:'.
14536
         test -f "$ac_f" ||
14537
           case $ac_f in
14538
           [\\/$]*) false;;
14539
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14540
           esac ||
14541 96 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14542 19 jeremybenn
      esac
14543 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14544 96 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14545 19 jeremybenn
    done
14546
 
14547
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14548
    # use $as_me), people would be surprised to read:
14549
    #    /* config.h.  Generated by config.status.  */
14550 82 jeremybenn
    configure_input='Generated from '`
14551
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14552
        `' by configure.'
14553 19 jeremybenn
    if test x"$ac_file" != x-; then
14554
      configure_input="$ac_file.  $configure_input"
14555 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14556 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14557 19 jeremybenn
    fi
14558 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14559
    case $configure_input in #(
14560
    *\&* | *\|* | *\\* )
14561
       ac_sed_conf_input=`$as_echo "$configure_input" |
14562
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14563
    *) ac_sed_conf_input=$configure_input;;
14564
    esac
14565 19 jeremybenn
 
14566
    case $ac_tag in
14567 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14568 96 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14569 19 jeremybenn
    esac
14570
    ;;
14571
  esac
14572
 
14573
  ac_dir=`$as_dirname -- "$ac_file" ||
14574
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14575
         X"$ac_file" : 'X\(//\)[^/]' \| \
14576
         X"$ac_file" : 'X\(//\)$' \| \
14577
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14578 82 jeremybenn
$as_echo X"$ac_file" |
14579 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14580
            s//\1/
14581
            q
14582
          }
14583
          /^X\(\/\/\)[^/].*/{
14584
            s//\1/
14585
            q
14586
          }
14587
          /^X\(\/\/\)$/{
14588
            s//\1/
14589
            q
14590
          }
14591
          /^X\(\/\).*/{
14592
            s//\1/
14593
            q
14594
          }
14595
          s/.*/./; q'`
14596 96 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14597 19 jeremybenn
  ac_builddir=.
14598
 
14599
case "$ac_dir" in
14600
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14601
*)
14602 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14603 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14604 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14605 19 jeremybenn
  case $ac_top_builddir_sub in
14606
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14607
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14608
  esac ;;
14609
esac
14610
ac_abs_top_builddir=$ac_pwd
14611
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14612
# for backward compatibility:
14613
ac_top_builddir=$ac_top_build_prefix
14614
 
14615
case $srcdir in
14616
  .)  # We are building in place.
14617
    ac_srcdir=.
14618
    ac_top_srcdir=$ac_top_builddir_sub
14619
    ac_abs_top_srcdir=$ac_pwd ;;
14620
  [\\/]* | ?:[\\/]* )  # Absolute name.
14621
    ac_srcdir=$srcdir$ac_dir_suffix;
14622
    ac_top_srcdir=$srcdir
14623
    ac_abs_top_srcdir=$srcdir ;;
14624
  *) # Relative name.
14625
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14626
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14627
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14628
esac
14629
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14630
 
14631
 
14632
  case $ac_mode in
14633
  :F)
14634
  #
14635
  # CONFIG_FILE
14636
  #
14637
 
14638
  case $INSTALL in
14639
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14640
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14641
  esac
14642
  ac_MKDIR_P=$MKDIR_P
14643
  case $MKDIR_P in
14644
  [\\/$]* | ?:[\\/]* ) ;;
14645
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14646
  esac
14647
_ACEOF
14648
 
14649 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14650 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14651
# FIXME: This hack should be removed a few years after 2.60.
14652
ac_datarootdir_hack=; ac_datarootdir_seen=
14653 82 jeremybenn
ac_sed_dataroot='
14654
/datarootdir/ {
14655 19 jeremybenn
  p
14656
  q
14657
}
14658
/@datadir@/p
14659
/@docdir@/p
14660
/@infodir@/p
14661
/@localedir@/p
14662 96 jeremybenn
/@mandir@/p'
14663 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14664 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14665
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14666 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14667 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14668 19 jeremybenn
_ACEOF
14669 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14670 19 jeremybenn
  ac_datarootdir_hack='
14671
  s&@datadir@&$datadir&g
14672
  s&@docdir@&$docdir&g
14673
  s&@infodir@&$infodir&g
14674
  s&@localedir@&$localedir&g
14675
  s&@mandir@&$mandir&g
14676 96 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14677 19 jeremybenn
esac
14678
_ACEOF
14679
 
14680
# Neutralize VPATH when `$srcdir' = `.'.
14681
# Shell code in configure.ac might set extrasub.
14682
# FIXME: do we really want to maintain this feature?
14683 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14684
ac_sed_extra="$ac_vpsub
14685 19 jeremybenn
$extrasub
14686
_ACEOF
14687 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14688 19 jeremybenn
:t
14689
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14690 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14691 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14692 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14693 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14694
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14695
s&@top_srcdir@&$ac_top_srcdir&;t t
14696
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14697
s&@builddir@&$ac_builddir&;t t
14698
s&@abs_builddir@&$ac_abs_builddir&;t t
14699
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14700
s&@INSTALL@&$ac_INSTALL&;t t
14701
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14702
$ac_datarootdir_hack
14703 82 jeremybenn
"
14704
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14705 96 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14706 19 jeremybenn
 
14707
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14708
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14709
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14710 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14711 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14712 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14713 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14714
 
14715
  rm -f "$tmp/stdin"
14716
  case $ac_file in
14717 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14718
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14719
  esac \
14720 96 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14721 19 jeremybenn
 ;;
14722
  :H)
14723
  #
14724
  # CONFIG_HEADER
14725
  #
14726
  if test x"$ac_file" != x-; then
14727 82 jeremybenn
    {
14728
      $as_echo "/* $configure_input  */" \
14729
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14730
    } >"$tmp/config.h" \
14731 96 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14732 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14733 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14734 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14735 19 jeremybenn
    else
14736 82 jeremybenn
      rm -f "$ac_file"
14737
      mv "$tmp/config.h" "$ac_file" \
14738 96 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14739 19 jeremybenn
    fi
14740
  else
14741 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14742
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14743 96 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
14744 19 jeremybenn
  fi
14745 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14746
_am_arg="$ac_file"
14747 19 jeremybenn
_am_stamp_count=1
14748
for _am_header in $config_headers :; do
14749
  case $_am_header in
14750
    $_am_arg | $_am_arg:* )
14751
      break ;;
14752
    * )
14753
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14754
  esac
14755
done
14756
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14757
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14758
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14759
         X"$_am_arg" : 'X\(//\)$' \| \
14760
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14761 82 jeremybenn
$as_echo X"$_am_arg" |
14762 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14763
            s//\1/
14764
            q
14765
          }
14766
          /^X\(\/\/\)[^/].*/{
14767
            s//\1/
14768
            q
14769
          }
14770
          /^X\(\/\/\)$/{
14771
            s//\1/
14772
            q
14773
          }
14774
          /^X\(\/\).*/{
14775
            s//\1/
14776
            q
14777
          }
14778
          s/.*/./; q'`/stamp-h$_am_stamp_count
14779
 ;;
14780
 
14781 96 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14782 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14783 19 jeremybenn
 ;;
14784
  esac
14785
 
14786
 
14787
  case $ac_file$ac_mode in
14788 82 jeremybenn
    "libtool":C)
14789
 
14790
    # See if we are running on zsh, and set the options which allow our
14791
    # commands through without removal of \ escapes.
14792
    if test -n "${ZSH_VERSION+set}" ; then
14793
      setopt NO_GLOB_SUBST
14794
    fi
14795
 
14796
    cfgfile="${ofile}T"
14797
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14798
    $RM "$cfgfile"
14799
 
14800
    cat <<_LT_EOF >> "$cfgfile"
14801
#! $SHELL
14802
 
14803
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14804
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14806
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14807
#
14808
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14809
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14810
#   Written by Gordon Matzigkeit, 1996
14811
#
14812
#   This file is part of GNU Libtool.
14813
#
14814
# GNU Libtool is free software; you can redistribute it and/or
14815
# modify it under the terms of the GNU General Public License as
14816
# published by the Free Software Foundation; either version 2 of
14817
# the License, or (at your option) any later version.
14818
#
14819
# As a special exception to the GNU General Public License,
14820
# if you distribute this file as part of a program or library that
14821
# is built using GNU Libtool, you may include this file under the
14822
# same distribution terms that you use for the rest of that program.
14823
#
14824
# GNU Libtool is distributed in the hope that it will be useful,
14825
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14826
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14827
# GNU General Public License for more details.
14828
#
14829
# You should have received a copy of the GNU General Public License
14830
# along with GNU Libtool; see the file COPYING.  If not, a copy
14831
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14832
# obtained by writing to the Free Software Foundation, Inc.,
14833
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14834
 
14835
 
14836
# The names of the tagged configurations supported by this script.
14837
available_tags=""
14838
 
14839
# ### BEGIN LIBTOOL CONFIG
14840
 
14841
# Which release of libtool.m4 was used?
14842
macro_version=$macro_version
14843
macro_revision=$macro_revision
14844
 
14845
# Whether or not to build shared libraries.
14846
build_libtool_libs=$enable_shared
14847
 
14848
# Whether or not to build static libraries.
14849
build_old_libs=$enable_static
14850
 
14851
# What type of objects to build.
14852
pic_mode=$pic_mode
14853
 
14854
# Whether or not to optimize for fast installation.
14855
fast_install=$enable_fast_install
14856
 
14857
# The host system.
14858
host_alias=$host_alias
14859
host=$host
14860
host_os=$host_os
14861
 
14862
# The build system.
14863
build_alias=$build_alias
14864
build=$build
14865
build_os=$build_os
14866
 
14867
# A sed program that does not truncate output.
14868
SED=$lt_SED
14869
 
14870
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14871
Xsed="\$SED -e 1s/^X//"
14872
 
14873
# A grep program that handles long lines.
14874
GREP=$lt_GREP
14875
 
14876
# An ERE matcher.
14877
EGREP=$lt_EGREP
14878
 
14879
# A literal string matcher.
14880
FGREP=$lt_FGREP
14881
 
14882
# A BSD- or MS-compatible name lister.
14883
NM=$lt_NM
14884
 
14885
# Whether we need soft or hard links.
14886
LN_S=$lt_LN_S
14887
 
14888
# What is the maximum length of a command?
14889
max_cmd_len=$max_cmd_len
14890
 
14891
# Object file suffix (normally "o").
14892
objext=$ac_objext
14893
 
14894
# Executable file suffix (normally "").
14895
exeext=$exeext
14896
 
14897
# whether the shell understands "unset".
14898
lt_unset=$lt_unset
14899
 
14900
# turn spaces into newlines.
14901
SP2NL=$lt_lt_SP2NL
14902
 
14903
# turn newlines into spaces.
14904
NL2SP=$lt_lt_NL2SP
14905
 
14906
# How to create reloadable object files.
14907
reload_flag=$lt_reload_flag
14908
reload_cmds=$lt_reload_cmds
14909
 
14910
# An object symbol dumper.
14911
OBJDUMP=$lt_OBJDUMP
14912
 
14913
# Method to check whether dependent libraries are shared objects.
14914
deplibs_check_method=$lt_deplibs_check_method
14915
 
14916
# Command to use when deplibs_check_method == "file_magic".
14917
file_magic_cmd=$lt_file_magic_cmd
14918
 
14919
# The archiver.
14920
AR=$lt_AR
14921
AR_FLAGS=$lt_AR_FLAGS
14922
 
14923
# A symbol stripping program.
14924
STRIP=$lt_STRIP
14925
 
14926
# Commands used to install an old-style archive.
14927
RANLIB=$lt_RANLIB
14928
old_postinstall_cmds=$lt_old_postinstall_cmds
14929
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14930
 
14931
# A C compiler.
14932
LTCC=$lt_CC
14933
 
14934
# LTCC compiler flags.
14935
LTCFLAGS=$lt_CFLAGS
14936
 
14937
# Take the output of nm and produce a listing of raw symbols and C names.
14938
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14939
 
14940
# Transform the output of nm in a proper C declaration.
14941
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14942
 
14943
# Transform the output of nm in a C name address pair.
14944
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14945
 
14946
# Transform the output of nm in a C name address pair when lib prefix is needed.
14947
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14948
 
14949
# The name of the directory that contains temporary libtool files.
14950
objdir=$objdir
14951
 
14952
# Shell to use when invoking shell scripts.
14953
SHELL=$lt_SHELL
14954
 
14955
# An echo program that does not interpret backslashes.
14956
ECHO=$lt_ECHO
14957
 
14958
# Used to examine libraries when file_magic_cmd begins with "file".
14959
MAGIC_CMD=$MAGIC_CMD
14960
 
14961
# Must we lock files when doing compilation?
14962
need_locks=$lt_need_locks
14963
 
14964
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14965
DSYMUTIL=$lt_DSYMUTIL
14966
 
14967
# Tool to change global to local symbols on Mac OS X.
14968
NMEDIT=$lt_NMEDIT
14969
 
14970
# Tool to manipulate fat objects and archives on Mac OS X.
14971
LIPO=$lt_LIPO
14972
 
14973
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14974
OTOOL=$lt_OTOOL
14975
 
14976
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14977
OTOOL64=$lt_OTOOL64
14978
 
14979
# Old archive suffix (normally "a").
14980
libext=$libext
14981
 
14982
# Shared library suffix (normally ".so").
14983
shrext_cmds=$lt_shrext_cmds
14984
 
14985
# The commands to extract the exported symbol list from a shared archive.
14986
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14987
 
14988
# Variables whose values should be saved in libtool wrapper scripts and
14989
# restored at link time.
14990
variables_saved_for_relink=$lt_variables_saved_for_relink
14991
 
14992
# Do we need the "lib" prefix for modules?
14993
need_lib_prefix=$need_lib_prefix
14994
 
14995
# Do we need a version for libraries?
14996
need_version=$need_version
14997
 
14998
# Library versioning type.
14999
version_type=$version_type
15000
 
15001
# Shared library runtime path variable.
15002
runpath_var=$runpath_var
15003
 
15004
# Shared library path variable.
15005
shlibpath_var=$shlibpath_var
15006
 
15007
# Is shlibpath searched before the hard-coded library search path?
15008
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15009
 
15010
# Format of library name prefix.
15011
libname_spec=$lt_libname_spec
15012
 
15013
# List of archive names.  First name is the real one, the rest are links.
15014
# The last name is the one that the linker finds with -lNAME
15015
library_names_spec=$lt_library_names_spec
15016
 
15017
# The coded name of the library, if different from the real name.
15018
soname_spec=$lt_soname_spec
15019
 
15020
# Command to use after installation of a shared archive.
15021
postinstall_cmds=$lt_postinstall_cmds
15022
 
15023
# Command to use after uninstallation of a shared archive.
15024
postuninstall_cmds=$lt_postuninstall_cmds
15025
 
15026
# Commands used to finish a libtool library installation in a directory.
15027
finish_cmds=$lt_finish_cmds
15028
 
15029
# As "finish_cmds", except a single script fragment to be evaled but
15030
# not shown.
15031
finish_eval=$lt_finish_eval
15032
 
15033
# Whether we should hardcode library paths into libraries.
15034
hardcode_into_libs=$hardcode_into_libs
15035
 
15036
# Compile-time system search path for libraries.
15037
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038
 
15039
# Run-time system search path for libraries.
15040
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041
 
15042
# Whether dlopen is supported.
15043
dlopen_support=$enable_dlopen
15044
 
15045
# Whether dlopen of programs is supported.
15046
dlopen_self=$enable_dlopen_self
15047
 
15048
# Whether dlopen of statically linked programs is supported.
15049
dlopen_self_static=$enable_dlopen_self_static
15050
 
15051
# Commands to strip libraries.
15052
old_striplib=$lt_old_striplib
15053
striplib=$lt_striplib
15054
 
15055
 
15056
# The linker used to build libraries.
15057
LD=$lt_LD
15058
 
15059
# Commands used to build an old-style archive.
15060
old_archive_cmds=$lt_old_archive_cmds
15061
 
15062
# A language specific compiler.
15063
CC=$lt_compiler
15064
 
15065
# Is the compiler the GNU compiler?
15066
with_gcc=$GCC
15067
 
15068
# Compiler flag to turn off builtin functions.
15069
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15070
 
15071
# How to pass a linker flag through the compiler.
15072
wl=$lt_lt_prog_compiler_wl
15073
 
15074
# Additional compiler flags for building library objects.
15075
pic_flag=$lt_lt_prog_compiler_pic
15076
 
15077
# Compiler flag to prevent dynamic linking.
15078
link_static_flag=$lt_lt_prog_compiler_static
15079
 
15080
# Does compiler simultaneously support -c and -o options?
15081
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15082
 
15083
# Whether or not to add -lc for building shared libraries.
15084
build_libtool_need_lc=$archive_cmds_need_lc
15085
 
15086
# Whether or not to disallow shared libs when runtime libs are static.
15087
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15088
 
15089
# Compiler flag to allow reflexive dlopens.
15090
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15091
 
15092
# Compiler flag to generate shared objects directly from archives.
15093
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15094
 
15095
# Whether the compiler copes with passing no objects directly.
15096
compiler_needs_object=$lt_compiler_needs_object
15097
 
15098
# Create an old-style archive from a shared archive.
15099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15100
 
15101
# Create a temporary old-style archive to link instead of a shared archive.
15102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15103
 
15104
# Commands used to build a shared archive.
15105
archive_cmds=$lt_archive_cmds
15106
archive_expsym_cmds=$lt_archive_expsym_cmds
15107
 
15108
# Commands used to build a loadable module if different from building
15109
# a shared archive.
15110
module_cmds=$lt_module_cmds
15111
module_expsym_cmds=$lt_module_expsym_cmds
15112
 
15113
# Whether we are building with GNU ld or not.
15114
with_gnu_ld=$lt_with_gnu_ld
15115
 
15116
# Flag that allows shared libraries with undefined symbols to be built.
15117
allow_undefined_flag=$lt_allow_undefined_flag
15118
 
15119
# Flag that enforces no undefined symbols.
15120
no_undefined_flag=$lt_no_undefined_flag
15121
 
15122
# Flag to hardcode \$libdir into a binary during linking.
15123
# This must work even if \$libdir does not exist
15124
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15125
 
15126
# If ld is used when linking, flag to hardcode \$libdir into a binary
15127
# during linking.  This must work even if \$libdir does not exist.
15128
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15129
 
15130
# Whether we need a single "-rpath" flag with a separated argument.
15131
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15132
 
15133
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15134
# DIR into the resulting binary.
15135
hardcode_direct=$hardcode_direct
15136
 
15137
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15138
# DIR into the resulting binary and the resulting library dependency is
15139
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15140
# library is relocated.
15141
hardcode_direct_absolute=$hardcode_direct_absolute
15142
 
15143
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15144
# into the resulting binary.
15145
hardcode_minus_L=$hardcode_minus_L
15146
 
15147
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15148
# into the resulting binary.
15149
hardcode_shlibpath_var=$hardcode_shlibpath_var
15150
 
15151
# Set to "yes" if building a shared library automatically hardcodes DIR
15152
# into the library and all subsequent libraries and executables linked
15153
# against it.
15154
hardcode_automatic=$hardcode_automatic
15155
 
15156
# Set to yes if linker adds runtime paths of dependent libraries
15157
# to runtime path list.
15158
inherit_rpath=$inherit_rpath
15159
 
15160
# Whether libtool must link a program against all its dependency libraries.
15161
link_all_deplibs=$link_all_deplibs
15162
 
15163
# Fix the shell variable \$srcfile for the compiler.
15164
fix_srcfile_path=$lt_fix_srcfile_path
15165
 
15166
# Set to "yes" if exported symbols are required.
15167
always_export_symbols=$always_export_symbols
15168
 
15169
# The commands to list exported symbols.
15170
export_symbols_cmds=$lt_export_symbols_cmds
15171
 
15172
# Symbols that should not be listed in the preloaded symbols.
15173
exclude_expsyms=$lt_exclude_expsyms
15174
 
15175
# Symbols that must always be exported.
15176
include_expsyms=$lt_include_expsyms
15177
 
15178
# Commands necessary for linking programs (against libraries) with templates.
15179
prelink_cmds=$lt_prelink_cmds
15180
 
15181
# Specify filename containing input files.
15182
file_list_spec=$lt_file_list_spec
15183
 
15184
# How to hardcode a shared library path into an executable.
15185
hardcode_action=$hardcode_action
15186
 
15187
# ### END LIBTOOL CONFIG
15188
 
15189
_LT_EOF
15190
 
15191
  case $host_os in
15192
  aix3*)
15193
    cat <<\_LT_EOF >> "$cfgfile"
15194
# AIX sometimes has problems with the GCC collect2 program.  For some
15195
# reason, if we set the COLLECT_NAMES environment variable, the problems
15196
# vanish in a puff of smoke.
15197
if test "X${COLLECT_NAMES+set}" != Xset; then
15198
  COLLECT_NAMES=
15199
  export COLLECT_NAMES
15200
fi
15201
_LT_EOF
15202
    ;;
15203
  esac
15204
 
15205
 
15206
ltmain="$ac_aux_dir/ltmain.sh"
15207
 
15208
 
15209
  # We use sed instead of cat because bash on DJGPP gets confused if
15210
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15211
  # text mode, it properly converts lines to CR/LF.  This bash problem
15212
  # is reportedly fixed, but why not run on old versions too?
15213
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15214
    || (rm -f "$cfgfile"; exit 1)
15215
 
15216
  case $xsi_shell in
15217
  yes)
15218
    cat << \_LT_EOF >> "$cfgfile"
15219
 
15220
# func_dirname file append nondir_replacement
15221
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15222
# otherwise set result to NONDIR_REPLACEMENT.
15223
func_dirname ()
15224
{
15225
  case ${1} in
15226
    */*) func_dirname_result="${1%/*}${2}" ;;
15227
    *  ) func_dirname_result="${3}" ;;
15228
  esac
15229
}
15230
 
15231
# func_basename file
15232
func_basename ()
15233
{
15234
  func_basename_result="${1##*/}"
15235
}
15236
 
15237
# func_dirname_and_basename file append nondir_replacement
15238
# perform func_basename and func_dirname in a single function
15239
# call:
15240
#   dirname:  Compute the dirname of FILE.  If nonempty,
15241
#             add APPEND to the result, otherwise set result
15242
#             to NONDIR_REPLACEMENT.
15243
#             value returned in "$func_dirname_result"
15244
#   basename: Compute filename of FILE.
15245
#             value retuned in "$func_basename_result"
15246
# Implementation must be kept synchronized with func_dirname
15247
# and func_basename. For efficiency, we do not delegate to
15248
# those functions but instead duplicate the functionality here.
15249
func_dirname_and_basename ()
15250
{
15251
  case ${1} in
15252
    */*) func_dirname_result="${1%/*}${2}" ;;
15253
    *  ) func_dirname_result="${3}" ;;
15254
  esac
15255
  func_basename_result="${1##*/}"
15256
}
15257
 
15258
# func_stripname prefix suffix name
15259
# strip PREFIX and SUFFIX off of NAME.
15260
# PREFIX and SUFFIX must not contain globbing or regex special
15261
# characters, hashes, percent signs, but SUFFIX may contain a leading
15262
# dot (in which case that matches only a dot).
15263
func_stripname ()
15264
{
15265
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15266
  # positional parameters, so assign one to ordinary parameter first.
15267
  func_stripname_result=${3}
15268
  func_stripname_result=${func_stripname_result#"${1}"}
15269
  func_stripname_result=${func_stripname_result%"${2}"}
15270
}
15271
 
15272
# func_opt_split
15273
func_opt_split ()
15274
{
15275
  func_opt_split_opt=${1%%=*}
15276
  func_opt_split_arg=${1#*=}
15277
}
15278
 
15279
# func_lo2o object
15280
func_lo2o ()
15281
{
15282
  case ${1} in
15283
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15284
    *)    func_lo2o_result=${1} ;;
15285
  esac
15286
}
15287
 
15288
# func_xform libobj-or-source
15289
func_xform ()
15290
{
15291
  func_xform_result=${1%.*}.lo
15292
}
15293
 
15294
# func_arith arithmetic-term...
15295
func_arith ()
15296
{
15297
  func_arith_result=$(( $* ))
15298
}
15299
 
15300
# func_len string
15301
# STRING may not start with a hyphen.
15302
func_len ()
15303
{
15304
  func_len_result=${#1}
15305
}
15306
 
15307
_LT_EOF
15308
    ;;
15309
  *) # Bourne compatible functions.
15310
    cat << \_LT_EOF >> "$cfgfile"
15311
 
15312
# func_dirname file append nondir_replacement
15313
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15314
# otherwise set result to NONDIR_REPLACEMENT.
15315
func_dirname ()
15316
{
15317
  # Extract subdirectory from the argument.
15318
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15319
  if test "X$func_dirname_result" = "X${1}"; then
15320
    func_dirname_result="${3}"
15321
  else
15322
    func_dirname_result="$func_dirname_result${2}"
15323
  fi
15324
}
15325
 
15326
# func_basename file
15327
func_basename ()
15328
{
15329
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15330
}
15331
 
15332
 
15333
# func_stripname prefix suffix name
15334
# strip PREFIX and SUFFIX off of NAME.
15335
# PREFIX and SUFFIX must not contain globbing or regex special
15336
# characters, hashes, percent signs, but SUFFIX may contain a leading
15337
# dot (in which case that matches only a dot).
15338
# func_strip_suffix prefix name
15339
func_stripname ()
15340
{
15341
  case ${2} in
15342
    .*) func_stripname_result=`$ECHO "X${3}" \
15343
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15344
    *)  func_stripname_result=`$ECHO "X${3}" \
15345
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15346
  esac
15347
}
15348
 
15349
# sed scripts:
15350
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15351
my_sed_long_arg='1s/^-[^=]*=//'
15352
 
15353
# func_opt_split
15354
func_opt_split ()
15355
{
15356
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15357
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15358
}
15359
 
15360
# func_lo2o object
15361
func_lo2o ()
15362
{
15363
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15364
}
15365
 
15366
# func_xform libobj-or-source
15367
func_xform ()
15368
{
15369
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15370
}
15371
 
15372
# func_arith arithmetic-term...
15373
func_arith ()
15374
{
15375
  func_arith_result=`expr "$@"`
15376
}
15377
 
15378
# func_len string
15379
# STRING may not start with a hyphen.
15380
func_len ()
15381
{
15382
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15383
}
15384
 
15385
_LT_EOF
15386
esac
15387
 
15388
case $lt_shell_append in
15389
  yes)
15390
    cat << \_LT_EOF >> "$cfgfile"
15391
 
15392
# func_append var value
15393
# Append VALUE to the end of shell variable VAR.
15394
func_append ()
15395
{
15396
  eval "$1+=\$2"
15397
}
15398
_LT_EOF
15399
    ;;
15400
  *)
15401
    cat << \_LT_EOF >> "$cfgfile"
15402
 
15403
# func_append var value
15404
# Append VALUE to the end of shell variable VAR.
15405
func_append ()
15406
{
15407
  eval "$1=\$$1\$2"
15408
}
15409
 
15410
_LT_EOF
15411
    ;;
15412
  esac
15413
 
15414
 
15415
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15416
    || (rm -f "$cfgfile"; exit 1)
15417
 
15418
  mv -f "$cfgfile" "$ofile" ||
15419
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15420
  chmod +x "$ofile"
15421
 
15422
 ;;
15423
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15424
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15425
  # are listed without --file.  Let's play safe and only enable the eval
15426
  # if we detect the quoting.
15427
  case $CONFIG_FILES in
15428
  *\'*) eval set x "$CONFIG_FILES" ;;
15429
  *)   set x $CONFIG_FILES ;;
15430
  esac
15431
  shift
15432
  for mf
15433
  do
15434
    # Strip MF so we end up with the name of the file.
15435
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15436
    # Check whether this is an Automake generated Makefile or not.
15437
    # We used to match only the files named `Makefile.in', but
15438
    # some people rename them; so instead we look at the file content.
15439
    # Grep'ing the first line is not enough: some people post-process
15440
    # each Makefile.in and add a new line on top of each file to say so.
15441
    # Grep'ing the whole file is not good either: AIX grep has a line
15442
    # limit of 2048, but all sed's we know have understand at least 4000.
15443
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15444
      dirpart=`$as_dirname -- "$mf" ||
15445 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446
         X"$mf" : 'X\(//\)[^/]' \| \
15447
         X"$mf" : 'X\(//\)$' \| \
15448
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15449 82 jeremybenn
$as_echo X"$mf" |
15450 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15451
            s//\1/
15452
            q
15453
          }
15454
          /^X\(\/\/\)[^/].*/{
15455
            s//\1/
15456
            q
15457
          }
15458
          /^X\(\/\/\)$/{
15459
            s//\1/
15460
            q
15461
          }
15462
          /^X\(\/\).*/{
15463
            s//\1/
15464
            q
15465
          }
15466
          s/.*/./; q'`
15467 82 jeremybenn
    else
15468
      continue
15469
    fi
15470
    # Extract the definition of DEPDIR, am__include, and am__quote
15471
    # from the Makefile without running `make'.
15472
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15473
    test -z "$DEPDIR" && continue
15474
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15475
    test -z "am__include" && continue
15476
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15477
    # When using ansi2knr, U may be empty or an underscore; expand it
15478
    U=`sed -n 's/^U = //p' < "$mf"`
15479
    # Find all dependency output files, they are included files with
15480
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15481
    # simplest approach to changing $(DEPDIR) to its actual value in the
15482
    # expansion.
15483
    for file in `sed -n "
15484
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15485
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15486
      # Make sure the directory exists.
15487
      test -f "$dirpart/$file" && continue
15488
      fdir=`$as_dirname -- "$file" ||
15489 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490
         X"$file" : 'X\(//\)[^/]' \| \
15491
         X"$file" : 'X\(//\)$' \| \
15492
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15493 82 jeremybenn
$as_echo X"$file" |
15494 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15495
            s//\1/
15496
            q
15497
          }
15498
          /^X\(\/\/\)[^/].*/{
15499
            s//\1/
15500
            q
15501
          }
15502
          /^X\(\/\/\)$/{
15503
            s//\1/
15504
            q
15505
          }
15506
          /^X\(\/\).*/{
15507
            s//\1/
15508
            q
15509
          }
15510
          s/.*/./; q'`
15511 96 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15512 82 jeremybenn
      # echo "creating $dirpart/$file"
15513
      echo '# dummy' > "$dirpart/$file"
15514
    done
15515 19 jeremybenn
  done
15516 82 jeremybenn
}
15517 19 jeremybenn
 ;;
15518
 
15519
  esac
15520
done # for ac_tag
15521
 
15522
 
15523 96 jeremybenn
as_fn_exit 0
15524 19 jeremybenn
_ACEOF
15525
ac_clean_files=$ac_clean_files_save
15526
 
15527 82 jeremybenn
test $ac_write_fail = 0 ||
15528 96 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15529 19 jeremybenn
 
15530 82 jeremybenn
 
15531 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15532
# config.status does its own redirection, appending to config.log.
15533
# Unfortunately, on DOS this fails, as config.log is still kept open
15534
# by configure, so config.status won't be able to write to it; its
15535
# output is simply discarded.  So we exec the FD to /dev/null,
15536
# effectively closing config.log, so it can be properly (re)opened and
15537
# appended to by config.status.  When coming back to configure, we
15538
# need to make the FD available again.
15539
if test "$no_create" != yes; then
15540
  ac_cs_success=:
15541
  ac_config_status_args=
15542
  test "$silent" = yes &&
15543
    ac_config_status_args="$ac_config_status_args --quiet"
15544
  exec 5>/dev/null
15545
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15546
  exec 5>>config.log
15547
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15548
  # would make configure fail if this is the last instruction.
15549 96 jeremybenn
  $ac_cs_success || as_fn_exit $?
15550 19 jeremybenn
fi
15551
 
15552 82 jeremybenn
#
15553
# CONFIG_SUBDIRS section.
15554
#
15555
if test "$no_recursion" != yes; then
15556
 
15557
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15558
  # so they do not pile up.
15559
  ac_sub_configure_args=
15560
  ac_prev=
15561
  eval "set x $ac_configure_args"
15562
  shift
15563
  for ac_arg
15564
  do
15565
    if test -n "$ac_prev"; then
15566
      ac_prev=
15567
      continue
15568
    fi
15569
    case $ac_arg in
15570
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15571
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15572
      ac_prev=cache_file ;;
15573
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15574
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15575
    | --c=*)
15576
      ;;
15577
    --config-cache | -C)
15578
      ;;
15579
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15580
      ac_prev=srcdir ;;
15581
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15582
      ;;
15583
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15584
      ac_prev=prefix ;;
15585
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15586
      ;;
15587
    --disable-option-checking)
15588
      ;;
15589
    *)
15590
      case $ac_arg in
15591
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15592
      esac
15593 96 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15594 82 jeremybenn
    esac
15595
  done
15596
 
15597
  # Always prepend --prefix to ensure using the same prefix
15598
  # in subdir configurations.
15599
  ac_arg="--prefix=$prefix"
15600
  case $ac_arg in
15601
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15602
  esac
15603
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15604
 
15605
  # Pass --silent
15606
  if test "$silent" = yes; then
15607
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15608
  fi
15609
 
15610
  # Always prepend --disable-option-checking to silence warnings, since
15611
  # different subdirs can have different --enable and --with options.
15612
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15613
 
15614
  ac_popdir=`pwd`
15615
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15616
 
15617
    # Do not complain, so a configure script can configure whichever
15618
    # parts of a large source tree are present.
15619
    test -d "$srcdir/$ac_dir" || continue
15620
 
15621
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15622 96 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15623 82 jeremybenn
    $as_echo "$ac_msg" >&6
15624 96 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15625 82 jeremybenn
    ac_builddir=.
15626
 
15627
case "$ac_dir" in
15628
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15629
*)
15630
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15631
  # A ".." for each directory in $ac_dir_suffix.
15632
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15633
  case $ac_top_builddir_sub in
15634
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15635
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15636
  esac ;;
15637
esac
15638
ac_abs_top_builddir=$ac_pwd
15639
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15640
# for backward compatibility:
15641
ac_top_builddir=$ac_top_build_prefix
15642
 
15643
case $srcdir in
15644
  .)  # We are building in place.
15645
    ac_srcdir=.
15646
    ac_top_srcdir=$ac_top_builddir_sub
15647
    ac_abs_top_srcdir=$ac_pwd ;;
15648
  [\\/]* | ?:[\\/]* )  # Absolute name.
15649
    ac_srcdir=$srcdir$ac_dir_suffix;
15650
    ac_top_srcdir=$srcdir
15651
    ac_abs_top_srcdir=$srcdir ;;
15652
  *) # Relative name.
15653
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15654
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15655
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15656
esac
15657
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15658
 
15659
 
15660
    cd "$ac_dir"
15661
 
15662
    # Check for guested configure; otherwise get Cygnus style configure.
15663
    if test -f "$ac_srcdir/configure.gnu"; then
15664
      ac_sub_configure=$ac_srcdir/configure.gnu
15665
    elif test -f "$ac_srcdir/configure"; then
15666
      ac_sub_configure=$ac_srcdir/configure
15667
    elif test -f "$ac_srcdir/configure.in"; then
15668
      # This should be Cygnus configure.
15669
      ac_sub_configure=$ac_aux_dir/configure
15670
    else
15671 96 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15672 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15673
      ac_sub_configure=
15674
    fi
15675
 
15676
    # The recursion is here.
15677
    if test -n "$ac_sub_configure"; then
15678
      # Make the cache file name correct relative to the subdirectory.
15679
      case $cache_file in
15680
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15681
      *) # Relative name.
15682
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15683
      esac
15684
 
15685 96 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
15686 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;}
15687
      # The eval makes quoting arguments work.
15688
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15689
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15690 96 jeremybenn
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15691 82 jeremybenn
    fi
15692
 
15693
    cd "$ac_popdir"
15694
  done
15695
fi
15696
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15697 96 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15698 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15699
fi
15700
 

powered by: WebSVN 2.1.0

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