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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 19 jeremybenn
#! /bin/sh
2 118 jeremybenn
# From configure.ac Id: configure.ac 1035 2010-06-11 18:20:30Z jeremy  using automake version AC_ACVERSION.
3 19 jeremybenn
# Guess values for system-dependent variables and create Makefiles.
4 118 jeremybenn
# Generated by GNU Autoconf 2.65 for or1ksim 2010-06-13.
5 19 jeremybenn
#
6
# Report bugs to .
7
#
8 118 jeremybenn
#
9 19 jeremybenn
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 118 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 118 jeremybenn
## -------------------- ##
37
## M4sh Initialization. ##
38
## -------------------- ##
39 19 jeremybenn
 
40
# Be more Bourne compatible
41
DUALCASE=1; export DUALCASE # for MKS sh
42 118 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 118 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 118 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 118 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 118 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 118 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 118 jeremybenn
  exit 1
136 19 jeremybenn
fi
137
 
138 118 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 118 jeremybenn
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
158 19 jeremybenn
 
159
if test "x$CONFIG_SHELL" = x; then
160 118 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 118 jeremybenn
  case \`(set -o) 2>/dev/null\` in #(
169
  *posix*) :
170
    set -o posix ;; #(
171
  *) :
172
     ;;
173
esac
174 19 jeremybenn
fi
175 118 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 118 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 118 jeremybenn
  exitcode=1; echo positional parameters were not saved.
191 19 jeremybenn
fi
192 118 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 118 jeremybenn
  as_have_required=no
202 19 jeremybenn
fi
203 118 jeremybenn
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
204 19 jeremybenn
 
205
else
206 118 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 118 jeremybenn
  as_found=:
213
  case $as_dir in #(
214 19 jeremybenn
         /*)
215
           for as_base in sh bash ksh sh5; do
216 118 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 118 jeremybenn
  as_found=false
228 19 jeremybenn
done
229 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 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 118 jeremybenn
  as_expr=false
404 19 jeremybenn
fi
405
 
406 118 jeremybenn
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
  as_basename=basename
408 19 jeremybenn
else
409 118 jeremybenn
  as_basename=false
410 19 jeremybenn
fi
411
 
412 118 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
  as_dirname=dirname
414 19 jeremybenn
else
415 118 jeremybenn
  as_dirname=false
416 19 jeremybenn
fi
417
 
418 118 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 118 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 118 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 118 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 118 jeremybenn
case `echo -n x` in #(((((
478 19 jeremybenn
-n*)
479 118 jeremybenn
  case `echo 'xy\c'` in
480 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481 118 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 118 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 118 jeremybenn
        case $1 in #(
537 82 jeremybenn
        -*)set "./$1";;
538 19 jeremybenn
        esac;
539 118 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 118 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 118 jeremybenn
PACKAGE_VERSION='2010-06-13'
726
PACKAGE_STRING='or1ksim 2010-06-13'
727 19 jeremybenn
PACKAGE_BUGREPORT='openrisc@opencores.org'
728 118 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 118 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_arith_flag
925
enable_debug
926
'
927 19 jeremybenn
      ac_precious_vars='build_alias
928
host_alias
929
target_alias
930
CC
931
CFLAGS
932
LDFLAGS
933
LIBS
934
CPPFLAGS
935
CPP
936 82 jeremybenn
CCAS
937
CCASFLAGS'
938 90 jeremybenn
ac_subdirs_all='testsuite/test-code-or1k'
939 19 jeremybenn
 
940
# Initialize some variables set by options.
941
ac_init_help=
942
ac_init_version=false
943 82 jeremybenn
ac_unrecognized_opts=
944
ac_unrecognized_sep=
945 19 jeremybenn
# The variables have the same names as the options, with
946
# dashes changed to underlines.
947
cache_file=/dev/null
948
exec_prefix=NONE
949
no_create=
950
no_recursion=
951
prefix=NONE
952
program_prefix=NONE
953
program_suffix=NONE
954
program_transform_name=s,x,x,
955
silent=
956
site=
957
srcdir=
958
verbose=
959
x_includes=NONE
960
x_libraries=NONE
961
 
962
# Installation directory options.
963
# These are left unexpanded so users can "make install exec_prefix=/foo"
964
# and all the variables that are supposed to be based on exec_prefix
965
# by default will actually change.
966
# Use braces instead of parens because sh, perl, etc. also accept them.
967
# (The list follows the same order as the GNU Coding Standards.)
968
bindir='${exec_prefix}/bin'
969
sbindir='${exec_prefix}/sbin'
970
libexecdir='${exec_prefix}/libexec'
971
datarootdir='${prefix}/share'
972
datadir='${datarootdir}'
973
sysconfdir='${prefix}/etc'
974
sharedstatedir='${prefix}/com'
975
localstatedir='${prefix}/var'
976
includedir='${prefix}/include'
977
oldincludedir='/usr/include'
978
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979
infodir='${datarootdir}/info'
980
htmldir='${docdir}'
981
dvidir='${docdir}'
982
pdfdir='${docdir}'
983
psdir='${docdir}'
984
libdir='${exec_prefix}/lib'
985
localedir='${datarootdir}/locale'
986
mandir='${datarootdir}/man'
987
 
988
ac_prev=
989
ac_dashdash=
990
for ac_option
991
do
992
  # If the previous option needs an argument, assign it.
993
  if test -n "$ac_prev"; then
994
    eval $ac_prev=\$ac_option
995
    ac_prev=
996
    continue
997
  fi
998
 
999
  case $ac_option in
1000
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001
  *)    ac_optarg=yes ;;
1002
  esac
1003
 
1004
  # Accept the important Cygnus configure options, so we can diagnose typos.
1005
 
1006
  case $ac_dashdash$ac_option in
1007
  --)
1008
    ac_dashdash=yes ;;
1009
 
1010
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011
    ac_prev=bindir ;;
1012
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013
    bindir=$ac_optarg ;;
1014
 
1015
  -build | --build | --buil | --bui | --bu)
1016
    ac_prev=build_alias ;;
1017
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018
    build_alias=$ac_optarg ;;
1019
 
1020
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1021
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022
    ac_prev=cache_file ;;
1023
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025
    cache_file=$ac_optarg ;;
1026
 
1027
  --config-cache | -C)
1028
    cache_file=config.cache ;;
1029
 
1030
  -datadir | --datadir | --datadi | --datad)
1031
    ac_prev=datadir ;;
1032
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033
    datadir=$ac_optarg ;;
1034
 
1035
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036
  | --dataroo | --dataro | --datar)
1037
    ac_prev=datarootdir ;;
1038
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040
    datarootdir=$ac_optarg ;;
1041
 
1042
  -disable-* | --disable-*)
1043 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 19 jeremybenn
    # Reject names that are not valid shell variable names.
1045 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 118 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1047 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1048
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049
    case $ac_user_opts in
1050
      *"
1051
"enable_$ac_useropt"
1052
"*) ;;
1053
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054
         ac_unrecognized_sep=', ';;
1055
    esac
1056
    eval enable_$ac_useropt=no ;;
1057 19 jeremybenn
 
1058
  -docdir | --docdir | --docdi | --doc | --do)
1059
    ac_prev=docdir ;;
1060
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061
    docdir=$ac_optarg ;;
1062
 
1063
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064
    ac_prev=dvidir ;;
1065
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066
    dvidir=$ac_optarg ;;
1067
 
1068
  -enable-* | --enable-*)
1069 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 19 jeremybenn
    # Reject names that are not valid shell variable names.
1071 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 118 jeremybenn
      as_fn_error "invalid feature name: $ac_useropt"
1073 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1074
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075
    case $ac_user_opts in
1076
      *"
1077
"enable_$ac_useropt"
1078
"*) ;;
1079
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080
         ac_unrecognized_sep=', ';;
1081
    esac
1082
    eval enable_$ac_useropt=\$ac_optarg ;;
1083 19 jeremybenn
 
1084
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086
  | --exec | --exe | --ex)
1087
    ac_prev=exec_prefix ;;
1088
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090
  | --exec=* | --exe=* | --ex=*)
1091
    exec_prefix=$ac_optarg ;;
1092
 
1093
  -gas | --gas | --ga | --g)
1094
    # Obsolete; use --with-gas.
1095
    with_gas=yes ;;
1096
 
1097
  -help | --help | --hel | --he | -h)
1098
    ac_init_help=long ;;
1099
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100
    ac_init_help=recursive ;;
1101
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102
    ac_init_help=short ;;
1103
 
1104
  -host | --host | --hos | --ho)
1105
    ac_prev=host_alias ;;
1106
  -host=* | --host=* | --hos=* | --ho=*)
1107
    host_alias=$ac_optarg ;;
1108
 
1109
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110
    ac_prev=htmldir ;;
1111
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112
  | --ht=*)
1113
    htmldir=$ac_optarg ;;
1114
 
1115
  -includedir | --includedir | --includedi | --included | --include \
1116
  | --includ | --inclu | --incl | --inc)
1117
    ac_prev=includedir ;;
1118
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1120
    includedir=$ac_optarg ;;
1121
 
1122
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1123
    ac_prev=infodir ;;
1124
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125
    infodir=$ac_optarg ;;
1126
 
1127
  -libdir | --libdir | --libdi | --libd)
1128
    ac_prev=libdir ;;
1129
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130
    libdir=$ac_optarg ;;
1131
 
1132
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133
  | --libexe | --libex | --libe)
1134
    ac_prev=libexecdir ;;
1135
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136
  | --libexe=* | --libex=* | --libe=*)
1137
    libexecdir=$ac_optarg ;;
1138
 
1139
  -localedir | --localedir | --localedi | --localed | --locale)
1140
    ac_prev=localedir ;;
1141
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142
    localedir=$ac_optarg ;;
1143
 
1144
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1145
  | --localstate | --localstat | --localsta | --localst | --locals)
1146
    ac_prev=localstatedir ;;
1147
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149
    localstatedir=$ac_optarg ;;
1150
 
1151
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152
    ac_prev=mandir ;;
1153
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154
    mandir=$ac_optarg ;;
1155
 
1156
  -nfp | --nfp | --nf)
1157
    # Obsolete; use --without-fp.
1158
    with_fp=no ;;
1159
 
1160
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161
  | --no-cr | --no-c | -n)
1162
    no_create=yes ;;
1163
 
1164
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166
    no_recursion=yes ;;
1167
 
1168
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170
  | --oldin | --oldi | --old | --ol | --o)
1171
    ac_prev=oldincludedir ;;
1172
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175
    oldincludedir=$ac_optarg ;;
1176
 
1177
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178
    ac_prev=prefix ;;
1179
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180
    prefix=$ac_optarg ;;
1181
 
1182
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183
  | --program-pre | --program-pr | --program-p)
1184
    ac_prev=program_prefix ;;
1185
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187
    program_prefix=$ac_optarg ;;
1188
 
1189
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190
  | --program-suf | --program-su | --program-s)
1191
    ac_prev=program_suffix ;;
1192
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194
    program_suffix=$ac_optarg ;;
1195
 
1196
  -program-transform-name | --program-transform-name \
1197
  | --program-transform-nam | --program-transform-na \
1198
  | --program-transform-n | --program-transform- \
1199
  | --program-transform | --program-transfor \
1200
  | --program-transfo | --program-transf \
1201
  | --program-trans | --program-tran \
1202
  | --progr-tra | --program-tr | --program-t)
1203
    ac_prev=program_transform_name ;;
1204
  -program-transform-name=* | --program-transform-name=* \
1205
  | --program-transform-nam=* | --program-transform-na=* \
1206
  | --program-transform-n=* | --program-transform-=* \
1207
  | --program-transform=* | --program-transfor=* \
1208
  | --program-transfo=* | --program-transf=* \
1209
  | --program-trans=* | --program-tran=* \
1210
  | --progr-tra=* | --program-tr=* | --program-t=*)
1211
    program_transform_name=$ac_optarg ;;
1212
 
1213
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214
    ac_prev=pdfdir ;;
1215
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216
    pdfdir=$ac_optarg ;;
1217
 
1218
  -psdir | --psdir | --psdi | --psd | --ps)
1219
    ac_prev=psdir ;;
1220
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221
    psdir=$ac_optarg ;;
1222
 
1223
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224
  | -silent | --silent | --silen | --sile | --sil)
1225
    silent=yes ;;
1226
 
1227
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228
    ac_prev=sbindir ;;
1229
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230
  | --sbi=* | --sb=*)
1231
    sbindir=$ac_optarg ;;
1232
 
1233
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235
  | --sharedst | --shareds | --shared | --share | --shar \
1236
  | --sha | --sh)
1237
    ac_prev=sharedstatedir ;;
1238
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241
  | --sha=* | --sh=*)
1242
    sharedstatedir=$ac_optarg ;;
1243
 
1244
  -site | --site | --sit)
1245
    ac_prev=site ;;
1246
  -site=* | --site=* | --sit=*)
1247
    site=$ac_optarg ;;
1248
 
1249
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250
    ac_prev=srcdir ;;
1251
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252
    srcdir=$ac_optarg ;;
1253
 
1254
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255
  | --syscon | --sysco | --sysc | --sys | --sy)
1256
    ac_prev=sysconfdir ;;
1257
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259
    sysconfdir=$ac_optarg ;;
1260
 
1261
  -target | --target | --targe | --targ | --tar | --ta | --t)
1262
    ac_prev=target_alias ;;
1263
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264
    target_alias=$ac_optarg ;;
1265
 
1266
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267
    verbose=yes ;;
1268
 
1269
  -version | --version | --versio | --versi | --vers | -V)
1270
    ac_init_version=: ;;
1271
 
1272
  -with-* | --with-*)
1273 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 19 jeremybenn
    # Reject names that are not valid shell variable names.
1275 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 118 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1277 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1278
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279
    case $ac_user_opts in
1280
      *"
1281
"with_$ac_useropt"
1282
"*) ;;
1283
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284
         ac_unrecognized_sep=', ';;
1285
    esac
1286
    eval with_$ac_useropt=\$ac_optarg ;;
1287 19 jeremybenn
 
1288
  -without-* | --without-*)
1289 82 jeremybenn
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 19 jeremybenn
    # Reject names that are not valid shell variable names.
1291 82 jeremybenn
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 118 jeremybenn
      as_fn_error "invalid package name: $ac_useropt"
1293 82 jeremybenn
    ac_useropt_orig=$ac_useropt
1294
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295
    case $ac_user_opts in
1296
      *"
1297
"with_$ac_useropt"
1298
"*) ;;
1299
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300
         ac_unrecognized_sep=', ';;
1301
    esac
1302
    eval with_$ac_useropt=no ;;
1303 19 jeremybenn
 
1304
  --x)
1305
    # Obsolete; use --with-x.
1306
    with_x=yes ;;
1307
 
1308
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309
  | --x-incl | --x-inc | --x-in | --x-i)
1310
    ac_prev=x_includes ;;
1311
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313
    x_includes=$ac_optarg ;;
1314
 
1315
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317
    ac_prev=x_libraries ;;
1318
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320
    x_libraries=$ac_optarg ;;
1321
 
1322 118 jeremybenn
  -*) as_fn_error "unrecognized option: \`$ac_option'
1323
Try \`$0 --help' for more information."
1324 19 jeremybenn
    ;;
1325
 
1326
  *=*)
1327
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328
    # Reject names that are not valid shell variable names.
1329 118 jeremybenn
    case $ac_envvar in #(
1330
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1331
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332
    esac
1333 19 jeremybenn
    eval $ac_envvar=\$ac_optarg
1334
    export $ac_envvar ;;
1335
 
1336
  *)
1337
    # FIXME: should be removed in autoconf 3.0.
1338 82 jeremybenn
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 19 jeremybenn
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 82 jeremybenn
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 19 jeremybenn
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342
    ;;
1343
 
1344
  esac
1345
done
1346
 
1347
if test -n "$ac_prev"; then
1348
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 118 jeremybenn
  as_fn_error "missing argument to $ac_option"
1350 19 jeremybenn
fi
1351
 
1352 82 jeremybenn
if test -n "$ac_unrecognized_opts"; then
1353
  case $enable_option_checking in
1354
    no) ;;
1355 118 jeremybenn
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 82 jeremybenn
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357
  esac
1358
fi
1359
 
1360
# Check all directory arguments for consistency.
1361 19 jeremybenn
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362
                datadir sysconfdir sharedstatedir localstatedir includedir \
1363
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364
                libdir localedir mandir
1365
do
1366
  eval ac_val=\$$ac_var
1367 82 jeremybenn
  # Remove trailing slashes.
1368 19 jeremybenn
  case $ac_val in
1369 82 jeremybenn
    */ )
1370
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371
      eval $ac_var=\$ac_val;;
1372
  esac
1373
  # Be sure to have absolute directory names.
1374
  case $ac_val in
1375 19 jeremybenn
    [\\/$]* | ?:[\\/]* )  continue;;
1376
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377
  esac
1378 118 jeremybenn
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1379 19 jeremybenn
done
1380
 
1381
# There might be people who depend on the old broken behavior: `$host'
1382
# used to hold the argument of --host etc.
1383
# FIXME: To remove some day.
1384
build=$build_alias
1385
host=$host_alias
1386
target=$target_alias
1387
 
1388
# FIXME: To remove some day.
1389
if test "x$host_alias" != x; then
1390
  if test "x$build_alias" = x; then
1391
    cross_compiling=maybe
1392 82 jeremybenn
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 19 jeremybenn
    If a cross compiler is detected then cross compile mode will be used." >&2
1394
  elif test "x$build_alias" != "x$host_alias"; then
1395
    cross_compiling=yes
1396
  fi
1397
fi
1398
 
1399
ac_tool_prefix=
1400
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
 
1402
test "$silent" = yes && exec 6>/dev/null
1403
 
1404
 
1405
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406
ac_ls_di=`ls -di .` &&
1407
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 118 jeremybenn
  as_fn_error "working directory cannot be determined"
1409 19 jeremybenn
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 118 jeremybenn
  as_fn_error "pwd does not report name of working directory"
1411 19 jeremybenn
 
1412
 
1413
# Find the source files, if location was not specified.
1414
if test -z "$srcdir"; then
1415
  ac_srcdir_defaulted=yes
1416
  # Try the directory containing this script, then the parent directory.
1417 82 jeremybenn
  ac_confdir=`$as_dirname -- "$as_myself" ||
1418
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419
         X"$as_myself" : 'X\(//\)[^/]' \| \
1420
         X"$as_myself" : 'X\(//\)$' \| \
1421
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422
$as_echo X"$as_myself" |
1423 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424
            s//\1/
1425
            q
1426
          }
1427
          /^X\(\/\/\)[^/].*/{
1428
            s//\1/
1429
            q
1430
          }
1431
          /^X\(\/\/\)$/{
1432
            s//\1/
1433
            q
1434
          }
1435
          /^X\(\/\).*/{
1436
            s//\1/
1437
            q
1438
          }
1439
          s/.*/./; q'`
1440
  srcdir=$ac_confdir
1441
  if test ! -r "$srcdir/$ac_unique_file"; then
1442
    srcdir=..
1443
  fi
1444
else
1445
  ac_srcdir_defaulted=no
1446
fi
1447
if test ! -r "$srcdir/$ac_unique_file"; then
1448
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 118 jeremybenn
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 19 jeremybenn
fi
1451
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452
ac_abs_confdir=`(
1453 118 jeremybenn
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 19 jeremybenn
        pwd)`
1455
# When building in place, set srcdir=.
1456
if test "$ac_abs_confdir" = "$ac_pwd"; then
1457
  srcdir=.
1458
fi
1459
# Remove unnecessary trailing slashes from srcdir.
1460
# Double slashes in file names in object file debugging info
1461
# mess up M-x gdb in Emacs.
1462
case $srcdir in
1463
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464
esac
1465
for ac_var in $ac_precious_vars; do
1466
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467
  eval ac_env_${ac_var}_value=\$${ac_var}
1468
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470
done
1471
 
1472
#
1473
# Report the --help message.
1474
#
1475
if test "$ac_init_help" = "long"; then
1476
  # Omit some internal or obsolete options to make the list less imposing.
1477
  # This message is too long to be a string in the A/UX 3.1 sh.
1478
  cat <<_ACEOF
1479 118 jeremybenn
\`configure' configures or1ksim 2010-06-13 to adapt to many kinds of systems.
1480 19 jeremybenn
 
1481
Usage: $0 [OPTION]... [VAR=VALUE]...
1482
 
1483
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484
VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
 
1486
Defaults for the options are specified in brackets.
1487
 
1488
Configuration:
1489
  -h, --help              display this help and exit
1490
      --help=short        display options specific to this package
1491
      --help=recursive    display the short help of all the included packages
1492
  -V, --version           display version information and exit
1493
  -q, --quiet, --silent   do not print \`checking...' messages
1494
      --cache-file=FILE   cache test results in FILE [disabled]
1495
  -C, --config-cache      alias for \`--cache-file=config.cache'
1496
  -n, --no-create         do not create output files
1497
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
 
1499
Installation directories:
1500
  --prefix=PREFIX         install architecture-independent files in PREFIX
1501 82 jeremybenn
                          [$ac_default_prefix]
1502 19 jeremybenn
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503 82 jeremybenn
                          [PREFIX]
1504 19 jeremybenn
 
1505
By default, \`make install' will install all the files in
1506
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508
for instance \`--prefix=\$HOME'.
1509
 
1510
For better control, use the options below.
1511
 
1512
Fine tuning of the installation directories:
1513 82 jeremybenn
  --bindir=DIR            user executables [EPREFIX/bin]
1514
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1516
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519
  --libdir=DIR            object code libraries [EPREFIX/lib]
1520
  --includedir=DIR        C header files [PREFIX/include]
1521
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1525
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1527
  --docdir=DIR            documentation root [DATAROOTDIR/doc/or1ksim]
1528
  --htmldir=DIR           html documentation [DOCDIR]
1529
  --dvidir=DIR            dvi documentation [DOCDIR]
1530
  --pdfdir=DIR            pdf documentation [DOCDIR]
1531
  --psdir=DIR             ps documentation [DOCDIR]
1532 19 jeremybenn
_ACEOF
1533
 
1534
  cat <<\_ACEOF
1535
 
1536
Program names:
1537
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1538
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1539
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
 
1541
System types:
1542
  --build=BUILD     configure for building on BUILD [guessed]
1543
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544
  --target=TARGET   configure for building compilers for TARGET [HOST]
1545
_ACEOF
1546
fi
1547
 
1548
if test -n "$ac_init_help"; then
1549
  case $ac_init_help in
1550 118 jeremybenn
     short | recursive ) echo "Configuration of or1ksim 2010-06-13:";;
1551 19 jeremybenn
   esac
1552
  cat <<\_ACEOF
1553
 
1554
Optional Features:
1555 82 jeremybenn
  --disable-option-checking  ignore unrecognized --enable/--with options
1556 19 jeremybenn
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1557
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1558
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1559
  --enable-static[=PKGS]  build static libraries [default=yes]
1560
  --enable-fast-install[=PKGS]
1561
                          optimize for fast installation [default=yes]
1562
  --disable-libtool-lock  avoid locking (might break parallel builds)
1563
  --disable-dependency-tracking  speeds up one-time build
1564
  --enable-dependency-tracking   do not reject slow dependency extractors
1565
  --enable-profiling      generate profiling code
1566
  --enable-execution Execution style to use (simple/complex/dynamic)
1567
  --enable-ethphy    compiles sim with ethernet phy support
1568
  --enable-range-stats      Specifies, whether we should do register accesses over time analysis.
1569
  --enable-arith-flag      Whether arithmethic instructions setflag.
1570
  --enable-debug          enable library debugging symbols
1571
 
1572
Optional Packages:
1573
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1574
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1575
  --with-pic              try to use only PIC/non-PIC objects [default=use
1576
                          both]
1577 82 jeremybenn
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1578 19 jeremybenn
 
1579
Some influential environment variables:
1580
  CC          C compiler command
1581
  CFLAGS      C compiler flags
1582
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
1583
              nonstandard directory 
1584
  LIBS        libraries to pass to the linker, e.g. -l
1585 118 jeremybenn
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I if
1586 19 jeremybenn
              you have headers in a nonstandard directory 
1587
  CPP         C preprocessor
1588 82 jeremybenn
  CCAS        assembler compiler command (defaults to CC)
1589
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1590 19 jeremybenn
 
1591
Use these variables to override the choices made by `configure' or to help
1592
it to find libraries and programs with nonstandard names/locations.
1593
 
1594
Report bugs to .
1595
_ACEOF
1596
ac_status=$?
1597
fi
1598
 
1599
if test "$ac_init_help" = "recursive"; then
1600
  # If there are subdirs, report their specific --help.
1601
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 82 jeremybenn
    test -d "$ac_dir" ||
1603
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604
      continue
1605 19 jeremybenn
    ac_builddir=.
1606
 
1607
case "$ac_dir" in
1608
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609
*)
1610 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
1612 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 19 jeremybenn
  case $ac_top_builddir_sub in
1614
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616
  esac ;;
1617
esac
1618
ac_abs_top_builddir=$ac_pwd
1619
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620
# for backward compatibility:
1621
ac_top_builddir=$ac_top_build_prefix
1622
 
1623
case $srcdir in
1624
  .)  # We are building in place.
1625
    ac_srcdir=.
1626
    ac_top_srcdir=$ac_top_builddir_sub
1627
    ac_abs_top_srcdir=$ac_pwd ;;
1628
  [\\/]* | ?:[\\/]* )  # Absolute name.
1629
    ac_srcdir=$srcdir$ac_dir_suffix;
1630
    ac_top_srcdir=$srcdir
1631
    ac_abs_top_srcdir=$srcdir ;;
1632
  *) # Relative name.
1633
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1635
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636
esac
1637
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
 
1639
    cd "$ac_dir" || { ac_status=$?; continue; }
1640
    # Check for guested configure.
1641
    if test -f "$ac_srcdir/configure.gnu"; then
1642
      echo &&
1643
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644
    elif test -f "$ac_srcdir/configure"; then
1645
      echo &&
1646
      $SHELL "$ac_srcdir/configure" --help=recursive
1647
    else
1648 82 jeremybenn
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 19 jeremybenn
    fi || ac_status=$?
1650
    cd "$ac_pwd" || { ac_status=$?; break; }
1651
  done
1652
fi
1653
 
1654
test -n "$ac_init_help" && exit $ac_status
1655
if $ac_init_version; then
1656
  cat <<\_ACEOF
1657 118 jeremybenn
or1ksim configure 2010-06-13
1658
generated by GNU Autoconf 2.65
1659 19 jeremybenn
 
1660 118 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
1661 19 jeremybenn
This configure script is free software; the Free Software Foundation
1662
gives unlimited permission to copy, distribute and modify it.
1663 82 jeremybenn
 
1664
Copyright (C) 1999-2008 OpenCores
1665
Copyright (C) 2008, 2010 Embecosm Limited
1666
 
1667
Contributor Jeremy Bennett 
1668
 
1669
This file is part of OpenRISC 1000 Architectural Simulator.
1670
 
1671
This program is free software; you can redistribute it and/or modify it
1672
under the terms of the GNU General Public License as published by the Free
1673
Software Foundation; either version 3 of the License, or (at your option)
1674
any later version.
1675
 
1676
This program is distributed in the hope that it will be useful, but WITHOUT
1677
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1678
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1679
more details.
1680
 
1681
You should have received a copy of the GNU General Public License along
1682
with this program.  If not, see .
1683 19 jeremybenn
_ACEOF
1684
  exit
1685
fi
1686 118 jeremybenn
 
1687
## ------------------------ ##
1688
## Autoconf initialization. ##
1689
## ------------------------ ##
1690
 
1691
# ac_fn_c_try_compile LINENO
1692
# --------------------------
1693
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1694
ac_fn_c_try_compile ()
1695
{
1696
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697
  rm -f conftest.$ac_objext
1698
  if { { ac_try="$ac_compile"
1699
case "(($ac_try" in
1700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701
  *) ac_try_echo=$ac_try;;
1702
esac
1703
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704
$as_echo "$ac_try_echo"; } >&5
1705
  (eval "$ac_compile") 2>conftest.err
1706
  ac_status=$?
1707
  if test -s conftest.err; then
1708
    grep -v '^ *+' conftest.err >conftest.er1
1709
    cat conftest.er1 >&5
1710
    mv -f conftest.er1 conftest.err
1711
  fi
1712
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713
  test $ac_status = 0; } && {
1714
         test -z "$ac_c_werror_flag" ||
1715
         test ! -s conftest.err
1716
       } && test -s conftest.$ac_objext; then :
1717
  ac_retval=0
1718
else
1719
  $as_echo "$as_me: failed program was:" >&5
1720
sed 's/^/| /' conftest.$ac_ext >&5
1721
 
1722
        ac_retval=1
1723
fi
1724
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725
  as_fn_set_status $ac_retval
1726
 
1727
} # ac_fn_c_try_compile
1728
 
1729
# ac_fn_c_try_cpp LINENO
1730
# ----------------------
1731
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1732
ac_fn_c_try_cpp ()
1733
{
1734
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1736
case "(($ac_try" in
1737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738
  *) ac_try_echo=$ac_try;;
1739
esac
1740
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741
$as_echo "$ac_try_echo"; } >&5
1742
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743
  ac_status=$?
1744
  if test -s conftest.err; then
1745
    grep -v '^ *+' conftest.err >conftest.er1
1746
    cat conftest.er1 >&5
1747
    mv -f conftest.er1 conftest.err
1748
  fi
1749
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750
  test $ac_status = 0; } >/dev/null && {
1751
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1752
         test ! -s conftest.err
1753
       }; then :
1754
  ac_retval=0
1755
else
1756
  $as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1758
 
1759
    ac_retval=1
1760
fi
1761
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762
  as_fn_set_status $ac_retval
1763
 
1764
} # ac_fn_c_try_cpp
1765
 
1766
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1767
# -------------------------------------------------------
1768
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1769
# the include files in INCLUDES and setting the cache variable VAR
1770
# accordingly.
1771
ac_fn_c_check_header_mongrel ()
1772
{
1773
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776
$as_echo_n "checking for $2... " >&6; }
1777
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778
  $as_echo_n "(cached) " >&6
1779
fi
1780
eval ac_res=\$$3
1781
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782
$as_echo "$ac_res" >&6; }
1783
else
1784
  # Is the header compilable?
1785
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1786
$as_echo_n "checking $2 usability... " >&6; }
1787
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788
/* end confdefs.h.  */
1789
$4
1790
#include <$2>
1791
_ACEOF
1792
if ac_fn_c_try_compile "$LINENO"; then :
1793
  ac_header_compiler=yes
1794
else
1795
  ac_header_compiler=no
1796
fi
1797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1799
$as_echo "$ac_header_compiler" >&6; }
1800
 
1801
# Is the header present?
1802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1803
$as_echo_n "checking $2 presence... " >&6; }
1804
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805
/* end confdefs.h.  */
1806
#include <$2>
1807
_ACEOF
1808
if ac_fn_c_try_cpp "$LINENO"; then :
1809
  ac_header_preproc=yes
1810
else
1811
  ac_header_preproc=no
1812
fi
1813
rm -f conftest.err conftest.$ac_ext
1814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1815
$as_echo "$ac_header_preproc" >&6; }
1816
 
1817
# So?  What about this header?
1818
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1819
  yes:no: )
1820
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1821
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1822
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824
    ;;
1825
  no:yes:* )
1826
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1827
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1828
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1829
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1830
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1831
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1832
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1833
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1834
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836
( cat <<\_ASBOX
1837
## ------------------------------------- ##
1838
## Report this to openrisc@opencores.org ##
1839
## ------------------------------------- ##
1840
_ASBOX
1841
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1842
    ;;
1843
esac
1844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845
$as_echo_n "checking for $2... " >&6; }
1846
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847
  $as_echo_n "(cached) " >&6
1848
else
1849
  eval "$3=\$ac_header_compiler"
1850
fi
1851
eval ac_res=\$$3
1852
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853
$as_echo "$ac_res" >&6; }
1854
fi
1855
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
 
1857
} # ac_fn_c_check_header_mongrel
1858
 
1859
# ac_fn_c_try_run LINENO
1860
# ----------------------
1861
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862
# that executables *can* be run.
1863
ac_fn_c_try_run ()
1864
{
1865
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866
  if { { ac_try="$ac_link"
1867
case "(($ac_try" in
1868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869
  *) ac_try_echo=$ac_try;;
1870
esac
1871
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872
$as_echo "$ac_try_echo"; } >&5
1873
  (eval "$ac_link") 2>&5
1874
  ac_status=$?
1875
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877
  { { case "(($ac_try" in
1878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879
  *) ac_try_echo=$ac_try;;
1880
esac
1881
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882
$as_echo "$ac_try_echo"; } >&5
1883
  (eval "$ac_try") 2>&5
1884
  ac_status=$?
1885
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886
  test $ac_status = 0; }; }; then :
1887
  ac_retval=0
1888
else
1889
  $as_echo "$as_me: program exited with status $ac_status" >&5
1890
       $as_echo "$as_me: failed program was:" >&5
1891
sed 's/^/| /' conftest.$ac_ext >&5
1892
 
1893
       ac_retval=$ac_status
1894
fi
1895
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
  as_fn_set_status $ac_retval
1898
 
1899
} # ac_fn_c_try_run
1900
 
1901
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902
# -------------------------------------------------------
1903
# Tests whether HEADER exists and can be compiled using the include files in
1904
# INCLUDES, setting the cache variable VAR accordingly.
1905
ac_fn_c_check_header_compile ()
1906
{
1907
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909
$as_echo_n "checking for $2... " >&6; }
1910
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911
  $as_echo_n "(cached) " >&6
1912
else
1913
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914
/* end confdefs.h.  */
1915
$4
1916
#include <$2>
1917
_ACEOF
1918
if ac_fn_c_try_compile "$LINENO"; then :
1919
  eval "$3=yes"
1920
else
1921
  eval "$3=no"
1922
fi
1923
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924
fi
1925
eval ac_res=\$$3
1926
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927
$as_echo "$ac_res" >&6; }
1928
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
 
1930
} # ac_fn_c_check_header_compile
1931
 
1932
# ac_fn_c_try_link LINENO
1933
# -----------------------
1934
# Try to link conftest.$ac_ext, and return whether this succeeded.
1935
ac_fn_c_try_link ()
1936
{
1937
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938
  rm -f conftest.$ac_objext conftest$ac_exeext
1939
  if { { ac_try="$ac_link"
1940
case "(($ac_try" in
1941
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942
  *) ac_try_echo=$ac_try;;
1943
esac
1944
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945
$as_echo "$ac_try_echo"; } >&5
1946
  (eval "$ac_link") 2>conftest.err
1947
  ac_status=$?
1948
  if test -s conftest.err; then
1949
    grep -v '^ *+' conftest.err >conftest.er1
1950
    cat conftest.er1 >&5
1951
    mv -f conftest.er1 conftest.err
1952
  fi
1953
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954
  test $ac_status = 0; } && {
1955
         test -z "$ac_c_werror_flag" ||
1956
         test ! -s conftest.err
1957
       } && test -s conftest$ac_exeext && {
1958
         test "$cross_compiling" = yes ||
1959
         $as_test_x conftest$ac_exeext
1960
       }; then :
1961
  ac_retval=0
1962
else
1963
  $as_echo "$as_me: failed program was:" >&5
1964
sed 's/^/| /' conftest.$ac_ext >&5
1965
 
1966
        ac_retval=1
1967
fi
1968
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1969
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1970
  # interfere with the next link command; also delete a directory that is
1971
  # left behind by Apple's compiler.  We do this before executing the actions.
1972
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1974
  as_fn_set_status $ac_retval
1975
 
1976
} # ac_fn_c_try_link
1977
 
1978
# ac_fn_c_check_func LINENO FUNC VAR
1979
# ----------------------------------
1980
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1981
ac_fn_c_check_func ()
1982
{
1983
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985
$as_echo_n "checking for $2... " >&6; }
1986
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987
  $as_echo_n "(cached) " >&6
1988
else
1989
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990
/* end confdefs.h.  */
1991
/* Define $2 to an innocuous variant, in case  declares $2.
1992
   For example, HP-UX 11i  declares gettimeofday.  */
1993
#define $2 innocuous_$2
1994
 
1995
/* System header to define __stub macros and hopefully few prototypes,
1996
    which can conflict with char $2 (); below.
1997
    Prefer  to  if __STDC__ is defined, since
1998
     exists even on freestanding compilers.  */
1999
 
2000
#ifdef __STDC__
2001
# include 
2002
#else
2003
# include 
2004
#endif
2005
 
2006
#undef $2
2007
 
2008
/* Override any GCC internal prototype to avoid an error.
2009
   Use char because int might match the return type of a GCC
2010
   builtin and then its argument prototype would still apply.  */
2011
#ifdef __cplusplus
2012
extern "C"
2013
#endif
2014
char $2 ();
2015
/* The GNU C library defines this for functions which it implements
2016
    to always fail with ENOSYS.  Some functions are actually named
2017
    something starting with __ and the normal name is an alias.  */
2018
#if defined __stub_$2 || defined __stub___$2
2019
choke me
2020
#endif
2021
 
2022
int
2023
main ()
2024
{
2025
return $2 ();
2026
  ;
2027
  return 0;
2028
}
2029
_ACEOF
2030
if ac_fn_c_try_link "$LINENO"; then :
2031
  eval "$3=yes"
2032
else
2033
  eval "$3=no"
2034
fi
2035
rm -f core conftest.err conftest.$ac_objext \
2036
    conftest$ac_exeext conftest.$ac_ext
2037
fi
2038
eval ac_res=\$$3
2039
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040
$as_echo "$ac_res" >&6; }
2041
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2042
 
2043
} # ac_fn_c_check_func
2044
 
2045
# ac_fn_c_check_decl LINENO SYMBOL VAR
2046
# ------------------------------------
2047
# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2048
ac_fn_c_check_decl ()
2049
{
2050
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2052
$as_echo_n "checking whether $2 is declared... " >&6; }
2053
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054
  $as_echo_n "(cached) " >&6
2055
else
2056
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057
/* end confdefs.h.  */
2058
$4
2059
int
2060
main ()
2061
{
2062
#ifndef $2
2063
  (void) $2;
2064
#endif
2065
 
2066
  ;
2067
  return 0;
2068
}
2069
_ACEOF
2070
if ac_fn_c_try_compile "$LINENO"; then :
2071
  eval "$3=yes"
2072
else
2073
  eval "$3=no"
2074
fi
2075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076
fi
2077
eval ac_res=\$$3
2078
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079
$as_echo "$ac_res" >&6; }
2080
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
 
2082
} # ac_fn_c_check_decl
2083
 
2084
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085
# -------------------------------------------
2086
# Tests whether TYPE exists after having included INCLUDES, setting cache
2087
# variable VAR accordingly.
2088
ac_fn_c_check_type ()
2089
{
2090
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092
$as_echo_n "checking for $2... " >&6; }
2093
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2094
  $as_echo_n "(cached) " >&6
2095
else
2096
  eval "$3=no"
2097
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098
/* end confdefs.h.  */
2099
$4
2100
int
2101
main ()
2102
{
2103
if (sizeof ($2))
2104
         return 0;
2105
  ;
2106
  return 0;
2107
}
2108
_ACEOF
2109
if ac_fn_c_try_compile "$LINENO"; then :
2110
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111
/* end confdefs.h.  */
2112
$4
2113
int
2114
main ()
2115
{
2116
if (sizeof (($2)))
2117
            return 0;
2118
  ;
2119
  return 0;
2120
}
2121
_ACEOF
2122
if ac_fn_c_try_compile "$LINENO"; then :
2123
 
2124
else
2125
  eval "$3=yes"
2126
fi
2127
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128
fi
2129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130
fi
2131
eval ac_res=\$$3
2132
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
$as_echo "$ac_res" >&6; }
2134
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135
 
2136
} # ac_fn_c_check_type
2137
 
2138
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2139
# --------------------------------------------
2140
# Tries to find the compile-time value of EXPR in a program that includes
2141
# INCLUDES, setting VAR accordingly. Returns whether the value could be
2142
# computed
2143
ac_fn_c_compute_int ()
2144
{
2145
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146
  if test "$cross_compiling" = yes; then
2147
    # Depending upon the size, compute the lo and hi bounds.
2148
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149
/* end confdefs.h.  */
2150
$4
2151
int
2152
main ()
2153
{
2154
static int test_array [1 - 2 * !(($2) >= 0)];
2155
test_array [0] = 0
2156
 
2157
  ;
2158
  return 0;
2159
}
2160
_ACEOF
2161
if ac_fn_c_try_compile "$LINENO"; then :
2162
  ac_lo=0 ac_mid=0
2163
  while :; do
2164
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165
/* end confdefs.h.  */
2166
$4
2167
int
2168
main ()
2169
{
2170
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171
test_array [0] = 0
2172
 
2173
  ;
2174
  return 0;
2175
}
2176
_ACEOF
2177
if ac_fn_c_try_compile "$LINENO"; then :
2178
  ac_hi=$ac_mid; break
2179
else
2180
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2181
                        if test $ac_lo -le $ac_mid; then
2182
                          ac_lo= ac_hi=
2183
                          break
2184
                        fi
2185
                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2186
fi
2187
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188
  done
2189
else
2190
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191
/* end confdefs.h.  */
2192
$4
2193
int
2194
main ()
2195
{
2196
static int test_array [1 - 2 * !(($2) < 0)];
2197
test_array [0] = 0
2198
 
2199
  ;
2200
  return 0;
2201
}
2202
_ACEOF
2203
if ac_fn_c_try_compile "$LINENO"; then :
2204
  ac_hi=-1 ac_mid=-1
2205
  while :; do
2206
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207
/* end confdefs.h.  */
2208
$4
2209
int
2210
main ()
2211
{
2212
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2213
test_array [0] = 0
2214
 
2215
  ;
2216
  return 0;
2217
}
2218
_ACEOF
2219
if ac_fn_c_try_compile "$LINENO"; then :
2220
  ac_lo=$ac_mid; break
2221
else
2222
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2223
                        if test $ac_mid -le $ac_hi; then
2224
                          ac_lo= ac_hi=
2225
                          break
2226
                        fi
2227
                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2228
fi
2229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230
  done
2231
else
2232
  ac_lo= ac_hi=
2233
fi
2234
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235
fi
2236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237
# Binary search between lo and hi bounds.
2238
while test "x$ac_lo" != "x$ac_hi"; do
2239
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241
/* end confdefs.h.  */
2242
$4
2243
int
2244
main ()
2245
{
2246
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247
test_array [0] = 0
2248
 
2249
  ;
2250
  return 0;
2251
}
2252
_ACEOF
2253
if ac_fn_c_try_compile "$LINENO"; then :
2254
  ac_hi=$ac_mid
2255
else
2256
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2257
fi
2258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259
done
2260
case $ac_lo in #((
2261
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2262
'') ac_retval=1 ;;
2263
esac
2264
  else
2265
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266
/* end confdefs.h.  */
2267
$4
2268
static long int longval () { return $2; }
2269
static unsigned long int ulongval () { return $2; }
2270
#include 
2271
#include 
2272
int
2273
main ()
2274
{
2275
 
2276
  FILE *f = fopen ("conftest.val", "w");
2277
  if (! f)
2278
    return 1;
2279
  if (($2) < 0)
2280
    {
2281
      long int i = longval ();
2282
      if (i != ($2))
2283
        return 1;
2284
      fprintf (f, "%ld", i);
2285
    }
2286
  else
2287
    {
2288
      unsigned long int i = ulongval ();
2289
      if (i != ($2))
2290
        return 1;
2291
      fprintf (f, "%lu", i);
2292
    }
2293
  /* Do not output a trailing newline, as this causes \r\n confusion
2294
     on some platforms.  */
2295
  return ferror (f) || fclose (f) != 0;
2296
 
2297
  ;
2298
  return 0;
2299
}
2300
_ACEOF
2301
if ac_fn_c_try_run "$LINENO"; then :
2302
  echo >>conftest.val; read $3 
2303
else
2304
  ac_retval=1
2305
fi
2306
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2307
  conftest.$ac_objext conftest.beam conftest.$ac_ext
2308
rm -f conftest.val
2309
 
2310
  fi
2311
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312
  as_fn_set_status $ac_retval
2313
 
2314
} # ac_fn_c_compute_int
2315 19 jeremybenn
cat >config.log <<_ACEOF
2316
This file contains any messages produced by compilers while
2317
running configure, to aid debugging if configure makes a mistake.
2318
 
2319 118 jeremybenn
It was created by or1ksim $as_me 2010-06-13, which was
2320
generated by GNU Autoconf 2.65.  Invocation command line was
2321 19 jeremybenn
 
2322
  $ $0 $@
2323
 
2324
_ACEOF
2325
exec 5>>config.log
2326
{
2327
cat <<_ASUNAME
2328
## --------- ##
2329
## Platform. ##
2330
## --------- ##
2331
 
2332
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337
 
2338
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2340
 
2341
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2342
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2343
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2345
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2346
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2347
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2348
 
2349
_ASUNAME
2350
 
2351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352
for as_dir in $PATH
2353
do
2354
  IFS=$as_save_IFS
2355
  test -z "$as_dir" && as_dir=.
2356 118 jeremybenn
    $as_echo "PATH: $as_dir"
2357
  done
2358 19 jeremybenn
IFS=$as_save_IFS
2359
 
2360
} >&5
2361
 
2362
cat >&5 <<_ACEOF
2363
 
2364
 
2365
## ----------- ##
2366
## Core tests. ##
2367
## ----------- ##
2368
 
2369
_ACEOF
2370
 
2371
 
2372
# Keep a trace of the command line.
2373
# Strip out --no-create and --no-recursion so they do not pile up.
2374
# Strip out --silent because we don't want to record it for future runs.
2375
# Also quote any args containing shell meta-characters.
2376
# Make two passes to allow for proper duplicate-argument suppression.
2377
ac_configure_args=
2378
ac_configure_args0=
2379
ac_configure_args1=
2380
ac_must_keep_next=false
2381
for ac_pass in 1 2
2382
do
2383
  for ac_arg
2384
  do
2385
    case $ac_arg in
2386
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388
    | -silent | --silent | --silen | --sile | --sil)
2389
      continue ;;
2390
    *\'*)
2391 82 jeremybenn
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 19 jeremybenn
    esac
2393
    case $ac_pass in
2394 118 jeremybenn
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 19 jeremybenn
    2)
2396 118 jeremybenn
      as_fn_append ac_configure_args1 " '$ac_arg'"
2397 19 jeremybenn
      if test $ac_must_keep_next = true; then
2398
        ac_must_keep_next=false # Got value, back to normal.
2399
      else
2400
        case $ac_arg in
2401
          *=* | --config-cache | -C | -disable-* | --disable-* \
2402
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404
          | -with-* | --with-* | -without-* | --without-* | --x)
2405
            case "$ac_configure_args0 " in
2406
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407
            esac
2408
            ;;
2409
          -* ) ac_must_keep_next=true ;;
2410
        esac
2411
      fi
2412 118 jeremybenn
      as_fn_append ac_configure_args " '$ac_arg'"
2413 19 jeremybenn
      ;;
2414
    esac
2415
  done
2416
done
2417 118 jeremybenn
{ ac_configure_args0=; unset ac_configure_args0;}
2418
{ ac_configure_args1=; unset ac_configure_args1;}
2419 19 jeremybenn
 
2420
# When interrupted or exit'd, cleanup temporary files, and complete
2421
# config.log.  We remove comments because anyway the quotes in there
2422
# would cause problems or look ugly.
2423
# WARNING: Use '\'' to represent an apostrophe within the trap.
2424
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425
trap 'exit_status=$?
2426
  # Save into config.log some information that might help in debugging.
2427
  {
2428
    echo
2429
 
2430
    cat <<\_ASBOX
2431
## ---------------- ##
2432
## Cache variables. ##
2433
## ---------------- ##
2434
_ASBOX
2435
    echo
2436
    # The following way of writing the cache mishandles newlines in values,
2437
(
2438
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2439
    eval ac_val=\$$ac_var
2440
    case $ac_val in #(
2441
    *${as_nl}*)
2442
      case $ac_var in #(
2443 118 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2444 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2445 19 jeremybenn
      esac
2446
      case $ac_var in #(
2447
      _ | IFS | as_nl) ;; #(
2448 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2449 118 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
2450 19 jeremybenn
      esac ;;
2451
    esac
2452
  done
2453
  (set) 2>&1 |
2454
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2455
    *${as_nl}ac_space=\ *)
2456
      sed -n \
2457
        "s/'\''/'\''\\\\'\'''\''/g;
2458
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2459
      ;; #(
2460
    *)
2461
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2462
      ;;
2463
    esac |
2464
    sort
2465
)
2466
    echo
2467
 
2468
    cat <<\_ASBOX
2469
## ----------------- ##
2470
## Output variables. ##
2471
## ----------------- ##
2472
_ASBOX
2473
    echo
2474
    for ac_var in $ac_subst_vars
2475
    do
2476
      eval ac_val=\$$ac_var
2477
      case $ac_val in
2478 82 jeremybenn
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 19 jeremybenn
      esac
2480 82 jeremybenn
      $as_echo "$ac_var='\''$ac_val'\''"
2481 19 jeremybenn
    done | sort
2482
    echo
2483
 
2484
    if test -n "$ac_subst_files"; then
2485
      cat <<\_ASBOX
2486
## ------------------- ##
2487
## File substitutions. ##
2488
## ------------------- ##
2489
_ASBOX
2490
      echo
2491
      for ac_var in $ac_subst_files
2492
      do
2493
        eval ac_val=\$$ac_var
2494
        case $ac_val in
2495 82 jeremybenn
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 19 jeremybenn
        esac
2497 82 jeremybenn
        $as_echo "$ac_var='\''$ac_val'\''"
2498 19 jeremybenn
      done | sort
2499
      echo
2500
    fi
2501
 
2502
    if test -s confdefs.h; then
2503
      cat <<\_ASBOX
2504
## ----------- ##
2505
## confdefs.h. ##
2506
## ----------- ##
2507
_ASBOX
2508
      echo
2509
      cat confdefs.h
2510
      echo
2511
    fi
2512
    test "$ac_signal" != 0 &&
2513 82 jeremybenn
      $as_echo "$as_me: caught signal $ac_signal"
2514
    $as_echo "$as_me: exit $exit_status"
2515 19 jeremybenn
  } >&5
2516
  rm -f core *.core core.conftest.* &&
2517
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2518
    exit $exit_status
2519
' 0
2520
for ac_signal in 1 2 13 15; do
2521 118 jeremybenn
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 19 jeremybenn
done
2523
ac_signal=0
2524
 
2525
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2526
rm -f -r conftest* confdefs.h
2527
 
2528 118 jeremybenn
$as_echo "/* confdefs.h */" > confdefs.h
2529
 
2530 19 jeremybenn
# Predefined preprocessor variables.
2531
 
2532
cat >>confdefs.h <<_ACEOF
2533
#define PACKAGE_NAME "$PACKAGE_NAME"
2534
_ACEOF
2535
 
2536
cat >>confdefs.h <<_ACEOF
2537
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2538
_ACEOF
2539
 
2540
cat >>confdefs.h <<_ACEOF
2541
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2542
_ACEOF
2543
 
2544
cat >>confdefs.h <<_ACEOF
2545
#define PACKAGE_STRING "$PACKAGE_STRING"
2546
_ACEOF
2547
 
2548
cat >>confdefs.h <<_ACEOF
2549
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2550
_ACEOF
2551
 
2552 118 jeremybenn
cat >>confdefs.h <<_ACEOF
2553
#define PACKAGE_URL "$PACKAGE_URL"
2554
_ACEOF
2555 19 jeremybenn
 
2556 118 jeremybenn
 
2557 19 jeremybenn
# Let the site file select an alternate cache file if it wants to.
2558 82 jeremybenn
# Prefer an explicitly selected file to automatically selected ones.
2559
ac_site_file1=NONE
2560
ac_site_file2=NONE
2561 19 jeremybenn
if test -n "$CONFIG_SITE"; then
2562 82 jeremybenn
  ac_site_file1=$CONFIG_SITE
2563 19 jeremybenn
elif test "x$prefix" != xNONE; then
2564 82 jeremybenn
  ac_site_file1=$prefix/share/config.site
2565
  ac_site_file2=$prefix/etc/config.site
2566 19 jeremybenn
else
2567 82 jeremybenn
  ac_site_file1=$ac_default_prefix/share/config.site
2568
  ac_site_file2=$ac_default_prefix/etc/config.site
2569 19 jeremybenn
fi
2570 82 jeremybenn
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571 19 jeremybenn
do
2572 82 jeremybenn
  test "x$ac_site_file" = xNONE && continue
2573 118 jeremybenn
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 82 jeremybenn
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 19 jeremybenn
    sed 's/^/| /' "$ac_site_file" >&5
2577
    . "$ac_site_file"
2578
  fi
2579
done
2580
 
2581
if test -r "$cache_file"; then
2582 118 jeremybenn
  # Some versions of bash will fail to source /dev/null (special files
2583
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2584
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2585
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 82 jeremybenn
$as_echo "$as_me: loading cache $cache_file" >&6;}
2587 19 jeremybenn
    case $cache_file in
2588
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589
      *)                      . "./$cache_file";;
2590
    esac
2591
  fi
2592
else
2593 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 82 jeremybenn
$as_echo "$as_me: creating cache $cache_file" >&6;}
2595 19 jeremybenn
  >$cache_file
2596
fi
2597
 
2598
# Check that the precious variables saved in the cache have kept the same
2599
# value.
2600
ac_cache_corrupted=false
2601
for ac_var in $ac_precious_vars; do
2602
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603
  eval ac_new_set=\$ac_env_${ac_var}_set
2604
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605
  eval ac_new_val=\$ac_env_${ac_var}_value
2606
  case $ac_old_set,$ac_new_set in
2607
    set,)
2608 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 19 jeremybenn
      ac_cache_corrupted=: ;;
2611
    ,set)
2612 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 19 jeremybenn
      ac_cache_corrupted=: ;;
2615
    ,);;
2616
    *)
2617
      if test "x$ac_old_val" != "x$ac_new_val"; then
2618 82 jeremybenn
        # differences in whitespace do not lead to failure.
2619
        ac_old_val_w=`echo x $ac_old_val`
2620
        ac_new_val_w=`echo x $ac_new_val`
2621
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 118 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 82 jeremybenn
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624
          ac_cache_corrupted=:
2625
        else
2626 118 jeremybenn
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 82 jeremybenn
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628
          eval $ac_var=\$ac_old_val
2629
        fi
2630 118 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2631 82 jeremybenn
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2632 118 jeremybenn
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2633 82 jeremybenn
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2634 19 jeremybenn
      fi;;
2635
  esac
2636
  # Pass precious variables to config.status.
2637
  if test "$ac_new_set" = set; then
2638
    case $ac_new_val in
2639 82 jeremybenn
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 19 jeremybenn
    *) ac_arg=$ac_var=$ac_new_val ;;
2641
    esac
2642
    case " $ac_configure_args " in
2643
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2644 118 jeremybenn
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2645 19 jeremybenn
    esac
2646
  fi
2647
done
2648
if $ac_cache_corrupted; then
2649 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 82 jeremybenn
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 118 jeremybenn
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 19 jeremybenn
fi
2655 118 jeremybenn
## -------------------- ##
2656
## Main body of script. ##
2657
## -------------------- ##
2658 19 jeremybenn
 
2659
ac_ext=c
2660
ac_cpp='$CPP $CPPFLAGS'
2661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
 
2665
 
2666
 
2667 82 jeremybenn
 
2668 91 jeremybenn
# Generically use extensions such as _GNU_SOURCE if available.
2669 19 jeremybenn
ac_ext=c
2670
ac_cpp='$CPP $CPPFLAGS'
2671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674
if test -n "$ac_tool_prefix"; then
2675
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2679 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2680 82 jeremybenn
  $as_echo_n "(cached) " >&6
2681 19 jeremybenn
else
2682
  if test -n "$CC"; then
2683
  ac_cv_prog_CC="$CC" # Let the user override the test.
2684
else
2685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686
for as_dir in $PATH
2687
do
2688
  IFS=$as_save_IFS
2689
  test -z "$as_dir" && as_dir=.
2690 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2691 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 19 jeremybenn
    break 2
2695
  fi
2696
done
2697 118 jeremybenn
  done
2698 19 jeremybenn
IFS=$as_save_IFS
2699
 
2700
fi
2701
fi
2702
CC=$ac_cv_prog_CC
2703
if test -n "$CC"; then
2704 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 82 jeremybenn
$as_echo "$CC" >&6; }
2706 19 jeremybenn
else
2707 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 82 jeremybenn
$as_echo "no" >&6; }
2709 19 jeremybenn
fi
2710
 
2711
 
2712
fi
2713
if test -z "$ac_cv_prog_CC"; then
2714
  ac_ct_CC=$CC
2715
  # Extract the first word of "gcc", so it can be a program name with args.
2716
set dummy gcc; ac_word=$2
2717 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2719 118 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2720 82 jeremybenn
  $as_echo_n "(cached) " >&6
2721 19 jeremybenn
else
2722
  if test -n "$ac_ct_CC"; then
2723
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724
else
2725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726
for as_dir in $PATH
2727
do
2728
  IFS=$as_save_IFS
2729
  test -z "$as_dir" && as_dir=.
2730 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2731 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732
    ac_cv_prog_ac_ct_CC="gcc"
2733 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 19 jeremybenn
    break 2
2735
  fi
2736
done
2737 118 jeremybenn
  done
2738 19 jeremybenn
IFS=$as_save_IFS
2739
 
2740
fi
2741
fi
2742
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743
if test -n "$ac_ct_CC"; then
2744 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2746 19 jeremybenn
else
2747 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 82 jeremybenn
$as_echo "no" >&6; }
2749 19 jeremybenn
fi
2750
 
2751
  if test "x$ac_ct_CC" = x; then
2752
    CC=""
2753
  else
2754
    case $cross_compiling:$ac_tool_warned in
2755
yes:)
2756 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 19 jeremybenn
ac_tool_warned=yes ;;
2759
esac
2760
    CC=$ac_ct_CC
2761
  fi
2762
else
2763
  CC="$ac_cv_prog_CC"
2764
fi
2765
 
2766
if test -z "$CC"; then
2767
          if test -n "$ac_tool_prefix"; then
2768
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769
set dummy ${ac_tool_prefix}cc; ac_word=$2
2770 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2772 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2773 82 jeremybenn
  $as_echo_n "(cached) " >&6
2774 19 jeremybenn
else
2775
  if test -n "$CC"; then
2776
  ac_cv_prog_CC="$CC" # Let the user override the test.
2777
else
2778
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779
for as_dir in $PATH
2780
do
2781
  IFS=$as_save_IFS
2782
  test -z "$as_dir" && as_dir=.
2783 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2784 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2786 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 19 jeremybenn
    break 2
2788
  fi
2789
done
2790 118 jeremybenn
  done
2791 19 jeremybenn
IFS=$as_save_IFS
2792
 
2793
fi
2794
fi
2795
CC=$ac_cv_prog_CC
2796
if test -n "$CC"; then
2797 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 82 jeremybenn
$as_echo "$CC" >&6; }
2799 19 jeremybenn
else
2800 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 82 jeremybenn
$as_echo "no" >&6; }
2802 19 jeremybenn
fi
2803
 
2804
 
2805
  fi
2806
fi
2807
if test -z "$CC"; then
2808
  # Extract the first word of "cc", so it can be a program name with args.
2809
set dummy cc; ac_word=$2
2810 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2812 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2813 82 jeremybenn
  $as_echo_n "(cached) " >&6
2814 19 jeremybenn
else
2815
  if test -n "$CC"; then
2816
  ac_cv_prog_CC="$CC" # Let the user override the test.
2817
else
2818
  ac_prog_rejected=no
2819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820
for as_dir in $PATH
2821
do
2822
  IFS=$as_save_IFS
2823
  test -z "$as_dir" && as_dir=.
2824 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2825 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827
       ac_prog_rejected=yes
2828
       continue
2829
     fi
2830
    ac_cv_prog_CC="cc"
2831 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 19 jeremybenn
    break 2
2833
  fi
2834
done
2835 118 jeremybenn
  done
2836 19 jeremybenn
IFS=$as_save_IFS
2837
 
2838
if test $ac_prog_rejected = yes; then
2839
  # We found a bogon in the path, so make sure we never use it.
2840
  set dummy $ac_cv_prog_CC
2841
  shift
2842
  if test $# != 0; then
2843
    # We chose a different compiler from the bogus one.
2844
    # However, it has the same basename, so the bogon will be chosen
2845
    # first if we set CC to just the basename; use the full file name.
2846
    shift
2847
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2848
  fi
2849
fi
2850
fi
2851
fi
2852
CC=$ac_cv_prog_CC
2853
if test -n "$CC"; then
2854 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 82 jeremybenn
$as_echo "$CC" >&6; }
2856 19 jeremybenn
else
2857 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 82 jeremybenn
$as_echo "no" >&6; }
2859 19 jeremybenn
fi
2860
 
2861
 
2862
fi
2863
if test -z "$CC"; then
2864
  if test -n "$ac_tool_prefix"; then
2865
  for ac_prog in cl.exe
2866
  do
2867
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2871 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
2872 82 jeremybenn
  $as_echo_n "(cached) " >&6
2873 19 jeremybenn
else
2874
  if test -n "$CC"; then
2875
  ac_cv_prog_CC="$CC" # Let the user override the test.
2876
else
2877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878
for as_dir in $PATH
2879
do
2880
  IFS=$as_save_IFS
2881
  test -z "$as_dir" && as_dir=.
2882 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2883 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 19 jeremybenn
    break 2
2887
  fi
2888
done
2889 118 jeremybenn
  done
2890 19 jeremybenn
IFS=$as_save_IFS
2891
 
2892
fi
2893
fi
2894
CC=$ac_cv_prog_CC
2895
if test -n "$CC"; then
2896 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 82 jeremybenn
$as_echo "$CC" >&6; }
2898 19 jeremybenn
else
2899 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 82 jeremybenn
$as_echo "no" >&6; }
2901 19 jeremybenn
fi
2902
 
2903
 
2904
    test -n "$CC" && break
2905
  done
2906
fi
2907
if test -z "$CC"; then
2908
  ac_ct_CC=$CC
2909
  for ac_prog in cl.exe
2910
do
2911
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2912
set dummy $ac_prog; ac_word=$2
2913 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
2915 118 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2916 82 jeremybenn
  $as_echo_n "(cached) " >&6
2917 19 jeremybenn
else
2918
  if test -n "$ac_ct_CC"; then
2919
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920
else
2921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922
for as_dir in $PATH
2923
do
2924
  IFS=$as_save_IFS
2925
  test -z "$as_dir" && as_dir=.
2926 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
2927 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928
    ac_cv_prog_ac_ct_CC="$ac_prog"
2929 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 19 jeremybenn
    break 2
2931
  fi
2932
done
2933 118 jeremybenn
  done
2934 19 jeremybenn
IFS=$as_save_IFS
2935
 
2936
fi
2937
fi
2938
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939
if test -n "$ac_ct_CC"; then
2940 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
2942 19 jeremybenn
else
2943 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 82 jeremybenn
$as_echo "no" >&6; }
2945 19 jeremybenn
fi
2946
 
2947
 
2948
  test -n "$ac_ct_CC" && break
2949
done
2950
 
2951
  if test "x$ac_ct_CC" = x; then
2952
    CC=""
2953
  else
2954
    case $cross_compiling:$ac_tool_warned in
2955
yes:)
2956 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 19 jeremybenn
ac_tool_warned=yes ;;
2959
esac
2960
    CC=$ac_ct_CC
2961
  fi
2962
fi
2963
 
2964
fi
2965
 
2966
 
2967 118 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 118 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
2970
See \`config.log' for more details." "$LINENO" 5; }
2971 19 jeremybenn
 
2972
# Provide some information about the compiler.
2973 118 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974 82 jeremybenn
set X $ac_compile
2975
ac_compiler=$2
2976 118 jeremybenn
for ac_option in --version -v -V -qversion; do
2977
  { { ac_try="$ac_compiler $ac_option >&5"
2978 19 jeremybenn
case "(($ac_try" in
2979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980
  *) ac_try_echo=$ac_try;;
2981
esac
2982 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983
$as_echo "$ac_try_echo"; } >&5
2984
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2985 19 jeremybenn
  ac_status=$?
2986 118 jeremybenn
  if test -s conftest.err; then
2987
    sed '10a\
2988
... rest of stderr output deleted ...
2989
         10q' conftest.err >conftest.er1
2990
    cat conftest.er1 >&5
2991
  fi
2992
  rm -f conftest.er1 conftest.err
2993
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994
  test $ac_status = 0; }
2995
done
2996 19 jeremybenn
 
2997 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 19 jeremybenn
/* end confdefs.h.  */
2999
 
3000
int
3001
main ()
3002
{
3003
 
3004
  ;
3005
  return 0;
3006
}
3007
_ACEOF
3008
ac_clean_files_save=$ac_clean_files
3009 82 jeremybenn
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3010 19 jeremybenn
# Try to create an executable without -o first, disregard a.out.
3011
# It will help us diagnose broken compilers, and finding out an intuition
3012
# of exeext.
3013 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3014
$as_echo_n "checking whether the C compiler works... " >&6; }
3015 82 jeremybenn
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3016
 
3017
# The possible output files:
3018
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3019
 
3020 19 jeremybenn
ac_rmfiles=
3021
for ac_file in $ac_files
3022
do
3023
  case $ac_file in
3024 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025 19 jeremybenn
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026
  esac
3027
done
3028
rm -f $ac_rmfiles
3029
 
3030 118 jeremybenn
if { { ac_try="$ac_link_default"
3031 19 jeremybenn
case "(($ac_try" in
3032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033
  *) ac_try_echo=$ac_try;;
3034
esac
3035 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036
$as_echo "$ac_try_echo"; } >&5
3037 19 jeremybenn
  (eval "$ac_link_default") 2>&5
3038
  ac_status=$?
3039 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040
  test $ac_status = 0; }; then :
3041 19 jeremybenn
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3044
# so that the user can short-circuit this test for compilers unknown to
3045
# Autoconf.
3046
for ac_file in $ac_files ''
3047
do
3048
  test -f "$ac_file" || continue
3049
  case $ac_file in
3050 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3051 19 jeremybenn
        ;;
3052
    [ab].out )
3053
        # We found the default executable, but exeext='' is most
3054
        # certainly right.
3055
        break;;
3056
    *.* )
3057 118 jeremybenn
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058 19 jeremybenn
        then :; else
3059
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3060
        fi
3061
        # We set ac_cv_exeext here because the later test for it is not
3062
        # safe: cross compilers may not add the suffix if given an `-o'
3063
        # argument, so we may need to know it at that point already.
3064
        # Even if this section looks crufty: it has the advantage of
3065
        # actually working.
3066
        break;;
3067
    * )
3068
        break;;
3069
  esac
3070
done
3071
test "$ac_cv_exeext" = no && ac_cv_exeext=
3072
 
3073
else
3074
  ac_file=''
3075
fi
3076 118 jeremybenn
if test -z "$ac_file"; then :
3077
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078
$as_echo "no" >&6; }
3079
$as_echo "$as_me: failed program was:" >&5
3080 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3081
 
3082 118 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 118 jeremybenn
{ as_fn_set_status 77
3085
as_fn_error "C compiler cannot create executables
3086
See \`config.log' for more details." "$LINENO" 5; }; }
3087
else
3088
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3089
$as_echo "yes" >&6; }
3090 19 jeremybenn
fi
3091 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092
$as_echo_n "checking for C compiler default output file name... " >&6; }
3093
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094
$as_echo "$ac_file" >&6; }
3095 19 jeremybenn
ac_exeext=$ac_cv_exeext
3096
 
3097 82 jeremybenn
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3098 19 jeremybenn
ac_clean_files=$ac_clean_files_save
3099 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3100 82 jeremybenn
$as_echo_n "checking for suffix of executables... " >&6; }
3101 118 jeremybenn
if { { ac_try="$ac_link"
3102 19 jeremybenn
case "(($ac_try" in
3103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104
  *) ac_try_echo=$ac_try;;
3105
esac
3106 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107
$as_echo "$ac_try_echo"; } >&5
3108 19 jeremybenn
  (eval "$ac_link") 2>&5
3109
  ac_status=$?
3110 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111
  test $ac_status = 0; }; then :
3112 19 jeremybenn
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3113
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3114
# work properly (i.e., refer to `conftest.exe'), while it won't with
3115
# `rm'.
3116
for ac_file in conftest.exe conftest conftest.*; do
3117
  test -f "$ac_file" || continue
3118
  case $ac_file in
3119 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3120 19 jeremybenn
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121
          break;;
3122
    * ) break;;
3123
  esac
3124
done
3125
else
3126 118 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128 118 jeremybenn
as_fn_error "cannot compute suffix of executables: cannot compile and link
3129
See \`config.log' for more details." "$LINENO" 5; }
3130 19 jeremybenn
fi
3131 118 jeremybenn
rm -f conftest conftest$ac_cv_exeext
3132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3133 82 jeremybenn
$as_echo "$ac_cv_exeext" >&6; }
3134 19 jeremybenn
 
3135
rm -f conftest.$ac_ext
3136
EXEEXT=$ac_cv_exeext
3137
ac_exeext=$EXEEXT
3138 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139
/* end confdefs.h.  */
3140
#include 
3141
int
3142
main ()
3143
{
3144
FILE *f = fopen ("conftest.out", "w");
3145
 return ferror (f) || fclose (f) != 0;
3146
 
3147
  ;
3148
  return 0;
3149
}
3150
_ACEOF
3151
ac_clean_files="$ac_clean_files conftest.out"
3152
# Check that the compiler produces executables we can run.  If not, either
3153
# the compiler is broken, or we cross compile.
3154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3155
$as_echo_n "checking whether we are cross compiling... " >&6; }
3156
if test "$cross_compiling" != yes; then
3157
  { { ac_try="$ac_link"
3158
case "(($ac_try" in
3159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160
  *) ac_try_echo=$ac_try;;
3161
esac
3162
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163
$as_echo "$ac_try_echo"; } >&5
3164
  (eval "$ac_link") 2>&5
3165
  ac_status=$?
3166
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167
  test $ac_status = 0; }
3168
  if { ac_try='./conftest$ac_cv_exeext'
3169
  { { case "(($ac_try" in
3170
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171
  *) ac_try_echo=$ac_try;;
3172
esac
3173
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174
$as_echo "$ac_try_echo"; } >&5
3175
  (eval "$ac_try") 2>&5
3176
  ac_status=$?
3177
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178
  test $ac_status = 0; }; }; then
3179
    cross_compiling=no
3180
  else
3181
    if test "$cross_compiling" = maybe; then
3182
        cross_compiling=yes
3183
    else
3184
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186
as_fn_error "cannot run C compiled programs.
3187
If you meant to cross compile, use \`--host'.
3188
See \`config.log' for more details." "$LINENO" 5; }
3189
    fi
3190
  fi
3191
fi
3192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3193
$as_echo "$cross_compiling" >&6; }
3194
 
3195
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3196
ac_clean_files=$ac_clean_files_save
3197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3198 82 jeremybenn
$as_echo_n "checking for suffix of object files... " >&6; }
3199 118 jeremybenn
if test "${ac_cv_objext+set}" = set; then :
3200 82 jeremybenn
  $as_echo_n "(cached) " >&6
3201 19 jeremybenn
else
3202 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 19 jeremybenn
/* end confdefs.h.  */
3204
 
3205
int
3206
main ()
3207
{
3208
 
3209
  ;
3210
  return 0;
3211
}
3212
_ACEOF
3213
rm -f conftest.o conftest.obj
3214 118 jeremybenn
if { { ac_try="$ac_compile"
3215 19 jeremybenn
case "(($ac_try" in
3216
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217
  *) ac_try_echo=$ac_try;;
3218
esac
3219 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220
$as_echo "$ac_try_echo"; } >&5
3221 19 jeremybenn
  (eval "$ac_compile") 2>&5
3222
  ac_status=$?
3223 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224
  test $ac_status = 0; }; then :
3225 19 jeremybenn
  for ac_file in conftest.o conftest.obj conftest.*; do
3226
  test -f "$ac_file" || continue;
3227
  case $ac_file in
3228 82 jeremybenn
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3229 19 jeremybenn
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230
       break;;
3231
  esac
3232
done
3233
else
3234 82 jeremybenn
  $as_echo "$as_me: failed program was:" >&5
3235 19 jeremybenn
sed 's/^/| /' conftest.$ac_ext >&5
3236
 
3237 118 jeremybenn
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 118 jeremybenn
as_fn_error "cannot compute suffix of object files: cannot compile
3240
See \`config.log' for more details." "$LINENO" 5; }
3241 19 jeremybenn
fi
3242
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243
fi
3244 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3245 82 jeremybenn
$as_echo "$ac_cv_objext" >&6; }
3246 19 jeremybenn
OBJEXT=$ac_cv_objext
3247
ac_objext=$OBJEXT
3248 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3249 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3250 118 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3251 82 jeremybenn
  $as_echo_n "(cached) " >&6
3252 19 jeremybenn
else
3253 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 19 jeremybenn
/* end confdefs.h.  */
3255
 
3256
int
3257
main ()
3258
{
3259
#ifndef __GNUC__
3260
       choke me
3261
#endif
3262
 
3263
  ;
3264
  return 0;
3265
}
3266
_ACEOF
3267 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3268 19 jeremybenn
  ac_compiler_gnu=yes
3269
else
3270 118 jeremybenn
  ac_compiler_gnu=no
3271 19 jeremybenn
fi
3272
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3274
 
3275
fi
3276 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3277 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3278
if test $ac_compiler_gnu = yes; then
3279
  GCC=yes
3280
else
3281
  GCC=
3282
fi
3283 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
3284
ac_save_CFLAGS=$CFLAGS
3285 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3286 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3287 118 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
3288 82 jeremybenn
  $as_echo_n "(cached) " >&6
3289 19 jeremybenn
else
3290
  ac_save_c_werror_flag=$ac_c_werror_flag
3291
   ac_c_werror_flag=yes
3292
   ac_cv_prog_cc_g=no
3293
   CFLAGS="-g"
3294 118 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 19 jeremybenn
/* end confdefs.h.  */
3296
 
3297
int
3298
main ()
3299
{
3300
 
3301
  ;
3302
  return 0;
3303
}
3304
_ACEOF
3305 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3306 19 jeremybenn
  ac_cv_prog_cc_g=yes
3307
else
3308 118 jeremybenn
  CFLAGS=""
3309
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3310 19 jeremybenn
/* end confdefs.h.  */
3311
 
3312
int
3313
main ()
3314
{
3315
 
3316
  ;
3317
  return 0;
3318
}
3319
_ACEOF
3320 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3321
 
3322 101 jeremybenn
else
3323 118 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
3324 19 jeremybenn
         CFLAGS="-g"
3325 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 19 jeremybenn
/* end confdefs.h.  */
3327
 
3328
int
3329
main ()
3330
{
3331
 
3332
  ;
3333
  return 0;
3334
}
3335
_ACEOF
3336 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3337 19 jeremybenn
  ac_cv_prog_cc_g=yes
3338
fi
3339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
   ac_c_werror_flag=$ac_save_c_werror_flag
3345
fi
3346 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3347 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
3348 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
3349
  CFLAGS=$ac_save_CFLAGS
3350
elif test $ac_cv_prog_cc_g = yes; then
3351
  if test "$GCC" = yes; then
3352
    CFLAGS="-g -O2"
3353
  else
3354
    CFLAGS="-g"
3355
  fi
3356
else
3357
  if test "$GCC" = yes; then
3358
    CFLAGS="-O2"
3359
  else
3360
    CFLAGS=
3361
  fi
3362
fi
3363 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3364 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365 118 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3366 82 jeremybenn
  $as_echo_n "(cached) " >&6
3367 19 jeremybenn
else
3368
  ac_cv_prog_cc_c89=no
3369
ac_save_CC=$CC
3370 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 19 jeremybenn
/* end confdefs.h.  */
3372
#include 
3373
#include 
3374
#include 
3375
#include 
3376
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3377
struct buf { int x; };
3378
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379
static char *e (p, i)
3380
     char **p;
3381
     int i;
3382
{
3383
  return p[i];
3384
}
3385
static char *f (char * (*g) (char **, int), char **p, ...)
3386
{
3387
  char *s;
3388
  va_list v;
3389
  va_start (v,p);
3390
  s = g (p, va_arg (v,int));
3391
  va_end (v);
3392
  return s;
3393
}
3394
 
3395
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3396
   function prototypes and stuff, but not '\xHH' hex character constants.
3397
   These don't provoke an error unfortunately, instead are silently treated
3398
   as 'x'.  The following induces an error, until -std is added to get
3399
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3400
   array size at least.  It's necessary to write '\x00'==0 to get something
3401
   that's true only with -std.  */
3402
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
 
3404
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405
   inside strings and character constants.  */
3406
#define FOO(x) 'x'
3407
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
 
3409
int test (int i, double x);
3410
struct s1 {int (*f) (int a);};
3411
struct s2 {int (*f) (double a);};
3412
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413
int argc;
3414
char **argv;
3415
int
3416
main ()
3417
{
3418
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3419
  ;
3420
  return 0;
3421
}
3422
_ACEOF
3423
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425
do
3426
  CC="$ac_save_CC $ac_arg"
3427 118 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
3428 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
3429
fi
3430
rm -f core conftest.err conftest.$ac_objext
3431
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3432
done
3433
rm -f conftest.$ac_ext
3434
CC=$ac_save_CC
3435
 
3436
fi
3437
# AC_CACHE_VAL
3438
case "x$ac_cv_prog_cc_c89" in
3439
  x)
3440 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441 82 jeremybenn
$as_echo "none needed" >&6; } ;;
3442 19 jeremybenn
  xno)
3443 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
3445 19 jeremybenn
  *)
3446
    CC="$CC $ac_cv_prog_cc_c89"
3447 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449 19 jeremybenn
esac
3450 118 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 19 jeremybenn
 
3452 118 jeremybenn
fi
3453 19 jeremybenn
 
3454
ac_ext=c
3455
ac_cpp='$CPP $CPPFLAGS'
3456
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
 
3460 91 jeremybenn
 
3461
ac_ext=c
3462
ac_cpp='$CPP $CPPFLAGS'
3463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3467 91 jeremybenn
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3468
# On Suns, sometimes $CPP names a directory.
3469
if test -n "$CPP" && test -d "$CPP"; then
3470
  CPP=
3471
fi
3472
if test -z "$CPP"; then
3473 118 jeremybenn
  if test "${ac_cv_prog_CPP+set}" = set; then :
3474 82 jeremybenn
  $as_echo_n "(cached) " >&6
3475 19 jeremybenn
else
3476 91 jeremybenn
      # Double quotes because CPP needs to be expanded
3477
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3478
    do
3479
      ac_preproc_ok=false
3480
for ac_c_preproc_warn_flag in '' yes
3481 19 jeremybenn
do
3482 91 jeremybenn
  # Use a header file that comes with gcc, so configuring glibc
3483
  # with a fresh cross-compiler works.
3484
  # Prefer  to  if __STDC__ is defined, since
3485
  #  exists even on freestanding compilers.
3486
  # On the NeXT, cc -E runs the code through the compiler's parser,
3487
  # not just through cpp. "Syntax error" is here to catch this case.
3488 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 91 jeremybenn
/* end confdefs.h.  */
3490
#ifdef __STDC__
3491
# include 
3492
#else
3493
# include 
3494
#endif
3495
                     Syntax error
3496
_ACEOF
3497 118 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3498
 
3499 101 jeremybenn
else
3500 91 jeremybenn
  # Broken: fails on valid input.
3501
continue
3502
fi
3503
rm -f conftest.err conftest.$ac_ext
3504
 
3505
  # OK, works on sane cases.  Now check whether nonexistent headers
3506
  # can be detected and how.
3507 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 91 jeremybenn
/* end confdefs.h.  */
3509
#include 
3510
_ACEOF
3511 118 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3512 91 jeremybenn
  # Broken: success on invalid input.
3513
continue
3514 82 jeremybenn
else
3515 91 jeremybenn
  # Passes both tests.
3516
ac_preproc_ok=:
3517
break
3518 82 jeremybenn
fi
3519 91 jeremybenn
rm -f conftest.err conftest.$ac_ext
3520
 
3521
done
3522
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3523
rm -f conftest.err conftest.$ac_ext
3524 118 jeremybenn
if $ac_preproc_ok; then :
3525 91 jeremybenn
  break
3526 19 jeremybenn
fi
3527
 
3528 91 jeremybenn
    done
3529
    ac_cv_prog_CPP=$CPP
3530 19 jeremybenn
 
3531 91 jeremybenn
fi
3532
  CPP=$ac_cv_prog_CPP
3533
else
3534
  ac_cv_prog_CPP=$CPP
3535
fi
3536 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3537 91 jeremybenn
$as_echo "$CPP" >&6; }
3538
ac_preproc_ok=false
3539
for ac_c_preproc_warn_flag in '' yes
3540
do
3541
  # Use a header file that comes with gcc, so configuring glibc
3542
  # with a fresh cross-compiler works.
3543
  # Prefer  to  if __STDC__ is defined, since
3544
  #  exists even on freestanding compilers.
3545
  # On the NeXT, cc -E runs the code through the compiler's parser,
3546
  # not just through cpp. "Syntax error" is here to catch this case.
3547 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 91 jeremybenn
/* end confdefs.h.  */
3549
#ifdef __STDC__
3550
# include 
3551
#else
3552
# include 
3553
#endif
3554
                     Syntax error
3555
_ACEOF
3556 118 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3557
 
3558 101 jeremybenn
else
3559 91 jeremybenn
  # Broken: fails on valid input.
3560
continue
3561
fi
3562
rm -f conftest.err conftest.$ac_ext
3563 82 jeremybenn
 
3564 91 jeremybenn
  # OK, works on sane cases.  Now check whether nonexistent headers
3565
  # can be detected and how.
3566 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 91 jeremybenn
/* end confdefs.h.  */
3568
#include 
3569
_ACEOF
3570 118 jeremybenn
if ac_fn_c_try_cpp "$LINENO"; then :
3571 91 jeremybenn
  # Broken: success on invalid input.
3572
continue
3573
else
3574
  # Passes both tests.
3575
ac_preproc_ok=:
3576
break
3577
fi
3578
rm -f conftest.err conftest.$ac_ext
3579 82 jeremybenn
 
3580 91 jeremybenn
done
3581
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3582
rm -f conftest.err conftest.$ac_ext
3583 118 jeremybenn
if $ac_preproc_ok; then :
3584
 
3585 91 jeremybenn
else
3586 118 jeremybenn
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3587 91 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3588 118 jeremybenn
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3589
See \`config.log' for more details." "$LINENO" 5; }
3590 91 jeremybenn
fi
3591 82 jeremybenn
 
3592 91 jeremybenn
ac_ext=c
3593
ac_cpp='$CPP $CPPFLAGS'
3594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 82 jeremybenn
 
3598
 
3599 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3600 82 jeremybenn
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3601 118 jeremybenn
if test "${ac_cv_path_GREP+set}" = set; then :
3602 82 jeremybenn
  $as_echo_n "(cached) " >&6
3603 19 jeremybenn
else
3604 82 jeremybenn
  if test -z "$GREP"; then
3605 19 jeremybenn
  ac_path_GREP_found=false
3606 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3607
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3609
do
3610
  IFS=$as_save_IFS
3611
  test -z "$as_dir" && as_dir=.
3612 118 jeremybenn
    for ac_prog in grep ggrep; do
3613 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3614
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3615
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3616
# Check for GNU ac_path_GREP and select it if it is found.
3617 19 jeremybenn
  # Check for GNU $ac_path_GREP
3618
case `"$ac_path_GREP" --version 2>&1` in
3619
*GNU*)
3620
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3621
*)
3622
  ac_count=0
3623 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3624 19 jeremybenn
  while :
3625
  do
3626
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3627
    mv "conftest.tmp" "conftest.in"
3628
    cp "conftest.in" "conftest.nl"
3629 82 jeremybenn
    $as_echo 'GREP' >> "conftest.nl"
3630 19 jeremybenn
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3631
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3632 118 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3633 19 jeremybenn
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3634
      # Best one so far, save it but keep looking for a better one
3635
      ac_cv_path_GREP="$ac_path_GREP"
3636
      ac_path_GREP_max=$ac_count
3637
    fi
3638
    # 10*(2^10) chars as input seems more than enough
3639
    test $ac_count -gt 10 && break
3640
  done
3641
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3642
esac
3643
 
3644 82 jeremybenn
      $ac_path_GREP_found && break 3
3645
    done
3646 19 jeremybenn
  done
3647 118 jeremybenn
  done
3648 19 jeremybenn
IFS=$as_save_IFS
3649 82 jeremybenn
  if test -z "$ac_cv_path_GREP"; then
3650 118 jeremybenn
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3651 82 jeremybenn
  fi
3652 19 jeremybenn
else
3653
  ac_cv_path_GREP=$GREP
3654
fi
3655
 
3656
fi
3657 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3658 82 jeremybenn
$as_echo "$ac_cv_path_GREP" >&6; }
3659 19 jeremybenn
 GREP="$ac_cv_path_GREP"
3660
 
3661
 
3662 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3663 82 jeremybenn
$as_echo_n "checking for egrep... " >&6; }
3664 118 jeremybenn
if test "${ac_cv_path_EGREP+set}" = set; then :
3665 82 jeremybenn
  $as_echo_n "(cached) " >&6
3666 19 jeremybenn
else
3667
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3668
   then ac_cv_path_EGREP="$GREP -E"
3669
   else
3670 82 jeremybenn
     if test -z "$EGREP"; then
3671 19 jeremybenn
  ac_path_EGREP_found=false
3672 82 jeremybenn
  # Loop through the user's path and test for each of PROGNAME-LIST
3673
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 19 jeremybenn
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3675
do
3676
  IFS=$as_save_IFS
3677
  test -z "$as_dir" && as_dir=.
3678 118 jeremybenn
    for ac_prog in egrep; do
3679 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
3680
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3681
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3682
# Check for GNU ac_path_EGREP and select it if it is found.
3683 19 jeremybenn
  # Check for GNU $ac_path_EGREP
3684
case `"$ac_path_EGREP" --version 2>&1` in
3685
*GNU*)
3686
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3687
*)
3688
  ac_count=0
3689 82 jeremybenn
  $as_echo_n 0123456789 >"conftest.in"
3690 19 jeremybenn
  while :
3691
  do
3692
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3693
    mv "conftest.tmp" "conftest.in"
3694
    cp "conftest.in" "conftest.nl"
3695 82 jeremybenn
    $as_echo 'EGREP' >> "conftest.nl"
3696 19 jeremybenn
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3697
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3698 118 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
3699 19 jeremybenn
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3700
      # Best one so far, save it but keep looking for a better one
3701
      ac_cv_path_EGREP="$ac_path_EGREP"
3702
      ac_path_EGREP_max=$ac_count
3703
    fi
3704
    # 10*(2^10) chars as input seems more than enough
3705
    test $ac_count -gt 10 && break
3706
  done
3707
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3708
esac
3709
 
3710 82 jeremybenn
      $ac_path_EGREP_found && break 3
3711
    done
3712 19 jeremybenn
  done
3713 118 jeremybenn
  done
3714 19 jeremybenn
IFS=$as_save_IFS
3715 82 jeremybenn
  if test -z "$ac_cv_path_EGREP"; then
3716 118 jeremybenn
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3717 82 jeremybenn
  fi
3718
else
3719
  ac_cv_path_EGREP=$EGREP
3720 19 jeremybenn
fi
3721
 
3722 82 jeremybenn
   fi
3723 19 jeremybenn
fi
3724 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3725 82 jeremybenn
$as_echo "$ac_cv_path_EGREP" >&6; }
3726
 EGREP="$ac_cv_path_EGREP"
3727 19 jeremybenn
 
3728 82 jeremybenn
 
3729 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3730 91 jeremybenn
$as_echo_n "checking for ANSI C header files... " >&6; }
3731 118 jeremybenn
if test "${ac_cv_header_stdc+set}" = set; then :
3732 91 jeremybenn
  $as_echo_n "(cached) " >&6
3733
else
3734 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 91 jeremybenn
/* end confdefs.h.  */
3736
#include 
3737
#include 
3738
#include 
3739
#include 
3740
 
3741
int
3742
main ()
3743
{
3744
 
3745
  ;
3746
  return 0;
3747
}
3748
_ACEOF
3749 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3750 91 jeremybenn
  ac_cv_header_stdc=yes
3751
else
3752 118 jeremybenn
  ac_cv_header_stdc=no
3753 91 jeremybenn
fi
3754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755
 
3756
if test $ac_cv_header_stdc = yes; then
3757
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3758 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 91 jeremybenn
/* end confdefs.h.  */
3760
#include 
3761
 
3762
_ACEOF
3763
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3764 118 jeremybenn
  $EGREP "memchr" >/dev/null 2>&1; then :
3765
 
3766 91 jeremybenn
else
3767
  ac_cv_header_stdc=no
3768
fi
3769
rm -f conftest*
3770
 
3771
fi
3772
 
3773
if test $ac_cv_header_stdc = yes; then
3774
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3775 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 91 jeremybenn
/* end confdefs.h.  */
3777
#include 
3778
 
3779
_ACEOF
3780
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 118 jeremybenn
  $EGREP "free" >/dev/null 2>&1; then :
3782
 
3783 91 jeremybenn
else
3784
  ac_cv_header_stdc=no
3785
fi
3786
rm -f conftest*
3787
 
3788
fi
3789
 
3790
if test $ac_cv_header_stdc = yes; then
3791
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3792 118 jeremybenn
  if test "$cross_compiling" = yes; then :
3793 91 jeremybenn
  :
3794
else
3795 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 91 jeremybenn
/* end confdefs.h.  */
3797
#include 
3798
#include 
3799
#if ((' ' & 0x0FF) == 0x020)
3800
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3801
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3802
#else
3803
# define ISLOWER(c) \
3804
                   (('a' <= (c) && (c) <= 'i') \
3805
                     || ('j' <= (c) && (c) <= 'r') \
3806
                     || ('s' <= (c) && (c) <= 'z'))
3807
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808
#endif
3809
 
3810
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3811
int
3812
main ()
3813
{
3814
  int i;
3815
  for (i = 0; i < 256; i++)
3816
    if (XOR (islower (i), ISLOWER (i))
3817
        || toupper (i) != TOUPPER (i))
3818
      return 2;
3819
  return 0;
3820
}
3821
_ACEOF
3822 118 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
3823
 
3824 101 jeremybenn
else
3825 118 jeremybenn
  ac_cv_header_stdc=no
3826 91 jeremybenn
fi
3827 118 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3828
  conftest.$ac_objext conftest.beam conftest.$ac_ext
3829 91 jeremybenn
fi
3830
 
3831
fi
3832
fi
3833 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3834 91 jeremybenn
$as_echo "$ac_cv_header_stdc" >&6; }
3835
if test $ac_cv_header_stdc = yes; then
3836
 
3837 118 jeremybenn
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3838 91 jeremybenn
 
3839
fi
3840
 
3841
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3842
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3843
                  inttypes.h stdint.h unistd.h
3844 118 jeremybenn
do :
3845
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3846
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3847
"
3848
eval as_val=\$$as_ac_Header
3849
   if test "x$as_val" = x""yes; then :
3850 91 jeremybenn
  cat >>confdefs.h <<_ACEOF
3851
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3852
_ACEOF
3853
 
3854
fi
3855
 
3856
done
3857
 
3858
 
3859
 
3860 118 jeremybenn
  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3861
if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3862 91 jeremybenn
  MINIX=yes
3863
else
3864
  MINIX=
3865
fi
3866
 
3867
 
3868
  if test "$MINIX" = yes; then
3869
 
3870 118 jeremybenn
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3871 91 jeremybenn
 
3872
 
3873 118 jeremybenn
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3874 91 jeremybenn
 
3875
 
3876 118 jeremybenn
$as_echo "#define _MINIX 1" >>confdefs.h
3877 91 jeremybenn
 
3878
  fi
3879
 
3880
 
3881 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3882 91 jeremybenn
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3883 118 jeremybenn
if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3884 91 jeremybenn
  $as_echo_n "(cached) " >&6
3885
else
3886 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 91 jeremybenn
/* end confdefs.h.  */
3888
 
3889
#         define __EXTENSIONS__ 1
3890
          $ac_includes_default
3891
int
3892
main ()
3893
{
3894
 
3895
  ;
3896
  return 0;
3897
}
3898
_ACEOF
3899 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
3900 91 jeremybenn
  ac_cv_safe_to_define___extensions__=yes
3901
else
3902 118 jeremybenn
  ac_cv_safe_to_define___extensions__=no
3903 91 jeremybenn
fi
3904
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905
fi
3906 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3907 91 jeremybenn
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3908
  test $ac_cv_safe_to_define___extensions__ = yes &&
3909 118 jeremybenn
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3910 91 jeremybenn
 
3911 118 jeremybenn
  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3912 91 jeremybenn
 
3913 118 jeremybenn
  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3914 91 jeremybenn
 
3915 118 jeremybenn
  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3916 91 jeremybenn
 
3917 118 jeremybenn
  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3918 91 jeremybenn
 
3919
 
3920
 
3921
# Check we have the execute source file present for sanity. Specify a separate
3922
# config for the testsuite OR1K specific programs, since we'll need different
3923
# tool chain there (the OpenRISC one, rather than the native one).
3924
 
3925
ac_aux_dir=
3926
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3927 118 jeremybenn
  for ac_t in install-sh install.sh shtool; do
3928
    if test -f "$ac_dir/$ac_t"; then
3929
      ac_aux_dir=$ac_dir
3930
      ac_install_sh="$ac_aux_dir/$ac_t -c"
3931
      break 2
3932
    fi
3933
  done
3934 91 jeremybenn
done
3935
if test -z "$ac_aux_dir"; then
3936 118 jeremybenn
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3937 91 jeremybenn
fi
3938
 
3939
# These three variables are undocumented and unsupported,
3940
# and are intended to be withdrawn in a future Autoconf release.
3941
# They can cause serious problems if a builder's source tree is in a directory
3942
# whose full name contains unusual characters.
3943
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3944
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3945
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3946
 
3947
 
3948
 
3949
 
3950
subdirs="$subdirs testsuite/test-code-or1k"
3951
 
3952
 
3953
# Make sure we can run config.sub.
3954
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3955 118 jeremybenn
  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3956 91 jeremybenn
 
3957 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3958 91 jeremybenn
$as_echo_n "checking build system type... " >&6; }
3959 118 jeremybenn
if test "${ac_cv_build+set}" = set; then :
3960 91 jeremybenn
  $as_echo_n "(cached) " >&6
3961
else
3962
  ac_build_alias=$build_alias
3963
test "x$ac_build_alias" = x &&
3964
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3965
test "x$ac_build_alias" = x &&
3966 118 jeremybenn
  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3967 91 jeremybenn
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3968 118 jeremybenn
  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3969 91 jeremybenn
 
3970
fi
3971 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3972 91 jeremybenn
$as_echo "$ac_cv_build" >&6; }
3973
case $ac_cv_build in
3974
*-*-*) ;;
3975 118 jeremybenn
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3976 91 jeremybenn
esac
3977
build=$ac_cv_build
3978
ac_save_IFS=$IFS; IFS='-'
3979
set x $ac_cv_build
3980
shift
3981
build_cpu=$1
3982
build_vendor=$2
3983
shift; shift
3984
# Remember, the first character of IFS is used to create $*,
3985
# except with old shells:
3986
build_os=$*
3987
IFS=$ac_save_IFS
3988
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3989
 
3990
 
3991 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3992 91 jeremybenn
$as_echo_n "checking host system type... " >&6; }
3993 118 jeremybenn
if test "${ac_cv_host+set}" = set; then :
3994 91 jeremybenn
  $as_echo_n "(cached) " >&6
3995
else
3996
  if test "x$host_alias" = x; then
3997
  ac_cv_host=$ac_cv_build
3998
else
3999
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4000 118 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4001 91 jeremybenn
fi
4002
 
4003
fi
4004 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4005 91 jeremybenn
$as_echo "$ac_cv_host" >&6; }
4006
case $ac_cv_host in
4007
*-*-*) ;;
4008 118 jeremybenn
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4009 91 jeremybenn
esac
4010
host=$ac_cv_host
4011
ac_save_IFS=$IFS; IFS='-'
4012
set x $ac_cv_host
4013
shift
4014
host_cpu=$1
4015
host_vendor=$2
4016
shift; shift
4017
# Remember, the first character of IFS is used to create $*,
4018
# except with old shells:
4019
host_os=$*
4020
IFS=$ac_save_IFS
4021
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4022
 
4023
 
4024 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4025 91 jeremybenn
$as_echo_n "checking target system type... " >&6; }
4026 118 jeremybenn
if test "${ac_cv_target+set}" = set; then :
4027 91 jeremybenn
  $as_echo_n "(cached) " >&6
4028
else
4029
  if test "x$target_alias" = x; then
4030
  ac_cv_target=$ac_cv_host
4031
else
4032
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4033 118 jeremybenn
    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4034 91 jeremybenn
fi
4035
 
4036
fi
4037 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4038 91 jeremybenn
$as_echo "$ac_cv_target" >&6; }
4039
case $ac_cv_target in
4040
*-*-*) ;;
4041 118 jeremybenn
*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4042 91 jeremybenn
esac
4043
target=$ac_cv_target
4044
ac_save_IFS=$IFS; IFS='-'
4045
set x $ac_cv_target
4046
shift
4047
target_cpu=$1
4048
target_vendor=$2
4049
shift; shift
4050
# Remember, the first character of IFS is used to create $*,
4051
# except with old shells:
4052
target_os=$*
4053
IFS=$ac_save_IFS
4054
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4055
 
4056
 
4057
# The aliases save the names the user supplied, while $host etc.
4058
# will get canonicalized.
4059
test -n "$target_alias" &&
4060
  test "$program_prefix$program_suffix$program_transform_name" = \
4061
    NONENONEs,x,x, &&
4062
  program_prefix=${target_alias}-
4063
case `pwd` in
4064
  *\ * | *\     *)
4065 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4066 91 jeremybenn
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4067
esac
4068
 
4069
 
4070
 
4071 96 jeremybenn
macro_version='2.2.6b'
4072
macro_revision='1.3017'
4073 91 jeremybenn
 
4074
 
4075
 
4076
 
4077
 
4078
 
4079
 
4080
 
4081
 
4082
 
4083
 
4084
 
4085
 
4086
ltmain="$ac_aux_dir/ltmain.sh"
4087
 
4088 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4089 91 jeremybenn
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4090 118 jeremybenn
if test "${ac_cv_path_SED+set}" = set; then :
4091 91 jeremybenn
  $as_echo_n "(cached) " >&6
4092
else
4093
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4094
     for ac_i in 1 2 3 4 5 6 7; do
4095
       ac_script="$ac_script$as_nl$ac_script"
4096
     done
4097
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4098 118 jeremybenn
     { ac_script=; unset ac_script;}
4099 91 jeremybenn
     if test -z "$SED"; then
4100
  ac_path_SED_found=false
4101
  # Loop through the user's path and test for each of PROGNAME-LIST
4102
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103
for as_dir in $PATH
4104
do
4105
  IFS=$as_save_IFS
4106
  test -z "$as_dir" && as_dir=.
4107 118 jeremybenn
    for ac_prog in sed gsed; do
4108 91 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4109
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4110
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4111
# Check for GNU ac_path_SED and select it if it is found.
4112
  # Check for GNU $ac_path_SED
4113
case `"$ac_path_SED" --version 2>&1` in
4114
*GNU*)
4115
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4116
*)
4117
  ac_count=0
4118
  $as_echo_n 0123456789 >"conftest.in"
4119
  while :
4120
  do
4121
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4122
    mv "conftest.tmp" "conftest.in"
4123
    cp "conftest.in" "conftest.nl"
4124
    $as_echo '' >> "conftest.nl"
4125
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127 118 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4128 91 jeremybenn
    if test $ac_count -gt ${ac_path_SED_max-0}; then
4129
      # Best one so far, save it but keep looking for a better one
4130
      ac_cv_path_SED="$ac_path_SED"
4131
      ac_path_SED_max=$ac_count
4132
    fi
4133
    # 10*(2^10) chars as input seems more than enough
4134
    test $ac_count -gt 10 && break
4135
  done
4136
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137
esac
4138
 
4139
      $ac_path_SED_found && break 3
4140
    done
4141
  done
4142 118 jeremybenn
  done
4143 91 jeremybenn
IFS=$as_save_IFS
4144
  if test -z "$ac_cv_path_SED"; then
4145 118 jeremybenn
    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4146 91 jeremybenn
  fi
4147
else
4148
  ac_cv_path_SED=$SED
4149
fi
4150
 
4151
fi
4152 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4153 91 jeremybenn
$as_echo "$ac_cv_path_SED" >&6; }
4154
 SED="$ac_cv_path_SED"
4155
  rm -f conftest.sed
4156
 
4157
test -z "$SED" && SED=sed
4158
Xsed="$SED -e 1s/^X//"
4159
 
4160
 
4161
 
4162
 
4163
 
4164
 
4165
 
4166
 
4167
 
4168
 
4169
 
4170 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4171 82 jeremybenn
$as_echo_n "checking for fgrep... " >&6; }
4172 118 jeremybenn
if test "${ac_cv_path_FGREP+set}" = set; then :
4173 82 jeremybenn
  $as_echo_n "(cached) " >&6
4174 19 jeremybenn
else
4175 82 jeremybenn
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4176
   then ac_cv_path_FGREP="$GREP -F"
4177
   else
4178
     if test -z "$FGREP"; then
4179
  ac_path_FGREP_found=false
4180
  # Loop through the user's path and test for each of PROGNAME-LIST
4181
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4183
do
4184
  IFS=$as_save_IFS
4185
  test -z "$as_dir" && as_dir=.
4186 118 jeremybenn
    for ac_prog in fgrep; do
4187 82 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4188
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4189
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4190
# Check for GNU ac_path_FGREP and select it if it is found.
4191
  # Check for GNU $ac_path_FGREP
4192
case `"$ac_path_FGREP" --version 2>&1` in
4193
*GNU*)
4194
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4195
*)
4196
  ac_count=0
4197
  $as_echo_n 0123456789 >"conftest.in"
4198
  while :
4199
  do
4200
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4201
    mv "conftest.tmp" "conftest.in"
4202
    cp "conftest.in" "conftest.nl"
4203
    $as_echo 'FGREP' >> "conftest.nl"
4204
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206 118 jeremybenn
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4207 82 jeremybenn
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4208
      # Best one so far, save it but keep looking for a better one
4209
      ac_cv_path_FGREP="$ac_path_FGREP"
4210
      ac_path_FGREP_max=$ac_count
4211
    fi
4212
    # 10*(2^10) chars as input seems more than enough
4213
    test $ac_count -gt 10 && break
4214
  done
4215
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216
esac
4217
 
4218
      $ac_path_FGREP_found && break 3
4219
    done
4220
  done
4221 118 jeremybenn
  done
4222 82 jeremybenn
IFS=$as_save_IFS
4223
  if test -z "$ac_cv_path_FGREP"; then
4224 118 jeremybenn
    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4225 82 jeremybenn
  fi
4226
else
4227
  ac_cv_path_FGREP=$FGREP
4228 19 jeremybenn
fi
4229
 
4230
   fi
4231
fi
4232 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4233 82 jeremybenn
$as_echo "$ac_cv_path_FGREP" >&6; }
4234
 FGREP="$ac_cv_path_FGREP"
4235 19 jeremybenn
 
4236
 
4237 82 jeremybenn
test -z "$GREP" && GREP=grep
4238 19 jeremybenn
 
4239 82 jeremybenn
 
4240
 
4241
 
4242
 
4243
 
4244
 
4245
 
4246
 
4247
 
4248
 
4249
 
4250
 
4251
 
4252
 
4253
 
4254
 
4255
 
4256
 
4257 19 jeremybenn
# Check whether --with-gnu-ld was given.
4258 118 jeremybenn
if test "${with_gnu_ld+set}" = set; then :
4259 19 jeremybenn
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4260
else
4261
  with_gnu_ld=no
4262
fi
4263
 
4264
ac_prog=ld
4265
if test "$GCC" = yes; then
4266
  # Check if gcc -print-prog-name=ld gives a path.
4267 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4268 82 jeremybenn
$as_echo_n "checking for ld used by $CC... " >&6; }
4269 19 jeremybenn
  case $host in
4270
  *-*-mingw*)
4271
    # gcc leaves a trailing carriage return which upsets mingw
4272
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4273
  *)
4274
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4275
  esac
4276
  case $ac_prog in
4277
    # Accept absolute paths.
4278
    [\\/]* | ?:[\\/]*)
4279
      re_direlt='/[^/][^/]*/\.\./'
4280
      # Canonicalize the pathname of ld
4281 82 jeremybenn
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4282
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4283
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4284 19 jeremybenn
      done
4285
      test -z "$LD" && LD="$ac_prog"
4286
      ;;
4287
  "")
4288
    # If it fails, then pretend we aren't using GCC.
4289
    ac_prog=ld
4290
    ;;
4291
  *)
4292
    # If it is relative, then search for the first ld in PATH.
4293
    with_gnu_ld=unknown
4294
    ;;
4295
  esac
4296
elif test "$with_gnu_ld" = yes; then
4297 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4298 82 jeremybenn
$as_echo_n "checking for GNU ld... " >&6; }
4299 19 jeremybenn
else
4300 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4301 82 jeremybenn
$as_echo_n "checking for non-GNU ld... " >&6; }
4302 19 jeremybenn
fi
4303 118 jeremybenn
if test "${lt_cv_path_LD+set}" = set; then :
4304 82 jeremybenn
  $as_echo_n "(cached) " >&6
4305 19 jeremybenn
else
4306
  if test -z "$LD"; then
4307
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4308
  for ac_dir in $PATH; do
4309
    IFS="$lt_save_ifs"
4310
    test -z "$ac_dir" && ac_dir=.
4311
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4312
      lt_cv_path_LD="$ac_dir/$ac_prog"
4313
      # Check to see if the program is GNU ld.  I'd rather use --version,
4314
      # but apparently some variants of GNU ld only accept -v.
4315
      # Break only if it was the GNU/non-GNU ld that we prefer.
4316
      case `"$lt_cv_path_LD" -v 2>&1 
4317
      *GNU* | *'with BFD'*)
4318
        test "$with_gnu_ld" != no && break
4319
        ;;
4320
      *)
4321
        test "$with_gnu_ld" != yes && break
4322
        ;;
4323
      esac
4324
    fi
4325
  done
4326
  IFS="$lt_save_ifs"
4327
else
4328
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4329
fi
4330
fi
4331
 
4332
LD="$lt_cv_path_LD"
4333
if test -n "$LD"; then
4334 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4335 82 jeremybenn
$as_echo "$LD" >&6; }
4336 19 jeremybenn
else
4337 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 82 jeremybenn
$as_echo "no" >&6; }
4339 19 jeremybenn
fi
4340 118 jeremybenn
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4342 82 jeremybenn
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4343 118 jeremybenn
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4344 82 jeremybenn
  $as_echo_n "(cached) " >&6
4345 19 jeremybenn
else
4346
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4347
case `$LD -v 2>&1 
4348
*GNU* | *'with BFD'*)
4349
  lt_cv_prog_gnu_ld=yes
4350
  ;;
4351
*)
4352
  lt_cv_prog_gnu_ld=no
4353
  ;;
4354
esac
4355
fi
4356 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4357 82 jeremybenn
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4358 19 jeremybenn
with_gnu_ld=$lt_cv_prog_gnu_ld
4359
 
4360
 
4361
 
4362 82 jeremybenn
 
4363
 
4364
 
4365
 
4366
 
4367
 
4368 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4369 82 jeremybenn
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4370 118 jeremybenn
if test "${lt_cv_path_NM+set}" = set; then :
4371 82 jeremybenn
  $as_echo_n "(cached) " >&6
4372 19 jeremybenn
else
4373
  if test -n "$NM"; then
4374
  # Let the user override the test.
4375
  lt_cv_path_NM="$NM"
4376
else
4377
  lt_nm_to_check="${ac_tool_prefix}nm"
4378
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4379
    lt_nm_to_check="$lt_nm_to_check nm"
4380
  fi
4381
  for lt_tmp_nm in $lt_nm_to_check; do
4382
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4383
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4384
      IFS="$lt_save_ifs"
4385
      test -z "$ac_dir" && ac_dir=.
4386
      tmp_nm="$ac_dir/$lt_tmp_nm"
4387
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4388
        # Check to see if the nm accepts a BSD-compat flag.
4389
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4390
        #   nm: unknown option "B" ignored
4391
        # Tru64's nm complains that /dev/null is an invalid object file
4392
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4393
        */dev/null* | *'Invalid file or object type'*)
4394
          lt_cv_path_NM="$tmp_nm -B"
4395
          break
4396
          ;;
4397
        *)
4398
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4399
          */dev/null*)
4400
            lt_cv_path_NM="$tmp_nm -p"
4401
            break
4402
            ;;
4403
          *)
4404
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4405
            continue # so that we can try to find one that supports BSD flags
4406
            ;;
4407
          esac
4408
          ;;
4409
        esac
4410
      fi
4411
    done
4412
    IFS="$lt_save_ifs"
4413
  done
4414 82 jeremybenn
  : ${lt_cv_path_NM=no}
4415 19 jeremybenn
fi
4416
fi
4417 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4418 82 jeremybenn
$as_echo "$lt_cv_path_NM" >&6; }
4419
if test "$lt_cv_path_NM" != "no"; then
4420
  NM="$lt_cv_path_NM"
4421
else
4422
  # Didn't find any BSD compatible name lister, look for dumpbin.
4423
  if test -n "$ac_tool_prefix"; then
4424
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4425
  do
4426
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4427
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4428 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4430 118 jeremybenn
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4431 82 jeremybenn
  $as_echo_n "(cached) " >&6
4432
else
4433
  if test -n "$DUMPBIN"; then
4434
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4435
else
4436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437
for as_dir in $PATH
4438
do
4439
  IFS=$as_save_IFS
4440
  test -z "$as_dir" && as_dir=.
4441 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4442 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4444 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 82 jeremybenn
    break 2
4446
  fi
4447
done
4448 118 jeremybenn
  done
4449 82 jeremybenn
IFS=$as_save_IFS
4450 19 jeremybenn
 
4451 82 jeremybenn
fi
4452
fi
4453
DUMPBIN=$ac_cv_prog_DUMPBIN
4454
if test -n "$DUMPBIN"; then
4455 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4456 82 jeremybenn
$as_echo "$DUMPBIN" >&6; }
4457
else
4458 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 82 jeremybenn
$as_echo "no" >&6; }
4460
fi
4461
 
4462
 
4463
    test -n "$DUMPBIN" && break
4464
  done
4465
fi
4466
if test -z "$DUMPBIN"; then
4467
  ac_ct_DUMPBIN=$DUMPBIN
4468
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4469
do
4470
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4471
set dummy $ac_prog; ac_word=$2
4472 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4474 118 jeremybenn
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4475 82 jeremybenn
  $as_echo_n "(cached) " >&6
4476
else
4477
  if test -n "$ac_ct_DUMPBIN"; then
4478
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4479
else
4480
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481
for as_dir in $PATH
4482
do
4483
  IFS=$as_save_IFS
4484
  test -z "$as_dir" && as_dir=.
4485 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4486 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4487
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4488 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 82 jeremybenn
    break 2
4490
  fi
4491
done
4492 118 jeremybenn
  done
4493 82 jeremybenn
IFS=$as_save_IFS
4494
 
4495
fi
4496
fi
4497
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4498
if test -n "$ac_ct_DUMPBIN"; then
4499 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4500 82 jeremybenn
$as_echo "$ac_ct_DUMPBIN" >&6; }
4501
else
4502 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 82 jeremybenn
$as_echo "no" >&6; }
4504
fi
4505
 
4506
 
4507
  test -n "$ac_ct_DUMPBIN" && break
4508
done
4509
 
4510
  if test "x$ac_ct_DUMPBIN" = x; then
4511
    DUMPBIN=":"
4512
  else
4513
    case $cross_compiling:$ac_tool_warned in
4514
yes:)
4515 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4516 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4517
ac_tool_warned=yes ;;
4518
esac
4519
    DUMPBIN=$ac_ct_DUMPBIN
4520
  fi
4521
fi
4522
 
4523
 
4524
  if test "$DUMPBIN" != ":"; then
4525
    NM="$DUMPBIN"
4526
  fi
4527
fi
4528
test -z "$NM" && NM=nm
4529
 
4530
 
4531
 
4532
 
4533
 
4534
 
4535 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4536 82 jeremybenn
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4537 118 jeremybenn
if test "${lt_cv_nm_interface+set}" = set; then :
4538 82 jeremybenn
  $as_echo_n "(cached) " >&6
4539
else
4540
  lt_cv_nm_interface="BSD nm"
4541
  echo "int some_variable = 0;" > conftest.$ac_ext
4542 118 jeremybenn
  (eval echo "\"\$as_me:4542: $ac_compile\"" >&5)
4543 82 jeremybenn
  (eval "$ac_compile" 2>conftest.err)
4544
  cat conftest.err >&5
4545 118 jeremybenn
  (eval echo "\"\$as_me:4545: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4546 82 jeremybenn
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4547
  cat conftest.err >&5
4548 118 jeremybenn
  (eval echo "\"\$as_me:4548: output\"" >&5)
4549 82 jeremybenn
  cat conftest.out >&5
4550
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4551
    lt_cv_nm_interface="MS dumpbin"
4552
  fi
4553
  rm -f conftest*
4554
fi
4555 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4556 82 jeremybenn
$as_echo "$lt_cv_nm_interface" >&6; }
4557
 
4558 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4559 82 jeremybenn
$as_echo_n "checking whether ln -s works... " >&6; }
4560 19 jeremybenn
LN_S=$as_ln_s
4561
if test "$LN_S" = "ln -s"; then
4562 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563 82 jeremybenn
$as_echo "yes" >&6; }
4564 19 jeremybenn
else
4565 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4566 82 jeremybenn
$as_echo "no, using $LN_S" >&6; }
4567 19 jeremybenn
fi
4568
 
4569 82 jeremybenn
# find the maximum length of command line arguments
4570 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4571 82 jeremybenn
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4572 118 jeremybenn
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4573 82 jeremybenn
  $as_echo_n "(cached) " >&6
4574
else
4575
    i=0
4576
  teststring="ABCD"
4577
 
4578
  case $build_os in
4579
  msdosdjgpp*)
4580
    # On DJGPP, this test can blow up pretty badly due to problems in libc
4581
    # (any single argument exceeding 2000 bytes causes a buffer overrun
4582
    # during glob expansion).  Even if it were fixed, the result of this
4583
    # check would be larger than it should be.
4584
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4585
    ;;
4586
 
4587
  gnu*)
4588
    # Under GNU Hurd, this test is not required because there is
4589
    # no limit to the length of command line arguments.
4590
    # Libtool will interpret -1 as no limit whatsoever
4591
    lt_cv_sys_max_cmd_len=-1;
4592
    ;;
4593
 
4594
  cygwin* | mingw* | cegcc*)
4595
    # On Win9x/ME, this test blows up -- it succeeds, but takes
4596
    # about 5 minutes as the teststring grows exponentially.
4597
    # Worse, since 9x/ME are not pre-emptively multitasking,
4598
    # you end up with a "frozen" computer, even though with patience
4599
    # the test eventually succeeds (with a max line length of 256k).
4600
    # Instead, let's just punt: use the minimum linelength reported by
4601
    # all of the supported platforms: 8192 (on NT/2K/XP).
4602
    lt_cv_sys_max_cmd_len=8192;
4603
    ;;
4604
 
4605
  amigaos*)
4606
    # On AmigaOS with pdksh, this test takes hours, literally.
4607
    # So we just punt and use a minimum line length of 8192.
4608
    lt_cv_sys_max_cmd_len=8192;
4609
    ;;
4610
 
4611
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4612
    # This has been around since 386BSD, at least.  Likely further.
4613
    if test -x /sbin/sysctl; then
4614
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4615
    elif test -x /usr/sbin/sysctl; then
4616
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4617
    else
4618
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4619
    fi
4620
    # And add a safety zone
4621
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4622
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4623
    ;;
4624
 
4625
  interix*)
4626
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4627
    lt_cv_sys_max_cmd_len=196608
4628
    ;;
4629
 
4630
  osf*)
4631
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4632
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4633
    # nice to cause kernel panics so lets avoid the loop below.
4634
    # First set a reasonable default.
4635
    lt_cv_sys_max_cmd_len=16384
4636
    #
4637
    if test -x /sbin/sysconfig; then
4638
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4639
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4640
      esac
4641
    fi
4642
    ;;
4643
  sco3.2v5*)
4644
    lt_cv_sys_max_cmd_len=102400
4645
    ;;
4646
  sysv5* | sco5v6* | sysv4.2uw2*)
4647
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4648
    if test -n "$kargmax"; then
4649
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4650
    else
4651
      lt_cv_sys_max_cmd_len=32768
4652
    fi
4653
    ;;
4654
  *)
4655
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4656
    if test -n "$lt_cv_sys_max_cmd_len"; then
4657
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4658
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4659
    else
4660
      # Make teststring a little bigger before we do anything with it.
4661
      # a 1K string should be a reasonable start.
4662
      for i in 1 2 3 4 5 6 7 8 ; do
4663
        teststring=$teststring$teststring
4664
      done
4665
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4666
      # If test is not a shell built-in, we'll probably end up computing a
4667
      # maximum length that is only half of the actual maximum length, but
4668
      # we can't tell.
4669
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4670
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4671
              test $i != 17 # 1/2 MB should be enough
4672
      do
4673
        i=`expr $i + 1`
4674
        teststring=$teststring$teststring
4675
      done
4676
      # Only check the string length outside the loop.
4677
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4678
      teststring=
4679
      # Add a significant safety factor because C++ compilers can tack on
4680
      # massive amounts of additional arguments before passing them to the
4681
      # linker.  It appears as though 1/2 is a usable value.
4682
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4683
    fi
4684
    ;;
4685
  esac
4686
 
4687
fi
4688
 
4689
if test -n $lt_cv_sys_max_cmd_len ; then
4690 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4691 82 jeremybenn
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4692
else
4693 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4694 82 jeremybenn
$as_echo "none" >&6; }
4695
fi
4696
max_cmd_len=$lt_cv_sys_max_cmd_len
4697
 
4698
 
4699
 
4700
 
4701
 
4702
 
4703
: ${CP="cp -f"}
4704
: ${MV="mv -f"}
4705
: ${RM="rm -f"}
4706
 
4707 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4708 82 jeremybenn
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4709
# Try some XSI features
4710
xsi_shell=no
4711
( _lt_dummy="a/b/c"
4712
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4713
      = c,a/b,, \
4714
    && eval 'test $(( 1 + 1 )) -eq 2 \
4715
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4716
  && xsi_shell=yes
4717 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4718 82 jeremybenn
$as_echo "$xsi_shell" >&6; }
4719
 
4720
 
4721 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4722 82 jeremybenn
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4723
lt_shell_append=no
4724
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4725
    >/dev/null 2>&1 \
4726
  && lt_shell_append=yes
4727 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4728 82 jeremybenn
$as_echo "$lt_shell_append" >&6; }
4729
 
4730
 
4731
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4732
  lt_unset=unset
4733
else
4734
  lt_unset=false
4735
fi
4736
 
4737
 
4738
 
4739
 
4740
 
4741
# test EBCDIC or ASCII
4742
case `echo X|tr X '\101'` in
4743
 A) # ASCII based system
4744
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4745
  lt_SP2NL='tr \040 \012'
4746
  lt_NL2SP='tr \015\012 \040\040'
4747
  ;;
4748
 *) # EBCDIC based system
4749
  lt_SP2NL='tr \100 \n'
4750
  lt_NL2SP='tr \r\n \100\100'
4751
  ;;
4752
esac
4753
 
4754
 
4755
 
4756
 
4757
 
4758
 
4759
 
4760
 
4761
 
4762 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4763 82 jeremybenn
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4764 118 jeremybenn
if test "${lt_cv_ld_reload_flag+set}" = set; then :
4765 82 jeremybenn
  $as_echo_n "(cached) " >&6
4766
else
4767
  lt_cv_ld_reload_flag='-r'
4768
fi
4769 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4770 82 jeremybenn
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4771
reload_flag=$lt_cv_ld_reload_flag
4772
case $reload_flag in
4773
"" | " "*) ;;
4774
*) reload_flag=" $reload_flag" ;;
4775
esac
4776
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4777
case $host_os in
4778
  darwin*)
4779
    if test "$GCC" = yes; then
4780
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4781
    else
4782
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4783
    fi
4784
    ;;
4785
esac
4786
 
4787
 
4788
 
4789
 
4790
 
4791
 
4792
 
4793
 
4794
 
4795
if test -n "$ac_tool_prefix"; then
4796
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4797
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4798 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4800 118 jeremybenn
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4801 82 jeremybenn
  $as_echo_n "(cached) " >&6
4802
else
4803
  if test -n "$OBJDUMP"; then
4804
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4805
else
4806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807
for as_dir in $PATH
4808
do
4809
  IFS=$as_save_IFS
4810
  test -z "$as_dir" && as_dir=.
4811 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4812 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4814 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 82 jeremybenn
    break 2
4816
  fi
4817
done
4818 118 jeremybenn
  done
4819 82 jeremybenn
IFS=$as_save_IFS
4820
 
4821
fi
4822
fi
4823
OBJDUMP=$ac_cv_prog_OBJDUMP
4824
if test -n "$OBJDUMP"; then
4825 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4826 82 jeremybenn
$as_echo "$OBJDUMP" >&6; }
4827
else
4828 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 82 jeremybenn
$as_echo "no" >&6; }
4830
fi
4831
 
4832
 
4833
fi
4834
if test -z "$ac_cv_prog_OBJDUMP"; then
4835
  ac_ct_OBJDUMP=$OBJDUMP
4836
  # Extract the first word of "objdump", so it can be a program name with args.
4837
set dummy objdump; ac_word=$2
4838 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4839 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
4840 118 jeremybenn
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4841 82 jeremybenn
  $as_echo_n "(cached) " >&6
4842
else
4843
  if test -n "$ac_ct_OBJDUMP"; then
4844
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4845
else
4846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847
for as_dir in $PATH
4848
do
4849
  IFS=$as_save_IFS
4850
  test -z "$as_dir" && as_dir=.
4851 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
4852 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4854 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4855 82 jeremybenn
    break 2
4856
  fi
4857
done
4858 118 jeremybenn
  done
4859 82 jeremybenn
IFS=$as_save_IFS
4860
 
4861
fi
4862
fi
4863
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4864
if test -n "$ac_ct_OBJDUMP"; then
4865 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4866 82 jeremybenn
$as_echo "$ac_ct_OBJDUMP" >&6; }
4867
else
4868 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869 82 jeremybenn
$as_echo "no" >&6; }
4870
fi
4871
 
4872
  if test "x$ac_ct_OBJDUMP" = x; then
4873
    OBJDUMP="false"
4874
  else
4875
    case $cross_compiling:$ac_tool_warned in
4876
yes:)
4877 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879
ac_tool_warned=yes ;;
4880
esac
4881
    OBJDUMP=$ac_ct_OBJDUMP
4882
  fi
4883
else
4884
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4885
fi
4886
 
4887
test -z "$OBJDUMP" && OBJDUMP=objdump
4888
 
4889
 
4890
 
4891
 
4892
 
4893
 
4894
 
4895
 
4896
 
4897 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4898 82 jeremybenn
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4899 118 jeremybenn
if test "${lt_cv_deplibs_check_method+set}" = set; then :
4900 82 jeremybenn
  $as_echo_n "(cached) " >&6
4901 19 jeremybenn
else
4902
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4903
lt_cv_file_magic_test_file=
4904
lt_cv_deplibs_check_method='unknown'
4905
# Need to set the preceding variable on all platforms that support
4906
# interlibrary dependencies.
4907
# 'none' -- dependencies not supported.
4908
# `unknown' -- same as none, but documents that we really don't know.
4909
# 'pass_all' -- all dependencies passed with no checks.
4910
# 'test_compile' -- check by making test program.
4911
# 'file_magic [[regex]]' -- check by looking for files in library path
4912
# which responds to the $file_magic_cmd with a given extended regex.
4913
# If you have `file' or equivalent on your system and you're not sure
4914
# whether `pass_all' will *always* work, you probably want this one.
4915
 
4916
case $host_os in
4917 82 jeremybenn
aix[4-9]*)
4918 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
4919
  ;;
4920
 
4921
beos*)
4922
  lt_cv_deplibs_check_method=pass_all
4923
  ;;
4924
 
4925
bsdi[45]*)
4926
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4927
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4928
  lt_cv_file_magic_test_file=/shlib/libc.so
4929
  ;;
4930
 
4931
cygwin*)
4932
  # func_win32_libid is a shell function defined in ltmain.sh
4933
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4934
  lt_cv_file_magic_cmd='func_win32_libid'
4935
  ;;
4936
 
4937
mingw* | pw32*)
4938
  # Base MSYS/MinGW do not provide the 'file' command needed by
4939
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4940
  # unless we find 'file', for example because we are cross-compiling.
4941
  if ( file / ) >/dev/null 2>&1; then
4942
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943
    lt_cv_file_magic_cmd='func_win32_libid'
4944
  else
4945
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4946
    lt_cv_file_magic_cmd='$OBJDUMP -f'
4947
  fi
4948
  ;;
4949
 
4950 82 jeremybenn
cegcc)
4951
  # use the weaker test based on 'objdump'. See mingw*.
4952
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4953
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4954
  ;;
4955
 
4956 19 jeremybenn
darwin* | rhapsody*)
4957
  lt_cv_deplibs_check_method=pass_all
4958
  ;;
4959
 
4960
freebsd* | dragonfly*)
4961 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4962 19 jeremybenn
    case $host_cpu in
4963
    i*86 )
4964
      # Not sure whether the presence of OpenBSD here was a mistake.
4965
      # Let's accept both of them until this is cleared up.
4966
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4967
      lt_cv_file_magic_cmd=/usr/bin/file
4968
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4969
      ;;
4970
    esac
4971
  else
4972
    lt_cv_deplibs_check_method=pass_all
4973
  fi
4974
  ;;
4975
 
4976
gnu*)
4977
  lt_cv_deplibs_check_method=pass_all
4978
  ;;
4979
 
4980
hpux10.20* | hpux11*)
4981
  lt_cv_file_magic_cmd=/usr/bin/file
4982
  case $host_cpu in
4983
  ia64*)
4984
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4985
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4986
    ;;
4987
  hppa*64*)
4988
    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]'
4989
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4990
    ;;
4991
  *)
4992
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4993
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4994
    ;;
4995
  esac
4996
  ;;
4997
 
4998
interix[3-9]*)
4999
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5000
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5001
  ;;
5002
 
5003
irix5* | irix6* | nonstopux*)
5004
  case $LD in
5005
  *-32|*"-32 ") libmagic=32-bit;;
5006
  *-n32|*"-n32 ") libmagic=N32;;
5007
  *-64|*"-64 ") libmagic=64-bit;;
5008
  *) libmagic=never-match;;
5009
  esac
5010
  lt_cv_deplibs_check_method=pass_all
5011
  ;;
5012
 
5013
# This must be Linux ELF.
5014
linux* | k*bsd*-gnu)
5015
  lt_cv_deplibs_check_method=pass_all
5016
  ;;
5017
 
5018 93 jeremybenn
netbsd* | netbsdelf*-gnu)
5019 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5020 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5021
  else
5022
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5023
  fi
5024
  ;;
5025
 
5026
newos6*)
5027
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5028
  lt_cv_file_magic_cmd=/usr/bin/file
5029
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5030
  ;;
5031
 
5032 82 jeremybenn
*nto* | *qnx*)
5033
  lt_cv_deplibs_check_method=pass_all
5034 19 jeremybenn
  ;;
5035
 
5036
openbsd*)
5037 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5038 19 jeremybenn
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5039
  else
5040
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5041
  fi
5042
  ;;
5043
 
5044
osf3* | osf4* | osf5*)
5045
  lt_cv_deplibs_check_method=pass_all
5046
  ;;
5047
 
5048
rdos*)
5049
  lt_cv_deplibs_check_method=pass_all
5050
  ;;
5051
 
5052
solaris*)
5053
  lt_cv_deplibs_check_method=pass_all
5054
  ;;
5055
 
5056 82 jeremybenn
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5057
  lt_cv_deplibs_check_method=pass_all
5058
  ;;
5059
 
5060 19 jeremybenn
sysv4 | sysv4.3*)
5061
  case $host_vendor in
5062
  motorola)
5063
    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]'
5064
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5065
    ;;
5066
  ncr)
5067
    lt_cv_deplibs_check_method=pass_all
5068
    ;;
5069
  sequent)
5070
    lt_cv_file_magic_cmd='/bin/file'
5071
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5072
    ;;
5073
  sni)
5074
    lt_cv_file_magic_cmd='/bin/file'
5075
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5076
    lt_cv_file_magic_test_file=/lib/libc.so
5077
    ;;
5078
  siemens)
5079
    lt_cv_deplibs_check_method=pass_all
5080
    ;;
5081
  pc)
5082
    lt_cv_deplibs_check_method=pass_all
5083
    ;;
5084
  esac
5085
  ;;
5086
 
5087 82 jeremybenn
tpf*)
5088 19 jeremybenn
  lt_cv_deplibs_check_method=pass_all
5089
  ;;
5090
esac
5091
 
5092
fi
5093 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5094 82 jeremybenn
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5095 19 jeremybenn
file_magic_cmd=$lt_cv_file_magic_cmd
5096
deplibs_check_method=$lt_cv_deplibs_check_method
5097
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5098
 
5099
 
5100
 
5101
 
5102 82 jeremybenn
 
5103
 
5104
 
5105
 
5106
 
5107
 
5108
 
5109
 
5110
if test -n "$ac_tool_prefix"; then
5111
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5112
set dummy ${ac_tool_prefix}ar; ac_word=$2
5113 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5115 118 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
5116 82 jeremybenn
  $as_echo_n "(cached) " >&6
5117
else
5118
  if test -n "$AR"; then
5119
  ac_cv_prog_AR="$AR" # Let the user override the test.
5120
else
5121
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122
for as_dir in $PATH
5123
do
5124
  IFS=$as_save_IFS
5125
  test -z "$as_dir" && as_dir=.
5126 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5127 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128
    ac_cv_prog_AR="${ac_tool_prefix}ar"
5129 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 82 jeremybenn
    break 2
5131
  fi
5132
done
5133 118 jeremybenn
  done
5134 82 jeremybenn
IFS=$as_save_IFS
5135
 
5136
fi
5137
fi
5138
AR=$ac_cv_prog_AR
5139
if test -n "$AR"; then
5140 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5141 82 jeremybenn
$as_echo "$AR" >&6; }
5142
else
5143 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 82 jeremybenn
$as_echo "no" >&6; }
5145
fi
5146
 
5147
 
5148
fi
5149
if test -z "$ac_cv_prog_AR"; then
5150
  ac_ct_AR=$AR
5151
  # Extract the first word of "ar", so it can be a program name with args.
5152
set dummy ar; ac_word=$2
5153 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5155 118 jeremybenn
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5156 82 jeremybenn
  $as_echo_n "(cached) " >&6
5157
else
5158
  if test -n "$ac_ct_AR"; then
5159
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5160
else
5161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162
for as_dir in $PATH
5163
do
5164
  IFS=$as_save_IFS
5165
  test -z "$as_dir" && as_dir=.
5166 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5167 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168
    ac_cv_prog_ac_ct_AR="ar"
5169 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 82 jeremybenn
    break 2
5171
  fi
5172
done
5173 118 jeremybenn
  done
5174 82 jeremybenn
IFS=$as_save_IFS
5175
 
5176
fi
5177
fi
5178
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5179
if test -n "$ac_ct_AR"; then
5180 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5181 82 jeremybenn
$as_echo "$ac_ct_AR" >&6; }
5182
else
5183 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 82 jeremybenn
$as_echo "no" >&6; }
5185
fi
5186
 
5187
  if test "x$ac_ct_AR" = x; then
5188
    AR="false"
5189
  else
5190
    case $cross_compiling:$ac_tool_warned in
5191
yes:)
5192 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194
ac_tool_warned=yes ;;
5195
esac
5196
    AR=$ac_ct_AR
5197
  fi
5198
else
5199
  AR="$ac_cv_prog_AR"
5200
fi
5201
 
5202
test -z "$AR" && AR=ar
5203
test -z "$AR_FLAGS" && AR_FLAGS=cru
5204
 
5205
 
5206
 
5207
 
5208
 
5209
 
5210
 
5211
 
5212
 
5213
 
5214
 
5215
if test -n "$ac_tool_prefix"; then
5216
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5217
set dummy ${ac_tool_prefix}strip; ac_word=$2
5218 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5220 118 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
5221 82 jeremybenn
  $as_echo_n "(cached) " >&6
5222
else
5223
  if test -n "$STRIP"; then
5224
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5225
else
5226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227
for as_dir in $PATH
5228
do
5229
  IFS=$as_save_IFS
5230
  test -z "$as_dir" && as_dir=.
5231 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5232 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5234 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 82 jeremybenn
    break 2
5236
  fi
5237
done
5238 118 jeremybenn
  done
5239 82 jeremybenn
IFS=$as_save_IFS
5240
 
5241
fi
5242
fi
5243
STRIP=$ac_cv_prog_STRIP
5244
if test -n "$STRIP"; then
5245 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5246 82 jeremybenn
$as_echo "$STRIP" >&6; }
5247
else
5248 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 82 jeremybenn
$as_echo "no" >&6; }
5250
fi
5251
 
5252
 
5253
fi
5254
if test -z "$ac_cv_prog_STRIP"; then
5255
  ac_ct_STRIP=$STRIP
5256
  # Extract the first word of "strip", so it can be a program name with args.
5257
set dummy strip; ac_word=$2
5258 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5260 118 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5261 82 jeremybenn
  $as_echo_n "(cached) " >&6
5262
else
5263
  if test -n "$ac_ct_STRIP"; then
5264
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5265
else
5266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267
for as_dir in $PATH
5268
do
5269
  IFS=$as_save_IFS
5270
  test -z "$as_dir" && as_dir=.
5271 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5272 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5273
    ac_cv_prog_ac_ct_STRIP="strip"
5274 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 82 jeremybenn
    break 2
5276
  fi
5277
done
5278 118 jeremybenn
  done
5279 82 jeremybenn
IFS=$as_save_IFS
5280
 
5281
fi
5282
fi
5283
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5284
if test -n "$ac_ct_STRIP"; then
5285 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5286 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
5287
else
5288 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 82 jeremybenn
$as_echo "no" >&6; }
5290
fi
5291
 
5292
  if test "x$ac_ct_STRIP" = x; then
5293
    STRIP=":"
5294
  else
5295
    case $cross_compiling:$ac_tool_warned in
5296
yes:)
5297 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299
ac_tool_warned=yes ;;
5300
esac
5301
    STRIP=$ac_ct_STRIP
5302
  fi
5303
else
5304
  STRIP="$ac_cv_prog_STRIP"
5305
fi
5306
 
5307
test -z "$STRIP" && STRIP=:
5308
 
5309
 
5310
 
5311
 
5312
 
5313
 
5314
if test -n "$ac_tool_prefix"; then
5315
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5316
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5317 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5319 118 jeremybenn
if test "${ac_cv_prog_RANLIB+set}" = set; then :
5320 82 jeremybenn
  $as_echo_n "(cached) " >&6
5321
else
5322
  if test -n "$RANLIB"; then
5323
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5324
else
5325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326
for as_dir in $PATH
5327
do
5328
  IFS=$as_save_IFS
5329
  test -z "$as_dir" && as_dir=.
5330 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5331 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5333 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 82 jeremybenn
    break 2
5335
  fi
5336
done
5337 118 jeremybenn
  done
5338 82 jeremybenn
IFS=$as_save_IFS
5339
 
5340
fi
5341
fi
5342
RANLIB=$ac_cv_prog_RANLIB
5343
if test -n "$RANLIB"; then
5344 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5345 82 jeremybenn
$as_echo "$RANLIB" >&6; }
5346
else
5347 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 82 jeremybenn
$as_echo "no" >&6; }
5349
fi
5350
 
5351
 
5352
fi
5353
if test -z "$ac_cv_prog_RANLIB"; then
5354
  ac_ct_RANLIB=$RANLIB
5355
  # Extract the first word of "ranlib", so it can be a program name with args.
5356
set dummy ranlib; ac_word=$2
5357 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5359 118 jeremybenn
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5360 82 jeremybenn
  $as_echo_n "(cached) " >&6
5361
else
5362
  if test -n "$ac_ct_RANLIB"; then
5363
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364
else
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366
for as_dir in $PATH
5367
do
5368
  IFS=$as_save_IFS
5369
  test -z "$as_dir" && as_dir=.
5370 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5371 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372
    ac_cv_prog_ac_ct_RANLIB="ranlib"
5373 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 82 jeremybenn
    break 2
5375
  fi
5376
done
5377 118 jeremybenn
  done
5378 82 jeremybenn
IFS=$as_save_IFS
5379
 
5380
fi
5381
fi
5382
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383
if test -n "$ac_ct_RANLIB"; then
5384 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5385 82 jeremybenn
$as_echo "$ac_ct_RANLIB" >&6; }
5386
else
5387 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 82 jeremybenn
$as_echo "no" >&6; }
5389
fi
5390
 
5391
  if test "x$ac_ct_RANLIB" = x; then
5392
    RANLIB=":"
5393
  else
5394
    case $cross_compiling:$ac_tool_warned in
5395
yes:)
5396 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398
ac_tool_warned=yes ;;
5399
esac
5400
    RANLIB=$ac_ct_RANLIB
5401
  fi
5402
else
5403
  RANLIB="$ac_cv_prog_RANLIB"
5404
fi
5405
 
5406
test -z "$RANLIB" && RANLIB=:
5407
 
5408
 
5409
 
5410
 
5411
 
5412
 
5413
# Determine commands to create old-style static archives.
5414
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5415
old_postinstall_cmds='chmod 644 $oldlib'
5416
old_postuninstall_cmds=
5417
 
5418
if test -n "$RANLIB"; then
5419
  case $host_os in
5420
  openbsd*)
5421
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5422
    ;;
5423
  *)
5424
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5425
    ;;
5426
  esac
5427
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5428
fi
5429
 
5430
 
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 19 jeremybenn
# If no C compiler was specified, use CC.
5464
LTCC=${LTCC-"$CC"}
5465
 
5466
# If no C compiler flags were specified, use CFLAGS.
5467
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5468
 
5469
# Allow CC to be a program name with arguments.
5470
compiler=$CC
5471
 
5472
 
5473 82 jeremybenn
# Check for command to grab the raw symbol name followed by C symbol from nm.
5474 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5475 82 jeremybenn
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5476 118 jeremybenn
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5477 82 jeremybenn
  $as_echo_n "(cached) " >&6
5478
else
5479
 
5480
# These are sane defaults that work on at least a few old systems.
5481
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5482
 
5483
# Character class describing NM global symbol codes.
5484
symcode='[BCDEGRST]'
5485
 
5486
# Regexp to match symbols that can be accessed directly from C.
5487
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5488
 
5489
# Define system-specific variables.
5490
case $host_os in
5491
aix*)
5492
  symcode='[BCDT]'
5493
  ;;
5494
cygwin* | mingw* | pw32* | cegcc*)
5495
  symcode='[ABCDGISTW]'
5496
  ;;
5497
hpux*)
5498
  if test "$host_cpu" = ia64; then
5499
    symcode='[ABCDEGRST]'
5500
  fi
5501
  ;;
5502
irix* | nonstopux*)
5503
  symcode='[BCDEGRST]'
5504
  ;;
5505
osf*)
5506
  symcode='[BCDEGQRST]'
5507
  ;;
5508
solaris*)
5509
  symcode='[BDRT]'
5510
  ;;
5511
sco3.2v5*)
5512
  symcode='[DT]'
5513
  ;;
5514
sysv4.2uw2*)
5515
  symcode='[DT]'
5516
  ;;
5517
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5518
  symcode='[ABDT]'
5519
  ;;
5520
sysv4)
5521
  symcode='[DFNSTU]'
5522
  ;;
5523
esac
5524
 
5525
# If we're using GNU nm, then use its standard symbol codes.
5526
case `$NM -V 2>&1` in
5527
*GNU* | *'with BFD'*)
5528
  symcode='[ABCDGIRSTW]' ;;
5529
esac
5530
 
5531
# Transform an extracted symbol line into a proper C declaration.
5532
# Some systems (esp. on ia64) link data and code symbols differently,
5533
# so use this general approach.
5534
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5535
 
5536
# Transform an extracted symbol line into symbol name and symbol address
5537
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5538
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'"
5539
 
5540
# Handle CRLF in mingw tool chain
5541
opt_cr=
5542
case $build_os in
5543
mingw*)
5544
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5545
  ;;
5546
esac
5547
 
5548
# Try without a prefix underscore, then with it.
5549
for ac_symprfx in "" "_"; do
5550
 
5551
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5552
  symxfrm="\\1 $ac_symprfx\\2 \\2"
5553
 
5554
  # Write the raw and C identifiers.
5555
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5556
    # Fake it for dumpbin and say T for any non-static function
5557
    # and D for any global variable.
5558
    # Also find C++ and __fastcall symbols from MSVC++,
5559
    # which start with @ or ?.
5560
    lt_cv_sys_global_symbol_pipe="$AWK '"\
5561
"     {last_section=section; section=\$ 3};"\
5562
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5563
"     \$ 0!~/External *\|/{next};"\
5564
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5565
"     {if(hide[section]) next};"\
5566
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5567
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5568
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5569
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5570
"     ' prfx=^$ac_symprfx"
5571
  else
5572
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5573
  fi
5574
 
5575
  # Check to see that the pipe works correctly.
5576
  pipe_works=no
5577
 
5578
  rm -f conftest*
5579
  cat > conftest.$ac_ext <<_LT_EOF
5580
#ifdef __cplusplus
5581
extern "C" {
5582
#endif
5583
char nm_test_var;
5584
void nm_test_func(void);
5585
void nm_test_func(void){}
5586
#ifdef __cplusplus
5587
}
5588
#endif
5589
int main(){nm_test_var='a';nm_test_func();return(0);}
5590
_LT_EOF
5591
 
5592 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5593 82 jeremybenn
  (eval $ac_compile) 2>&5
5594
  ac_status=$?
5595 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5596
  test $ac_status = 0; }; then
5597 82 jeremybenn
    # Now try to grab the symbols.
5598
    nlist=conftest.nm
5599 118 jeremybenn
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5600 82 jeremybenn
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601
  ac_status=$?
5602 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603
  test $ac_status = 0; } && test -s "$nlist"; then
5604 82 jeremybenn
      # Try sorting and uniquifying the output.
5605
      if sort "$nlist" | uniq > "$nlist"T; then
5606
        mv -f "$nlist"T "$nlist"
5607
      else
5608
        rm -f "$nlist"T
5609
      fi
5610
 
5611
      # Make sure that we snagged all the symbols we need.
5612
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5613
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5614
          cat <<_LT_EOF > conftest.$ac_ext
5615
#ifdef __cplusplus
5616
extern "C" {
5617
#endif
5618
 
5619
_LT_EOF
5620
          # Now generate the symbol file.
5621
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5622
 
5623
          cat <<_LT_EOF >> conftest.$ac_ext
5624
 
5625
/* The mapping between symbol names and symbols.  */
5626
const struct {
5627
  const char *name;
5628
  void       *address;
5629
}
5630
lt__PROGRAM__LTX_preloaded_symbols[] =
5631
{
5632
  { "@PROGRAM@", (void *) 0 },
5633
_LT_EOF
5634
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5635
          cat <<\_LT_EOF >> conftest.$ac_ext
5636
  {0, (void *) 0}
5637
};
5638
 
5639
/* This works around a problem in FreeBSD linker */
5640
#ifdef FREEBSD_WORKAROUND
5641
static const void *lt_preloaded_setup() {
5642
  return lt__PROGRAM__LTX_preloaded_symbols;
5643
}
5644
#endif
5645
 
5646
#ifdef __cplusplus
5647
}
5648
#endif
5649
_LT_EOF
5650
          # Now try linking the two files.
5651
          mv conftest.$ac_objext conftstm.$ac_objext
5652
          lt_save_LIBS="$LIBS"
5653
          lt_save_CFLAGS="$CFLAGS"
5654
          LIBS="conftstm.$ac_objext"
5655
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5656 118 jeremybenn
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5657 82 jeremybenn
  (eval $ac_link) 2>&5
5658
  ac_status=$?
5659 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5661 82 jeremybenn
            pipe_works=yes
5662
          fi
5663
          LIBS="$lt_save_LIBS"
5664
          CFLAGS="$lt_save_CFLAGS"
5665
        else
5666
          echo "cannot find nm_test_func in $nlist" >&5
5667
        fi
5668
      else
5669
        echo "cannot find nm_test_var in $nlist" >&5
5670
      fi
5671
    else
5672
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5673
    fi
5674
  else
5675
    echo "$progname: failed program was:" >&5
5676
    cat conftest.$ac_ext >&5
5677
  fi
5678
  rm -rf conftest* conftst*
5679
 
5680
  # Do not use the global_symbol_pipe unless it works.
5681
  if test "$pipe_works" = yes; then
5682
    break
5683
  else
5684
    lt_cv_sys_global_symbol_pipe=
5685
  fi
5686
done
5687
 
5688
fi
5689
 
5690
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5691
  lt_cv_sys_global_symbol_to_cdecl=
5692
fi
5693
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5694 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5695 82 jeremybenn
$as_echo "failed" >&6; }
5696
else
5697 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5698 82 jeremybenn
$as_echo "ok" >&6; }
5699
fi
5700
 
5701
 
5702
 
5703
 
5704
 
5705
 
5706
 
5707
 
5708
 
5709
 
5710
 
5711
 
5712
 
5713
 
5714
 
5715
 
5716
 
5717
 
5718
 
5719
 
5720
 
5721
 
5722 19 jeremybenn
# Check whether --enable-libtool-lock was given.
5723 118 jeremybenn
if test "${enable_libtool_lock+set}" = set; then :
5724 19 jeremybenn
  enableval=$enable_libtool_lock;
5725
fi
5726
 
5727
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5728
 
5729
# Some flags need to be propagated to the compiler or linker for good
5730
# libtool support.
5731
case $host in
5732
ia64-*-hpux*)
5733
  # Find out which ABI we are using.
5734
  echo 'int i;' > conftest.$ac_ext
5735 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5736 19 jeremybenn
  (eval $ac_compile) 2>&5
5737
  ac_status=$?
5738 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5739
  test $ac_status = 0; }; then
5740 19 jeremybenn
    case `/usr/bin/file conftest.$ac_objext` in
5741 82 jeremybenn
      *ELF-32*)
5742
        HPUX_IA64_MODE="32"
5743
        ;;
5744
      *ELF-64*)
5745
        HPUX_IA64_MODE="64"
5746
        ;;
5747 19 jeremybenn
    esac
5748
  fi
5749
  rm -rf conftest*
5750
  ;;
5751
*-*-irix6*)
5752
  # Find out which ABI we are using.
5753 118 jeremybenn
  echo '#line 5753 "configure"' > conftest.$ac_ext
5754
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5755 19 jeremybenn
  (eval $ac_compile) 2>&5
5756
  ac_status=$?
5757 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758
  test $ac_status = 0; }; then
5759 82 jeremybenn
    if test "$lt_cv_prog_gnu_ld" = yes; then
5760
      case `/usr/bin/file conftest.$ac_objext` in
5761
        *32-bit*)
5762
          LD="${LD-ld} -melf32bsmip"
5763
          ;;
5764
        *N32*)
5765
          LD="${LD-ld} -melf32bmipn32"
5766
          ;;
5767
        *64-bit*)
5768
          LD="${LD-ld} -melf64bmip"
5769
        ;;
5770
      esac
5771
    else
5772
      case `/usr/bin/file conftest.$ac_objext` in
5773
        *32-bit*)
5774
          LD="${LD-ld} -32"
5775
          ;;
5776
        *N32*)
5777
          LD="${LD-ld} -n32"
5778
          ;;
5779
        *64-bit*)
5780
          LD="${LD-ld} -64"
5781
          ;;
5782
      esac
5783
    fi
5784 19 jeremybenn
  fi
5785
  rm -rf conftest*
5786
  ;;
5787
 
5788
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5789 82 jeremybenn
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5790 19 jeremybenn
  # Find out which ABI we are using.
5791
  echo 'int i;' > conftest.$ac_ext
5792 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5793 19 jeremybenn
  (eval $ac_compile) 2>&5
5794
  ac_status=$?
5795 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796
  test $ac_status = 0; }; then
5797 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5798 82 jeremybenn
      *32-bit*)
5799
        case $host in
5800
          x86_64-*kfreebsd*-gnu)
5801
            LD="${LD-ld} -m elf_i386_fbsd"
5802
            ;;
5803
          x86_64-*linux*)
5804
            LD="${LD-ld} -m elf_i386"
5805
            ;;
5806
          ppc64-*linux*|powerpc64-*linux*)
5807
            LD="${LD-ld} -m elf32ppclinux"
5808
            ;;
5809
          s390x-*linux*)
5810
            LD="${LD-ld} -m elf_s390"
5811
            ;;
5812
          sparc64-*linux*)
5813
            LD="${LD-ld} -m elf32_sparc"
5814
            ;;
5815
        esac
5816
        ;;
5817
      *64-bit*)
5818
        case $host in
5819
          x86_64-*kfreebsd*-gnu)
5820
            LD="${LD-ld} -m elf_x86_64_fbsd"
5821
            ;;
5822
          x86_64-*linux*)
5823
            LD="${LD-ld} -m elf_x86_64"
5824
            ;;
5825
          ppc*-*linux*|powerpc*-*linux*)
5826
            LD="${LD-ld} -m elf64ppc"
5827
            ;;
5828
          s390*-*linux*|s390*-*tpf*)
5829
            LD="${LD-ld} -m elf64_s390"
5830
            ;;
5831
          sparc*-*linux*)
5832
            LD="${LD-ld} -m elf64_sparc"
5833
            ;;
5834
        esac
5835
        ;;
5836 19 jeremybenn
    esac
5837
  fi
5838
  rm -rf conftest*
5839
  ;;
5840
 
5841
*-*-sco3.2v5*)
5842
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5843
  SAVE_CFLAGS="$CFLAGS"
5844
  CFLAGS="$CFLAGS -belf"
5845 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5846 82 jeremybenn
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5847 118 jeremybenn
if test "${lt_cv_cc_needs_belf+set}" = set; then :
5848 82 jeremybenn
  $as_echo_n "(cached) " >&6
5849 19 jeremybenn
else
5850
  ac_ext=c
5851
ac_cpp='$CPP $CPPFLAGS'
5852
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5855
 
5856 118 jeremybenn
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857 19 jeremybenn
/* end confdefs.h.  */
5858
 
5859
int
5860
main ()
5861
{
5862
 
5863
  ;
5864
  return 0;
5865
}
5866
_ACEOF
5867 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
5868 19 jeremybenn
  lt_cv_cc_needs_belf=yes
5869
else
5870 118 jeremybenn
  lt_cv_cc_needs_belf=no
5871 19 jeremybenn
fi
5872 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
5873
    conftest$ac_exeext conftest.$ac_ext
5874 19 jeremybenn
     ac_ext=c
5875
ac_cpp='$CPP $CPPFLAGS'
5876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879
 
5880
fi
5881 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5882 82 jeremybenn
$as_echo "$lt_cv_cc_needs_belf" >&6; }
5883 19 jeremybenn
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885
    CFLAGS="$SAVE_CFLAGS"
5886
  fi
5887
  ;;
5888
sparc*-*solaris*)
5889
  # Find out which ABI we are using.
5890
  echo 'int i;' > conftest.$ac_ext
5891 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5892 19 jeremybenn
  (eval $ac_compile) 2>&5
5893
  ac_status=$?
5894 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5895
  test $ac_status = 0; }; then
5896 19 jeremybenn
    case `/usr/bin/file conftest.o` in
5897
    *64-bit*)
5898
      case $lt_cv_prog_gnu_ld in
5899
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5900 82 jeremybenn
      *)
5901
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5902
          LD="${LD-ld} -64"
5903
        fi
5904
        ;;
5905 19 jeremybenn
      esac
5906
      ;;
5907
    esac
5908
  fi
5909
  rm -rf conftest*
5910
  ;;
5911 82 jeremybenn
esac
5912 19 jeremybenn
 
5913 82 jeremybenn
need_locks="$enable_libtool_lock"
5914 19 jeremybenn
 
5915 82 jeremybenn
 
5916
  case $host_os in
5917
    rhapsody* | darwin*)
5918
    if test -n "$ac_tool_prefix"; then
5919
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5920
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5921 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5923 118 jeremybenn
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5924 82 jeremybenn
  $as_echo_n "(cached) " >&6
5925
else
5926
  if test -n "$DSYMUTIL"; then
5927
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5928
else
5929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930
for as_dir in $PATH
5931
do
5932
  IFS=$as_save_IFS
5933
  test -z "$as_dir" && as_dir=.
5934 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5935 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5937 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 82 jeremybenn
    break 2
5939
  fi
5940
done
5941 118 jeremybenn
  done
5942 82 jeremybenn
IFS=$as_save_IFS
5943
 
5944
fi
5945
fi
5946
DSYMUTIL=$ac_cv_prog_DSYMUTIL
5947
if test -n "$DSYMUTIL"; then
5948 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5949 82 jeremybenn
$as_echo "$DSYMUTIL" >&6; }
5950
else
5951 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 82 jeremybenn
$as_echo "no" >&6; }
5953
fi
5954
 
5955
 
5956
fi
5957
if test -z "$ac_cv_prog_DSYMUTIL"; then
5958
  ac_ct_DSYMUTIL=$DSYMUTIL
5959
  # Extract the first word of "dsymutil", so it can be a program name with args.
5960
set dummy dsymutil; ac_word=$2
5961 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
5963 118 jeremybenn
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5964 82 jeremybenn
  $as_echo_n "(cached) " >&6
5965
else
5966
  if test -n "$ac_ct_DSYMUTIL"; then
5967
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5968
else
5969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970
for as_dir in $PATH
5971
do
5972
  IFS=$as_save_IFS
5973
  test -z "$as_dir" && as_dir=.
5974 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
5975 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5977 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 82 jeremybenn
    break 2
5979
  fi
5980
done
5981 118 jeremybenn
  done
5982 82 jeremybenn
IFS=$as_save_IFS
5983
 
5984
fi
5985
fi
5986
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5987
if test -n "$ac_ct_DSYMUTIL"; then
5988 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5989 82 jeremybenn
$as_echo "$ac_ct_DSYMUTIL" >&6; }
5990
else
5991 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 82 jeremybenn
$as_echo "no" >&6; }
5993
fi
5994
 
5995
  if test "x$ac_ct_DSYMUTIL" = x; then
5996
    DSYMUTIL=":"
5997
  else
5998
    case $cross_compiling:$ac_tool_warned in
5999
yes:)
6000 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002
ac_tool_warned=yes ;;
6003 19 jeremybenn
esac
6004 82 jeremybenn
    DSYMUTIL=$ac_ct_DSYMUTIL
6005
  fi
6006
else
6007
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6008
fi
6009 19 jeremybenn
 
6010 82 jeremybenn
    if test -n "$ac_tool_prefix"; then
6011
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6012
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6013 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6015 118 jeremybenn
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6016 82 jeremybenn
  $as_echo_n "(cached) " >&6
6017
else
6018
  if test -n "$NMEDIT"; then
6019
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6020
else
6021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022
for as_dir in $PATH
6023
do
6024
  IFS=$as_save_IFS
6025
  test -z "$as_dir" && as_dir=.
6026 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6027 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6029 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 82 jeremybenn
    break 2
6031
  fi
6032
done
6033 118 jeremybenn
  done
6034 82 jeremybenn
IFS=$as_save_IFS
6035 19 jeremybenn
 
6036 82 jeremybenn
fi
6037
fi
6038
NMEDIT=$ac_cv_prog_NMEDIT
6039
if test -n "$NMEDIT"; then
6040 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6041 82 jeremybenn
$as_echo "$NMEDIT" >&6; }
6042
else
6043 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 82 jeremybenn
$as_echo "no" >&6; }
6045
fi
6046 19 jeremybenn
 
6047 82 jeremybenn
 
6048
fi
6049
if test -z "$ac_cv_prog_NMEDIT"; then
6050
  ac_ct_NMEDIT=$NMEDIT
6051
  # Extract the first word of "nmedit", so it can be a program name with args.
6052
set dummy nmedit; ac_word=$2
6053 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6055 118 jeremybenn
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6056 82 jeremybenn
  $as_echo_n "(cached) " >&6
6057
else
6058
  if test -n "$ac_ct_NMEDIT"; then
6059
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6060
else
6061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062
for as_dir in $PATH
6063
do
6064
  IFS=$as_save_IFS
6065
  test -z "$as_dir" && as_dir=.
6066 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6067 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6069 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 82 jeremybenn
    break 2
6071
  fi
6072
done
6073 118 jeremybenn
  done
6074 82 jeremybenn
IFS=$as_save_IFS
6075
 
6076
fi
6077
fi
6078
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6079
if test -n "$ac_ct_NMEDIT"; then
6080 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6081 82 jeremybenn
$as_echo "$ac_ct_NMEDIT" >&6; }
6082
else
6083 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084 82 jeremybenn
$as_echo "no" >&6; }
6085
fi
6086
 
6087
  if test "x$ac_ct_NMEDIT" = x; then
6088
    NMEDIT=":"
6089
  else
6090
    case $cross_compiling:$ac_tool_warned in
6091
yes:)
6092 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094
ac_tool_warned=yes ;;
6095
esac
6096
    NMEDIT=$ac_ct_NMEDIT
6097
  fi
6098
else
6099
  NMEDIT="$ac_cv_prog_NMEDIT"
6100
fi
6101
 
6102
    if test -n "$ac_tool_prefix"; then
6103
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6104
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6105 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6107 118 jeremybenn
if test "${ac_cv_prog_LIPO+set}" = set; then :
6108 82 jeremybenn
  $as_echo_n "(cached) " >&6
6109
else
6110
  if test -n "$LIPO"; then
6111
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6112
else
6113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114
for as_dir in $PATH
6115
do
6116
  IFS=$as_save_IFS
6117
  test -z "$as_dir" && as_dir=.
6118 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6119 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6121 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 82 jeremybenn
    break 2
6123
  fi
6124
done
6125 118 jeremybenn
  done
6126 82 jeremybenn
IFS=$as_save_IFS
6127
 
6128
fi
6129
fi
6130
LIPO=$ac_cv_prog_LIPO
6131
if test -n "$LIPO"; then
6132 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6133 82 jeremybenn
$as_echo "$LIPO" >&6; }
6134
else
6135 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 82 jeremybenn
$as_echo "no" >&6; }
6137
fi
6138
 
6139
 
6140
fi
6141
if test -z "$ac_cv_prog_LIPO"; then
6142
  ac_ct_LIPO=$LIPO
6143
  # Extract the first word of "lipo", so it can be a program name with args.
6144
set dummy lipo; ac_word=$2
6145 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6147 118 jeremybenn
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6148 82 jeremybenn
  $as_echo_n "(cached) " >&6
6149
else
6150
  if test -n "$ac_ct_LIPO"; then
6151
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6152
else
6153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154
for as_dir in $PATH
6155
do
6156
  IFS=$as_save_IFS
6157
  test -z "$as_dir" && as_dir=.
6158 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6159 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160
    ac_cv_prog_ac_ct_LIPO="lipo"
6161 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 82 jeremybenn
    break 2
6163
  fi
6164
done
6165 118 jeremybenn
  done
6166 82 jeremybenn
IFS=$as_save_IFS
6167
 
6168
fi
6169
fi
6170
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6171
if test -n "$ac_ct_LIPO"; then
6172 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6173 82 jeremybenn
$as_echo "$ac_ct_LIPO" >&6; }
6174
else
6175 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 82 jeremybenn
$as_echo "no" >&6; }
6177
fi
6178
 
6179
  if test "x$ac_ct_LIPO" = x; then
6180
    LIPO=":"
6181
  else
6182
    case $cross_compiling:$ac_tool_warned in
6183
yes:)
6184 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186
ac_tool_warned=yes ;;
6187
esac
6188
    LIPO=$ac_ct_LIPO
6189
  fi
6190
else
6191
  LIPO="$ac_cv_prog_LIPO"
6192
fi
6193
 
6194
    if test -n "$ac_tool_prefix"; then
6195
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6196
set dummy ${ac_tool_prefix}otool; ac_word=$2
6197 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6199 118 jeremybenn
if test "${ac_cv_prog_OTOOL+set}" = set; then :
6200 82 jeremybenn
  $as_echo_n "(cached) " >&6
6201
else
6202
  if test -n "$OTOOL"; then
6203
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6204
else
6205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206
for as_dir in $PATH
6207
do
6208
  IFS=$as_save_IFS
6209
  test -z "$as_dir" && as_dir=.
6210 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6211 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6213 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 82 jeremybenn
    break 2
6215
  fi
6216
done
6217 118 jeremybenn
  done
6218 82 jeremybenn
IFS=$as_save_IFS
6219
 
6220
fi
6221
fi
6222
OTOOL=$ac_cv_prog_OTOOL
6223
if test -n "$OTOOL"; then
6224 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6225 82 jeremybenn
$as_echo "$OTOOL" >&6; }
6226
else
6227 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 82 jeremybenn
$as_echo "no" >&6; }
6229
fi
6230
 
6231
 
6232
fi
6233
if test -z "$ac_cv_prog_OTOOL"; then
6234
  ac_ct_OTOOL=$OTOOL
6235
  # Extract the first word of "otool", so it can be a program name with args.
6236
set dummy otool; ac_word=$2
6237 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6239 118 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6240 82 jeremybenn
  $as_echo_n "(cached) " >&6
6241
else
6242
  if test -n "$ac_ct_OTOOL"; then
6243
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6244
else
6245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246
for as_dir in $PATH
6247
do
6248
  IFS=$as_save_IFS
6249
  test -z "$as_dir" && as_dir=.
6250 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6251 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252
    ac_cv_prog_ac_ct_OTOOL="otool"
6253 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 82 jeremybenn
    break 2
6255
  fi
6256
done
6257 118 jeremybenn
  done
6258 82 jeremybenn
IFS=$as_save_IFS
6259
 
6260
fi
6261
fi
6262
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6263
if test -n "$ac_ct_OTOOL"; then
6264 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6265 82 jeremybenn
$as_echo "$ac_ct_OTOOL" >&6; }
6266
else
6267 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 82 jeremybenn
$as_echo "no" >&6; }
6269
fi
6270
 
6271
  if test "x$ac_ct_OTOOL" = x; then
6272
    OTOOL=":"
6273
  else
6274
    case $cross_compiling:$ac_tool_warned in
6275
yes:)
6276 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278
ac_tool_warned=yes ;;
6279
esac
6280
    OTOOL=$ac_ct_OTOOL
6281
  fi
6282
else
6283
  OTOOL="$ac_cv_prog_OTOOL"
6284
fi
6285
 
6286
    if test -n "$ac_tool_prefix"; then
6287
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6288
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6289 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6291 118 jeremybenn
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6292 82 jeremybenn
  $as_echo_n "(cached) " >&6
6293
else
6294
  if test -n "$OTOOL64"; then
6295
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6296
else
6297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298
for as_dir in $PATH
6299
do
6300
  IFS=$as_save_IFS
6301
  test -z "$as_dir" && as_dir=.
6302 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6303 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6305 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 82 jeremybenn
    break 2
6307
  fi
6308
done
6309 118 jeremybenn
  done
6310 82 jeremybenn
IFS=$as_save_IFS
6311
 
6312
fi
6313
fi
6314
OTOOL64=$ac_cv_prog_OTOOL64
6315
if test -n "$OTOOL64"; then
6316 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6317 82 jeremybenn
$as_echo "$OTOOL64" >&6; }
6318
else
6319 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 82 jeremybenn
$as_echo "no" >&6; }
6321
fi
6322
 
6323
 
6324
fi
6325
if test -z "$ac_cv_prog_OTOOL64"; then
6326
  ac_ct_OTOOL64=$OTOOL64
6327
  # Extract the first word of "otool64", so it can be a program name with args.
6328
set dummy otool64; ac_word=$2
6329 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
6331 118 jeremybenn
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6332 82 jeremybenn
  $as_echo_n "(cached) " >&6
6333
else
6334
  if test -n "$ac_ct_OTOOL64"; then
6335
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6336
else
6337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338
for as_dir in $PATH
6339
do
6340
  IFS=$as_save_IFS
6341
  test -z "$as_dir" && as_dir=.
6342 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
6343 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344
    ac_cv_prog_ac_ct_OTOOL64="otool64"
6345 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 82 jeremybenn
    break 2
6347
  fi
6348
done
6349 118 jeremybenn
  done
6350 82 jeremybenn
IFS=$as_save_IFS
6351
 
6352
fi
6353
fi
6354
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6355
if test -n "$ac_ct_OTOOL64"; then
6356 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6357 82 jeremybenn
$as_echo "$ac_ct_OTOOL64" >&6; }
6358
else
6359 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 82 jeremybenn
$as_echo "no" >&6; }
6361
fi
6362
 
6363
  if test "x$ac_ct_OTOOL64" = x; then
6364
    OTOOL64=":"
6365
  else
6366
    case $cross_compiling:$ac_tool_warned in
6367
yes:)
6368 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370
ac_tool_warned=yes ;;
6371
esac
6372
    OTOOL64=$ac_ct_OTOOL64
6373
  fi
6374
else
6375
  OTOOL64="$ac_cv_prog_OTOOL64"
6376
fi
6377
 
6378
 
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 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6405 82 jeremybenn
$as_echo_n "checking for -single_module linker flag... " >&6; }
6406 118 jeremybenn
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6407 82 jeremybenn
  $as_echo_n "(cached) " >&6
6408
else
6409
  lt_cv_apple_cc_single_mod=no
6410
      if test -z "${LT_MULTI_MODULE}"; then
6411
        # By default we will add the -single_module flag. You can override
6412
        # by either setting the environment variable LT_MULTI_MODULE
6413
        # non-empty at configure time, or by adding -multi_module to the
6414
        # link flags.
6415
        rm -rf libconftest.dylib*
6416
        echo "int foo(void){return 1;}" > conftest.c
6417
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6418
-dynamiclib -Wl,-single_module conftest.c" >&5
6419
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6420
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6421
        _lt_result=$?
6422
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6423
          lt_cv_apple_cc_single_mod=yes
6424
        else
6425
          cat conftest.err >&5
6426
        fi
6427
        rm -rf libconftest.dylib*
6428
        rm -f conftest.*
6429
      fi
6430
fi
6431 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6432 82 jeremybenn
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6433 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6434 82 jeremybenn
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6435 118 jeremybenn
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6436 82 jeremybenn
  $as_echo_n "(cached) " >&6
6437
else
6438
  lt_cv_ld_exported_symbols_list=no
6439
      save_LDFLAGS=$LDFLAGS
6440
      echo "_main" > conftest.sym
6441
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6442 118 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 82 jeremybenn
/* end confdefs.h.  */
6444
 
6445
int
6446
main ()
6447
{
6448
 
6449
  ;
6450
  return 0;
6451
}
6452
_ACEOF
6453 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
6454 82 jeremybenn
  lt_cv_ld_exported_symbols_list=yes
6455
else
6456 118 jeremybenn
  lt_cv_ld_exported_symbols_list=no
6457 82 jeremybenn
fi
6458 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
6459
    conftest$ac_exeext conftest.$ac_ext
6460 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
6461
 
6462
fi
6463 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6464 82 jeremybenn
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6465
    case $host_os in
6466
    rhapsody* | darwin1.[012])
6467
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6468
    darwin1.*)
6469
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6470
    darwin*) # darwin 5.x on
6471
      # if running on 10.5 or later, the deployment target defaults
6472
      # to the OS version, if on x86, and 10.4, the deployment
6473
      # target defaults to 10.4. Don't you love it?
6474
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6475
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6476
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6477
        10.[012]*)
6478
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6479
        10.*)
6480
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6481
      esac
6482
    ;;
6483
  esac
6484
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6485
      _lt_dar_single_mod='$single_module'
6486
    fi
6487
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6488
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6489
    else
6490
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6491
    fi
6492
    if test "$DSYMUTIL" != ":"; then
6493
      _lt_dsymutil='~$DSYMUTIL $lib || :'
6494
    else
6495
      _lt_dsymutil=
6496
    fi
6497
    ;;
6498
  esac
6499
 
6500 19 jeremybenn
for ac_header in dlfcn.h
6501 118 jeremybenn
do :
6502
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6503
"
6504
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6505 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
6506 118 jeremybenn
#define HAVE_DLFCN_H 1
6507 19 jeremybenn
_ACEOF
6508
 
6509
fi
6510
 
6511
done
6512
 
6513
 
6514
 
6515 82 jeremybenn
# Set options
6516 19 jeremybenn
 
6517
 
6518
 
6519 82 jeremybenn
        enable_dlopen=no
6520 19 jeremybenn
 
6521
 
6522 82 jeremybenn
  enable_win32_dll=no
6523 19 jeremybenn
 
6524
 
6525 82 jeremybenn
            # Check whether --enable-shared was given.
6526 118 jeremybenn
if test "${enable_shared+set}" = set; then :
6527 82 jeremybenn
  enableval=$enable_shared; p=${PACKAGE-default}
6528
    case $enableval in
6529
    yes) enable_shared=yes ;;
6530
    no) enable_shared=no ;;
6531
    *)
6532
      enable_shared=no
6533
      # Look at the argument we got.  We use all the common list separators.
6534
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6535
      for pkg in $enableval; do
6536
        IFS="$lt_save_ifs"
6537
        if test "X$pkg" = "X$p"; then
6538
          enable_shared=yes
6539
        fi
6540
      done
6541
      IFS="$lt_save_ifs"
6542
      ;;
6543
    esac
6544 19 jeremybenn
else
6545 82 jeremybenn
  enable_shared=yes
6546 19 jeremybenn
fi
6547
 
6548
 
6549
 
6550
 
6551
 
6552
 
6553
 
6554
 
6555
 
6556 82 jeremybenn
  # Check whether --enable-static was given.
6557 118 jeremybenn
if test "${enable_static+set}" = set; then :
6558 82 jeremybenn
  enableval=$enable_static; p=${PACKAGE-default}
6559
    case $enableval in
6560
    yes) enable_static=yes ;;
6561
    no) enable_static=no ;;
6562
    *)
6563
     enable_static=no
6564
      # Look at the argument we got.  We use all the common list separators.
6565
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6566
      for pkg in $enableval; do
6567
        IFS="$lt_save_ifs"
6568
        if test "X$pkg" = "X$p"; then
6569
          enable_static=yes
6570
        fi
6571
      done
6572
      IFS="$lt_save_ifs"
6573
      ;;
6574
    esac
6575 19 jeremybenn
else
6576 82 jeremybenn
  enable_static=yes
6577 19 jeremybenn
fi
6578
 
6579
 
6580
 
6581
 
6582
 
6583
 
6584
 
6585
 
6586
 
6587
 
6588 82 jeremybenn
# Check whether --with-pic was given.
6589 118 jeremybenn
if test "${with_pic+set}" = set; then :
6590 82 jeremybenn
  withval=$with_pic; pic_mode="$withval"
6591 19 jeremybenn
else
6592 82 jeremybenn
  pic_mode=default
6593 19 jeremybenn
fi
6594
 
6595
 
6596 82 jeremybenn
test -z "$pic_mode" && pic_mode=default
6597 19 jeremybenn
 
6598
 
6599
 
6600
 
6601
 
6602
 
6603
 
6604 82 jeremybenn
  # Check whether --enable-fast-install was given.
6605 118 jeremybenn
if test "${enable_fast_install+set}" = set; then :
6606 82 jeremybenn
  enableval=$enable_fast_install; p=${PACKAGE-default}
6607
    case $enableval in
6608
    yes) enable_fast_install=yes ;;
6609
    no) enable_fast_install=no ;;
6610
    *)
6611
      enable_fast_install=no
6612
      # Look at the argument we got.  We use all the common list separators.
6613
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6614
      for pkg in $enableval; do
6615
        IFS="$lt_save_ifs"
6616
        if test "X$pkg" = "X$p"; then
6617
          enable_fast_install=yes
6618
        fi
6619
      done
6620
      IFS="$lt_save_ifs"
6621
      ;;
6622
    esac
6623 19 jeremybenn
else
6624 82 jeremybenn
  enable_fast_install=yes
6625 19 jeremybenn
fi
6626
 
6627
 
6628
 
6629
 
6630
 
6631
 
6632
 
6633
 
6634
 
6635
 
6636
 
6637 82 jeremybenn
# This can be used to rebuild libtool when needed
6638
LIBTOOL_DEPS="$ltmain"
6639 19 jeremybenn
 
6640 82 jeremybenn
# Always use our own libtool.
6641
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6642 19 jeremybenn
 
6643
 
6644
 
6645
 
6646
 
6647
 
6648
 
6649
 
6650
 
6651
 
6652
 
6653
 
6654
 
6655
 
6656
 
6657
 
6658
 
6659
 
6660
 
6661
 
6662
 
6663
 
6664
 
6665
 
6666
 
6667 82 jeremybenn
test -z "$LN_S" && LN_S="ln -s"
6668 19 jeremybenn
 
6669
 
6670
 
6671
 
6672
 
6673
 
6674
 
6675
 
6676
 
6677
 
6678
 
6679
 
6680
 
6681
 
6682 82 jeremybenn
if test -n "${ZSH_VERSION+set}" ; then
6683
   setopt NO_GLOB_SUBST
6684 19 jeremybenn
fi
6685
 
6686 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6687 82 jeremybenn
$as_echo_n "checking for objdir... " >&6; }
6688 118 jeremybenn
if test "${lt_cv_objdir+set}" = set; then :
6689 82 jeremybenn
  $as_echo_n "(cached) " >&6
6690 19 jeremybenn
else
6691
  rm -f .libs 2>/dev/null
6692
mkdir .libs 2>/dev/null
6693
if test -d .libs; then
6694
  lt_cv_objdir=.libs
6695
else
6696
  # MS-DOS does not allow filenames that begin with a dot.
6697
  lt_cv_objdir=_libs
6698
fi
6699
rmdir .libs 2>/dev/null
6700
fi
6701 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6702 82 jeremybenn
$as_echo "$lt_cv_objdir" >&6; }
6703 19 jeremybenn
objdir=$lt_cv_objdir
6704
 
6705
 
6706
 
6707
 
6708
 
6709 82 jeremybenn
cat >>confdefs.h <<_ACEOF
6710
#define LT_OBJDIR "$lt_cv_objdir/"
6711
_ACEOF
6712
 
6713
 
6714
 
6715
 
6716
 
6717
 
6718
 
6719
 
6720
 
6721
 
6722
 
6723
 
6724
 
6725
 
6726
 
6727
 
6728
 
6729 19 jeremybenn
case $host_os in
6730
aix3*)
6731
  # AIX sometimes has problems with the GCC collect2 program.  For some
6732
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6733
  # vanish in a puff of smoke.
6734
  if test "X${COLLECT_NAMES+set}" != Xset; then
6735
    COLLECT_NAMES=
6736
    export COLLECT_NAMES
6737
  fi
6738
  ;;
6739
esac
6740
 
6741
# Sed substitution that helps us do robust quoting.  It backslashifies
6742
# metacharacters that are still active within double-quoted strings.
6743 82 jeremybenn
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6744 19 jeremybenn
 
6745
# Same as above, but do not quote variable references.
6746 82 jeremybenn
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6747 19 jeremybenn
 
6748
# Sed substitution to delay expansion of an escaped shell variable in a
6749
# double_quote_subst'ed string.
6750
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6751
 
6752 82 jeremybenn
# Sed substitution to delay expansion of an escaped single quote.
6753
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6754
 
6755 19 jeremybenn
# Sed substitution to avoid accidental globbing in evaled expressions
6756
no_glob_subst='s/\*/\\\*/g'
6757
 
6758
# Global variables:
6759 82 jeremybenn
ofile=libtool
6760 19 jeremybenn
can_build_shared=yes
6761
 
6762
# All known linkers require a `.a' archive for static linking (except MSVC,
6763
# which needs '.lib').
6764
libext=a
6765 82 jeremybenn
 
6766 19 jeremybenn
with_gnu_ld="$lt_cv_prog_gnu_ld"
6767
 
6768
old_CC="$CC"
6769
old_CFLAGS="$CFLAGS"
6770
 
6771
# Set sane defaults for various variables
6772
test -z "$CC" && CC=cc
6773
test -z "$LTCC" && LTCC=$CC
6774
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6775
test -z "$LD" && LD=ld
6776
test -z "$ac_objext" && ac_objext=o
6777
 
6778
for cc_temp in $compiler""; do
6779
  case $cc_temp in
6780
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6781
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6782
    \-*) ;;
6783
    *) break;;
6784
  esac
6785
done
6786 82 jeremybenn
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6787 19 jeremybenn
 
6788
 
6789
# Only perform the check for file, if the check method requires it
6790 82 jeremybenn
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6791 19 jeremybenn
case $deplibs_check_method in
6792
file_magic*)
6793
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6794 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6795 82 jeremybenn
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6796 118 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6797 82 jeremybenn
  $as_echo_n "(cached) " >&6
6798 19 jeremybenn
else
6799
  case $MAGIC_CMD in
6800
[\\/*] |  ?:[\\/]*)
6801
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6802
  ;;
6803
*)
6804
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6805
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6806
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6807
  for ac_dir in $ac_dummy; do
6808
    IFS="$lt_save_ifs"
6809
    test -z "$ac_dir" && ac_dir=.
6810
    if test -f $ac_dir/${ac_tool_prefix}file; then
6811
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6812
      if test -n "$file_magic_test_file"; then
6813
        case $deplibs_check_method in
6814
        "file_magic "*)
6815
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6816
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6817
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6818
            $EGREP "$file_magic_regex" > /dev/null; then
6819
            :
6820
          else
6821 82 jeremybenn
            cat <<_LT_EOF 1>&2
6822 19 jeremybenn
 
6823
*** Warning: the command libtool uses to detect shared libraries,
6824
*** $file_magic_cmd, produces output that libtool cannot recognize.
6825
*** The result is that libtool may fail to recognize shared libraries
6826
*** as such.  This will affect the creation of libtool libraries that
6827
*** depend on shared libraries, but programs linked with such libtool
6828
*** libraries will work regardless of this problem.  Nevertheless, you
6829
*** may want to report the problem to your system manager and/or to
6830
*** bug-libtool@gnu.org
6831
 
6832 82 jeremybenn
_LT_EOF
6833 19 jeremybenn
          fi ;;
6834
        esac
6835
      fi
6836
      break
6837
    fi
6838
  done
6839
  IFS="$lt_save_ifs"
6840
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6841
  ;;
6842
esac
6843
fi
6844
 
6845
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6846
if test -n "$MAGIC_CMD"; then
6847 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6848 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6849 19 jeremybenn
else
6850 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 82 jeremybenn
$as_echo "no" >&6; }
6852 19 jeremybenn
fi
6853
 
6854 82 jeremybenn
 
6855
 
6856
 
6857
 
6858 19 jeremybenn
if test -z "$lt_cv_path_MAGIC_CMD"; then
6859
  if test -n "$ac_tool_prefix"; then
6860 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6861 82 jeremybenn
$as_echo_n "checking for file... " >&6; }
6862 118 jeremybenn
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6863 82 jeremybenn
  $as_echo_n "(cached) " >&6
6864 19 jeremybenn
else
6865
  case $MAGIC_CMD in
6866
[\\/*] |  ?:[\\/]*)
6867
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6868
  ;;
6869
*)
6870
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6871
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6872
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6873
  for ac_dir in $ac_dummy; do
6874
    IFS="$lt_save_ifs"
6875
    test -z "$ac_dir" && ac_dir=.
6876
    if test -f $ac_dir/file; then
6877
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6878
      if test -n "$file_magic_test_file"; then
6879
        case $deplibs_check_method in
6880
        "file_magic "*)
6881
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6882
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6883
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6884
            $EGREP "$file_magic_regex" > /dev/null; then
6885
            :
6886
          else
6887 82 jeremybenn
            cat <<_LT_EOF 1>&2
6888 19 jeremybenn
 
6889
*** Warning: the command libtool uses to detect shared libraries,
6890
*** $file_magic_cmd, produces output that libtool cannot recognize.
6891
*** The result is that libtool may fail to recognize shared libraries
6892
*** as such.  This will affect the creation of libtool libraries that
6893
*** depend on shared libraries, but programs linked with such libtool
6894
*** libraries will work regardless of this problem.  Nevertheless, you
6895
*** may want to report the problem to your system manager and/or to
6896
*** bug-libtool@gnu.org
6897
 
6898 82 jeremybenn
_LT_EOF
6899 19 jeremybenn
          fi ;;
6900
        esac
6901
      fi
6902
      break
6903
    fi
6904
  done
6905
  IFS="$lt_save_ifs"
6906
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6907
  ;;
6908
esac
6909
fi
6910
 
6911
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6912
if test -n "$MAGIC_CMD"; then
6913 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6914 82 jeremybenn
$as_echo "$MAGIC_CMD" >&6; }
6915 19 jeremybenn
else
6916 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 82 jeremybenn
$as_echo "no" >&6; }
6918 19 jeremybenn
fi
6919
 
6920 82 jeremybenn
 
6921 19 jeremybenn
  else
6922
    MAGIC_CMD=:
6923
  fi
6924
fi
6925
 
6926
  fi
6927
  ;;
6928
esac
6929
 
6930 82 jeremybenn
# Use C for the default configuration in the libtool script
6931 19 jeremybenn
 
6932
lt_save_CC="$CC"
6933
ac_ext=c
6934
ac_cpp='$CPP $CPPFLAGS'
6935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6938
 
6939
 
6940
# Source file extension for C test sources.
6941
ac_ext=c
6942
 
6943
# Object file extension for compiled C test sources.
6944
objext=o
6945
objext=$objext
6946
 
6947
# Code to be used in simple compile tests
6948
lt_simple_compile_test_code="int some_variable = 0;"
6949
 
6950
# Code to be used in simple link tests
6951
lt_simple_link_test_code='int main(){return(0);}'
6952
 
6953
 
6954 82 jeremybenn
 
6955
 
6956
 
6957
 
6958
 
6959 19 jeremybenn
# If no C compiler was specified, use CC.
6960
LTCC=${LTCC-"$CC"}
6961
 
6962
# If no C compiler flags were specified, use CFLAGS.
6963
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6964
 
6965
# Allow CC to be a program name with arguments.
6966
compiler=$CC
6967
 
6968 82 jeremybenn
# Save the default compiler, since it gets overwritten when the other
6969
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6970
compiler_DEFAULT=$CC
6971 19 jeremybenn
 
6972
# save warnings/boilerplate of simple test code
6973
ac_outfile=conftest.$ac_objext
6974
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6975
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6976
_lt_compiler_boilerplate=`cat conftest.err`
6977 82 jeremybenn
$RM conftest*
6978 19 jeremybenn
 
6979
ac_outfile=conftest.$ac_objext
6980
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6981
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6982
_lt_linker_boilerplate=`cat conftest.err`
6983 82 jeremybenn
$RM -r conftest*
6984 19 jeremybenn
 
6985
 
6986 82 jeremybenn
## CAVEAT EMPTOR:
6987
## There is no encapsulation within the following macros, do not change
6988
## the running order or otherwise move them around unless you know exactly
6989
## what you are doing...
6990
if test -n "$compiler"; then
6991 19 jeremybenn
 
6992
lt_prog_compiler_no_builtin_flag=
6993
 
6994
if test "$GCC" = yes; then
6995
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6996
 
6997 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6998 82 jeremybenn
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6999 118 jeremybenn
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7000 82 jeremybenn
  $as_echo_n "(cached) " >&6
7001 19 jeremybenn
else
7002
  lt_cv_prog_compiler_rtti_exceptions=no
7003 82 jeremybenn
   ac_outfile=conftest.$ac_objext
7004 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7005
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7006
   # Insert the option either (1) after the last *FLAGS variable, or
7007
   # (2) before a word containing "conftest.", or (3) at the end.
7008
   # Note that $ac_compile itself does not contain backslashes and begins
7009
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7010
   # The option is referenced via a variable to avoid confusing sed.
7011
   lt_compile=`echo "$ac_compile" | $SED \
7012
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7013
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7014
   -e 's:$: $lt_compiler_flag:'`
7015 118 jeremybenn
   (eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
7016 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7017
   ac_status=$?
7018
   cat conftest.err >&5
7019 118 jeremybenn
   echo "$as_me:7019: \$? = $ac_status" >&5
7020 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7021
     # The compiler can only warn and ignore the option if not recognized
7022
     # So say no if there are warnings other than the usual output.
7023 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7024 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7025
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7026
       lt_cv_prog_compiler_rtti_exceptions=yes
7027
     fi
7028
   fi
7029 82 jeremybenn
   $RM conftest*
7030 19 jeremybenn
 
7031
fi
7032 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7033 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7034 19 jeremybenn
 
7035
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7036
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7037
else
7038
    :
7039
fi
7040
 
7041
fi
7042
 
7043 82 jeremybenn
 
7044
 
7045
 
7046
 
7047
 
7048
  lt_prog_compiler_wl=
7049 19 jeremybenn
lt_prog_compiler_pic=
7050
lt_prog_compiler_static=
7051
 
7052 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7053 82 jeremybenn
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7054 19 jeremybenn
 
7055
  if test "$GCC" = yes; then
7056
    lt_prog_compiler_wl='-Wl,'
7057
    lt_prog_compiler_static='-static'
7058
 
7059
    case $host_os in
7060
      aix*)
7061
      # All AIX code is PIC.
7062
      if test "$host_cpu" = ia64; then
7063
        # AIX 5 now supports IA64 processor
7064
        lt_prog_compiler_static='-Bstatic'
7065
      fi
7066
      ;;
7067
 
7068
    amigaos*)
7069 82 jeremybenn
      case $host_cpu in
7070
      powerpc)
7071
            # see comment about AmigaOS4 .so support
7072
            lt_prog_compiler_pic='-fPIC'
7073
        ;;
7074
      m68k)
7075
            # FIXME: we need at least 68020 code to build shared libraries, but
7076
            # adding the `-m68020' flag to GCC prevents building anything better,
7077
            # like `-m68040'.
7078
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7079
        ;;
7080
      esac
7081 19 jeremybenn
      ;;
7082
 
7083
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7084
      # PIC is the default for these OSes.
7085
      ;;
7086
 
7087 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7088 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7089
      # built for inclusion in a dll (and should export symbols for example).
7090
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7091
      # (--disable-auto-import) libraries
7092
      lt_prog_compiler_pic='-DDLL_EXPORT'
7093
      ;;
7094
 
7095
    darwin* | rhapsody*)
7096
      # PIC is the default on this platform
7097
      # Common symbols not allowed in MH_DYLIB files
7098
      lt_prog_compiler_pic='-fno-common'
7099
      ;;
7100
 
7101 82 jeremybenn
    hpux*)
7102
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7103
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7104
      # sets the default TLS model and affects inlining.
7105
      case $host_cpu in
7106
      hppa*64*)
7107
        # +Z the default
7108
        ;;
7109
      *)
7110
        lt_prog_compiler_pic='-fPIC'
7111
        ;;
7112
      esac
7113
      ;;
7114
 
7115 19 jeremybenn
    interix[3-9]*)
7116
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7117
      # Instead, we relocate shared libraries at runtime.
7118
      ;;
7119
 
7120
    msdosdjgpp*)
7121
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7122
      # on systems that don't support them.
7123
      lt_prog_compiler_can_build_shared=no
7124
      enable_shared=no
7125
      ;;
7126
 
7127 82 jeremybenn
    *nto* | *qnx*)
7128
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7129
      # it will coredump.
7130
      lt_prog_compiler_pic='-fPIC -shared'
7131
      ;;
7132
 
7133 19 jeremybenn
    sysv4*MP*)
7134
      if test -d /usr/nec; then
7135
        lt_prog_compiler_pic=-Kconform_pic
7136
      fi
7137
      ;;
7138
 
7139
    *)
7140
      lt_prog_compiler_pic='-fPIC'
7141
      ;;
7142
    esac
7143
  else
7144
    # PORTME Check for flag to pass linker flags through the system compiler.
7145
    case $host_os in
7146
    aix*)
7147
      lt_prog_compiler_wl='-Wl,'
7148
      if test "$host_cpu" = ia64; then
7149
        # AIX 5 now supports IA64 processor
7150
        lt_prog_compiler_static='-Bstatic'
7151
      else
7152
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7153
      fi
7154
      ;;
7155
 
7156 82 jeremybenn
    mingw* | cygwin* | pw32* | os2* | cegcc*)
7157 19 jeremybenn
      # This hack is so that the source file can tell whether it is being
7158
      # built for inclusion in a dll (and should export symbols for example).
7159
      lt_prog_compiler_pic='-DDLL_EXPORT'
7160
      ;;
7161
 
7162
    hpux9* | hpux10* | hpux11*)
7163
      lt_prog_compiler_wl='-Wl,'
7164
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7165
      # not for PA HP-UX.
7166
      case $host_cpu in
7167
      hppa*64*|ia64*)
7168
        # +Z the default
7169
        ;;
7170
      *)
7171
        lt_prog_compiler_pic='+Z'
7172
        ;;
7173
      esac
7174
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7175
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7176
      ;;
7177
 
7178
    irix5* | irix6* | nonstopux*)
7179
      lt_prog_compiler_wl='-Wl,'
7180
      # PIC (with -KPIC) is the default.
7181
      lt_prog_compiler_static='-non_shared'
7182
      ;;
7183
 
7184
    linux* | k*bsd*-gnu)
7185
      case $cc_basename in
7186 82 jeremybenn
      # old Intel for x86_64 which still supported -KPIC.
7187
      ecc*)
7188 19 jeremybenn
        lt_prog_compiler_wl='-Wl,'
7189
        lt_prog_compiler_pic='-KPIC'
7190
        lt_prog_compiler_static='-static'
7191
        ;;
7192 82 jeremybenn
      # icc used to be incompatible with GCC.
7193
      # ICC 10 doesn't accept -KPIC any more.
7194
      icc* | ifort*)
7195
        lt_prog_compiler_wl='-Wl,'
7196
        lt_prog_compiler_pic='-fPIC'
7197
        lt_prog_compiler_static='-static'
7198
        ;;
7199
      # Lahey Fortran 8.1.
7200
      lf95*)
7201
        lt_prog_compiler_wl='-Wl,'
7202
        lt_prog_compiler_pic='--shared'
7203
        lt_prog_compiler_static='--static'
7204
        ;;
7205 19 jeremybenn
      pgcc* | pgf77* | pgf90* | pgf95*)
7206
        # Portland Group compilers (*not* the Pentium gcc compiler,
7207
        # which looks to be a dead project)
7208
        lt_prog_compiler_wl='-Wl,'
7209
        lt_prog_compiler_pic='-fpic'
7210
        lt_prog_compiler_static='-Bstatic'
7211
        ;;
7212
      ccc*)
7213
        lt_prog_compiler_wl='-Wl,'
7214
        # All Alpha code is PIC.
7215
        lt_prog_compiler_static='-non_shared'
7216
        ;;
7217 82 jeremybenn
      xl*)
7218
        # IBM XL C 8.0/Fortran 10.1 on PPC
7219
        lt_prog_compiler_wl='-Wl,'
7220
        lt_prog_compiler_pic='-qpic'
7221
        lt_prog_compiler_static='-qstaticlink'
7222
        ;;
7223 19 jeremybenn
      *)
7224 82 jeremybenn
        case `$CC -V 2>&1 | sed 5q` in
7225 19 jeremybenn
        *Sun\ C*)
7226
          # Sun C 5.9
7227
          lt_prog_compiler_pic='-KPIC'
7228
          lt_prog_compiler_static='-Bstatic'
7229
          lt_prog_compiler_wl='-Wl,'
7230
          ;;
7231
        *Sun\ F*)
7232
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
7233
          lt_prog_compiler_pic='-KPIC'
7234
          lt_prog_compiler_static='-Bstatic'
7235
          lt_prog_compiler_wl=''
7236
          ;;
7237
        esac
7238
        ;;
7239
      esac
7240
      ;;
7241
 
7242 82 jeremybenn
    newsos6)
7243
      lt_prog_compiler_pic='-KPIC'
7244
      lt_prog_compiler_static='-Bstatic'
7245
      ;;
7246
 
7247
    *nto* | *qnx*)
7248
      # QNX uses GNU C++, but need to define -shared option too, otherwise
7249
      # it will coredump.
7250
      lt_prog_compiler_pic='-fPIC -shared'
7251
      ;;
7252
 
7253 19 jeremybenn
    osf3* | osf4* | osf5*)
7254
      lt_prog_compiler_wl='-Wl,'
7255
      # All OSF/1 code is PIC.
7256
      lt_prog_compiler_static='-non_shared'
7257
      ;;
7258
 
7259
    rdos*)
7260
      lt_prog_compiler_static='-non_shared'
7261
      ;;
7262
 
7263
    solaris*)
7264
      lt_prog_compiler_pic='-KPIC'
7265
      lt_prog_compiler_static='-Bstatic'
7266
      case $cc_basename in
7267
      f77* | f90* | f95*)
7268
        lt_prog_compiler_wl='-Qoption ld ';;
7269
      *)
7270
        lt_prog_compiler_wl='-Wl,';;
7271
      esac
7272
      ;;
7273
 
7274
    sunos4*)
7275
      lt_prog_compiler_wl='-Qoption ld '
7276
      lt_prog_compiler_pic='-PIC'
7277
      lt_prog_compiler_static='-Bstatic'
7278
      ;;
7279
 
7280
    sysv4 | sysv4.2uw2* | sysv4.3*)
7281
      lt_prog_compiler_wl='-Wl,'
7282
      lt_prog_compiler_pic='-KPIC'
7283
      lt_prog_compiler_static='-Bstatic'
7284
      ;;
7285
 
7286
    sysv4*MP*)
7287
      if test -d /usr/nec ;then
7288
        lt_prog_compiler_pic='-Kconform_pic'
7289
        lt_prog_compiler_static='-Bstatic'
7290
      fi
7291
      ;;
7292
 
7293
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7294
      lt_prog_compiler_wl='-Wl,'
7295
      lt_prog_compiler_pic='-KPIC'
7296
      lt_prog_compiler_static='-Bstatic'
7297
      ;;
7298
 
7299
    unicos*)
7300
      lt_prog_compiler_wl='-Wl,'
7301
      lt_prog_compiler_can_build_shared=no
7302
      ;;
7303
 
7304
    uts4*)
7305
      lt_prog_compiler_pic='-pic'
7306
      lt_prog_compiler_static='-Bstatic'
7307
      ;;
7308
 
7309
    *)
7310
      lt_prog_compiler_can_build_shared=no
7311
      ;;
7312
    esac
7313
  fi
7314
 
7315 82 jeremybenn
case $host_os in
7316
  # For platforms which do not support PIC, -DPIC is meaningless:
7317
  *djgpp*)
7318
    lt_prog_compiler_pic=
7319
    ;;
7320
  *)
7321
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7322
    ;;
7323
esac
7324 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7325 82 jeremybenn
$as_echo "$lt_prog_compiler_pic" >&6; }
7326 19 jeremybenn
 
7327 82 jeremybenn
 
7328
 
7329
 
7330
 
7331
 
7332 19 jeremybenn
#
7333
# Check to make sure the PIC flag actually works.
7334
#
7335
if test -n "$lt_prog_compiler_pic"; then
7336 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7337 82 jeremybenn
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7338 118 jeremybenn
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7339 82 jeremybenn
  $as_echo_n "(cached) " >&6
7340 19 jeremybenn
else
7341 82 jeremybenn
  lt_cv_prog_compiler_pic_works=no
7342
   ac_outfile=conftest.$ac_objext
7343 19 jeremybenn
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7344
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7345
   # Insert the option either (1) after the last *FLAGS variable, or
7346
   # (2) before a word containing "conftest.", or (3) at the end.
7347
   # Note that $ac_compile itself does not contain backslashes and begins
7348
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7349
   # The option is referenced via a variable to avoid confusing sed.
7350
   lt_compile=`echo "$ac_compile" | $SED \
7351
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7352
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7353
   -e 's:$: $lt_compiler_flag:'`
7354 118 jeremybenn
   (eval echo "\"\$as_me:7354: $lt_compile\"" >&5)
7355 19 jeremybenn
   (eval "$lt_compile" 2>conftest.err)
7356
   ac_status=$?
7357
   cat conftest.err >&5
7358 118 jeremybenn
   echo "$as_me:7358: \$? = $ac_status" >&5
7359 19 jeremybenn
   if (exit $ac_status) && test -s "$ac_outfile"; then
7360
     # The compiler can only warn and ignore the option if not recognized
7361
     # So say no if there are warnings other than the usual output.
7362 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7363 19 jeremybenn
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7364
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7365 82 jeremybenn
       lt_cv_prog_compiler_pic_works=yes
7366 19 jeremybenn
     fi
7367
   fi
7368 82 jeremybenn
   $RM conftest*
7369 19 jeremybenn
 
7370
fi
7371 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7372 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7373 19 jeremybenn
 
7374 82 jeremybenn
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7375 19 jeremybenn
    case $lt_prog_compiler_pic in
7376
     "" | " "*) ;;
7377
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7378
     esac
7379
else
7380
    lt_prog_compiler_pic=
7381
     lt_prog_compiler_can_build_shared=no
7382
fi
7383
 
7384
fi
7385
 
7386 82 jeremybenn
 
7387
 
7388
 
7389
 
7390
 
7391 19 jeremybenn
#
7392
# Check to make sure the static flag actually works.
7393
#
7394
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7395 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7396 82 jeremybenn
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7397 118 jeremybenn
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7398 82 jeremybenn
  $as_echo_n "(cached) " >&6
7399 19 jeremybenn
else
7400 82 jeremybenn
  lt_cv_prog_compiler_static_works=no
7401 19 jeremybenn
   save_LDFLAGS="$LDFLAGS"
7402
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7403
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7404
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7405
     # The linker can only warn and ignore the option if not recognized
7406
     # So say no if there are warnings
7407
     if test -s conftest.err; then
7408
       # Append any errors to the config.log.
7409
       cat conftest.err 1>&5
7410 82 jeremybenn
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7411 19 jeremybenn
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7412
       if diff conftest.exp conftest.er2 >/dev/null; then
7413 82 jeremybenn
         lt_cv_prog_compiler_static_works=yes
7414 19 jeremybenn
       fi
7415
     else
7416 82 jeremybenn
       lt_cv_prog_compiler_static_works=yes
7417 19 jeremybenn
     fi
7418
   fi
7419 82 jeremybenn
   $RM -r conftest*
7420 19 jeremybenn
   LDFLAGS="$save_LDFLAGS"
7421
 
7422
fi
7423 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7424 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7425 19 jeremybenn
 
7426 82 jeremybenn
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7427 19 jeremybenn
    :
7428
else
7429
    lt_prog_compiler_static=
7430
fi
7431
 
7432
 
7433 82 jeremybenn
 
7434
 
7435
 
7436
 
7437
 
7438 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7439 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7440 118 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7441 82 jeremybenn
  $as_echo_n "(cached) " >&6
7442 19 jeremybenn
else
7443
  lt_cv_prog_compiler_c_o=no
7444 82 jeremybenn
   $RM -r conftest 2>/dev/null
7445 19 jeremybenn
   mkdir conftest
7446
   cd conftest
7447
   mkdir out
7448
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7449
 
7450
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7451
   # Insert the option either (1) after the last *FLAGS variable, or
7452
   # (2) before a word containing "conftest.", or (3) at the end.
7453
   # Note that $ac_compile itself does not contain backslashes and begins
7454
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7455
   lt_compile=`echo "$ac_compile" | $SED \
7456
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7457
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7458
   -e 's:$: $lt_compiler_flag:'`
7459 118 jeremybenn
   (eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
7460 19 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7461
   ac_status=$?
7462
   cat out/conftest.err >&5
7463 118 jeremybenn
   echo "$as_me:7463: \$? = $ac_status" >&5
7464 19 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7465
   then
7466
     # The compiler can only warn and ignore the option if not recognized
7467
     # So say no if there are warnings
7468 82 jeremybenn
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7469 19 jeremybenn
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7470
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7471
       lt_cv_prog_compiler_c_o=yes
7472
     fi
7473
   fi
7474
   chmod u+w . 2>&5
7475 82 jeremybenn
   $RM conftest*
7476 19 jeremybenn
   # SGI C++ compiler will create directory out/ii_files/ for
7477
   # template instantiation
7478 82 jeremybenn
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7479
   $RM out/* && rmdir out
7480 19 jeremybenn
   cd ..
7481 82 jeremybenn
   $RM -r conftest
7482
   $RM conftest*
7483 19 jeremybenn
 
7484
fi
7485 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7486 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7487 19 jeremybenn
 
7488
 
7489 82 jeremybenn
 
7490
 
7491
 
7492
 
7493 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7494 82 jeremybenn
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7495 118 jeremybenn
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7496 82 jeremybenn
  $as_echo_n "(cached) " >&6
7497
else
7498
  lt_cv_prog_compiler_c_o=no
7499
   $RM -r conftest 2>/dev/null
7500
   mkdir conftest
7501
   cd conftest
7502
   mkdir out
7503
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7504
 
7505
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7506
   # Insert the option either (1) after the last *FLAGS variable, or
7507
   # (2) before a word containing "conftest.", or (3) at the end.
7508
   # Note that $ac_compile itself does not contain backslashes and begins
7509
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7510
   lt_compile=`echo "$ac_compile" | $SED \
7511
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7512
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7513
   -e 's:$: $lt_compiler_flag:'`
7514 118 jeremybenn
   (eval echo "\"\$as_me:7514: $lt_compile\"" >&5)
7515 82 jeremybenn
   (eval "$lt_compile" 2>out/conftest.err)
7516
   ac_status=$?
7517
   cat out/conftest.err >&5
7518 118 jeremybenn
   echo "$as_me:7518: \$? = $ac_status" >&5
7519 82 jeremybenn
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7520
   then
7521
     # The compiler can only warn and ignore the option if not recognized
7522
     # So say no if there are warnings
7523
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7524
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7525
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7526
       lt_cv_prog_compiler_c_o=yes
7527
     fi
7528
   fi
7529
   chmod u+w . 2>&5
7530
   $RM conftest*
7531
   # SGI C++ compiler will create directory out/ii_files/ for
7532
   # template instantiation
7533
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7534
   $RM out/* && rmdir out
7535
   cd ..
7536
   $RM -r conftest
7537
   $RM conftest*
7538
 
7539
fi
7540 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7541 82 jeremybenn
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7542
 
7543
 
7544
 
7545
 
7546 19 jeremybenn
hard_links="nottested"
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7548
  # do not overwrite the value of need_locks provided by the user
7549 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7550 82 jeremybenn
$as_echo_n "checking if we can lock with hard links... " >&6; }
7551 19 jeremybenn
  hard_links=yes
7552 82 jeremybenn
  $RM conftest*
7553 19 jeremybenn
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7554
  touch conftest.a
7555
  ln conftest.a conftest.b 2>&5 || hard_links=no
7556
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7557 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7558 82 jeremybenn
$as_echo "$hard_links" >&6; }
7559 19 jeremybenn
  if test "$hard_links" = no; then
7560 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7561 82 jeremybenn
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7562 19 jeremybenn
    need_locks=warn
7563
  fi
7564
else
7565
  need_locks=no
7566
fi
7567
 
7568
 
7569 82 jeremybenn
 
7570
 
7571
 
7572
 
7573 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7574 82 jeremybenn
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7575
 
7576 19 jeremybenn
  runpath_var=
7577
  allow_undefined_flag=
7578 82 jeremybenn
  always_export_symbols=no
7579 19 jeremybenn
  archive_cmds=
7580
  archive_expsym_cmds=
7581 82 jeremybenn
  compiler_needs_object=no
7582
  enable_shared_with_static_runtimes=no
7583 19 jeremybenn
  export_dynamic_flag_spec=
7584 82 jeremybenn
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7585
  hardcode_automatic=no
7586
  hardcode_direct=no
7587
  hardcode_direct_absolute=no
7588 19 jeremybenn
  hardcode_libdir_flag_spec=
7589
  hardcode_libdir_flag_spec_ld=
7590
  hardcode_libdir_separator=
7591
  hardcode_minus_L=no
7592
  hardcode_shlibpath_var=unsupported
7593 82 jeremybenn
  inherit_rpath=no
7594 19 jeremybenn
  link_all_deplibs=unknown
7595
  module_cmds=
7596
  module_expsym_cmds=
7597 82 jeremybenn
  old_archive_from_new_cmds=
7598
  old_archive_from_expsyms_cmds=
7599
  thread_safe_flag_spec=
7600
  whole_archive_flag_spec=
7601 19 jeremybenn
  # include_expsyms should be a list of space-separated symbols to be *always*
7602
  # included in the symbol list
7603
  include_expsyms=
7604
  # exclude_expsyms can be an extended regexp of symbols to exclude
7605
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7606
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7607
  # as well as any symbol that contains `d'.
7608 82 jeremybenn
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7609 19 jeremybenn
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7610
  # platforms (ab)use it in PIC code, but their linkers get confused if
7611
  # the symbol is explicitly referenced.  Since portable code cannot
7612
  # rely on this symbol name, it's probably fine to never include it in
7613
  # preloaded symbol tables.
7614 82 jeremybenn
  # Exclude shared library initialization/finalization symbols.
7615 19 jeremybenn
  extract_expsyms_cmds=
7616
 
7617
  case $host_os in
7618 82 jeremybenn
  cygwin* | mingw* | pw32* | cegcc*)
7619 19 jeremybenn
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7620
    # When not using gcc, we currently assume that we are using
7621
    # Microsoft Visual C++.
7622
    if test "$GCC" != yes; then
7623
      with_gnu_ld=no
7624
    fi
7625
    ;;
7626
  interix*)
7627
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7628
    with_gnu_ld=yes
7629
    ;;
7630
  openbsd*)
7631
    with_gnu_ld=no
7632
    ;;
7633 93 jeremybenn
  linux* | k*bsd*-gnu)
7634
    link_all_deplibs=no
7635
    ;;
7636 19 jeremybenn
  esac
7637
 
7638
  ld_shlibs=yes
7639
  if test "$with_gnu_ld" = yes; then
7640
    # If archive_cmds runs LD, not CC, wlarc should be empty
7641
    wlarc='${wl}'
7642
 
7643
    # Set some defaults for GNU ld with shared library support. These
7644
    # are reset later if shared libraries are not supported. Putting them
7645
    # here allows them to be overridden if necessary.
7646
    runpath_var=LD_RUN_PATH
7647 82 jeremybenn
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7648 19 jeremybenn
    export_dynamic_flag_spec='${wl}--export-dynamic'
7649
    # ancient GNU ld didn't support --whole-archive et. al.
7650 82 jeremybenn
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7651
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7652
    else
7653
      whole_archive_flag_spec=
7654 19 jeremybenn
    fi
7655
    supports_anon_versioning=no
7656 82 jeremybenn
    case `$LD -v 2>&1` in
7657 19 jeremybenn
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7658
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7659
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7660
      *\ 2.11.*) ;; # other 2.11 versions
7661
      *) supports_anon_versioning=yes ;;
7662
    esac
7663
 
7664
    # See if GNU ld supports shared libraries.
7665
    case $host_os in
7666 82 jeremybenn
    aix[3-9]*)
7667 19 jeremybenn
      # On AIX/PPC, the GNU linker is very broken
7668
      if test "$host_cpu" != ia64; then
7669
        ld_shlibs=no
7670 82 jeremybenn
        cat <<_LT_EOF 1>&2
7671 19 jeremybenn
 
7672
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7673
*** to be unable to reliably create shared libraries on AIX.
7674
*** Therefore, libtool is disabling shared libraries support.  If you
7675
*** really care for shared libraries, you may want to modify your PATH
7676
*** so that a non-GNU linker is found, and then restart.
7677
 
7678 82 jeremybenn
_LT_EOF
7679 19 jeremybenn
      fi
7680
      ;;
7681
 
7682
    amigaos*)
7683 82 jeremybenn
      case $host_cpu in
7684
      powerpc)
7685
            # see comment about AmigaOS4 .so support
7686
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687
            archive_expsym_cmds=''
7688
        ;;
7689
      m68k)
7690
            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)'
7691
            hardcode_libdir_flag_spec='-L$libdir'
7692
            hardcode_minus_L=yes
7693
        ;;
7694
      esac
7695 19 jeremybenn
      ;;
7696
 
7697
    beos*)
7698 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7699 19 jeremybenn
        allow_undefined_flag=unsupported
7700
        # Joseph Beckenbach  says some releases of gcc
7701
        # support --undefined.  This deserves some investigation.  FIXME
7702
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7703
      else
7704
        ld_shlibs=no
7705
      fi
7706
      ;;
7707
 
7708 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
7709
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7710 19 jeremybenn
      # as there is no search path for DLLs.
7711
      hardcode_libdir_flag_spec='-L$libdir'
7712
      allow_undefined_flag=unsupported
7713
      always_export_symbols=no
7714
      enable_shared_with_static_runtimes=yes
7715 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'
7716 19 jeremybenn
 
7717 82 jeremybenn
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7718 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7719
        # If the export-symbols file already is a .def file (1st line
7720
        # is EXPORTS), use it as is; otherwise, prepend...
7721
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7722
          cp $export_symbols $output_objdir/$soname.def;
7723
        else
7724
          echo EXPORTS > $output_objdir/$soname.def;
7725
          cat $export_symbols >> $output_objdir/$soname.def;
7726
        fi~
7727
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7728
      else
7729
        ld_shlibs=no
7730
      fi
7731
      ;;
7732
 
7733
    interix[3-9]*)
7734
      hardcode_direct=no
7735
      hardcode_shlibpath_var=no
7736
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7737
      export_dynamic_flag_spec='${wl}-E'
7738
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7739
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7740
      # default) and relocated if they conflict, which is a slow very memory
7741
      # consuming and fragmenting process.  To avoid this, we pick a random,
7742
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7743
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7744
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7745
      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'
7746
      ;;
7747
 
7748 82 jeremybenn
    gnu* | linux* | tpf* | k*bsd*-gnu)
7749
      tmp_diet=no
7750
      if test "$host_os" = linux-dietlibc; then
7751
        case $cc_basename in
7752
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7753
        esac
7754
      fi
7755
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7756
         && test "$tmp_diet" = no
7757
      then
7758 19 jeremybenn
        tmp_addflag=
7759 82 jeremybenn
        tmp_sharedflag='-shared'
7760 19 jeremybenn
        case $cc_basename,$host_cpu in
7761 82 jeremybenn
        pgcc*)                          # Portland Group C compiler
7762
          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'
7763 19 jeremybenn
          tmp_addflag=' $pic_flag'
7764
          ;;
7765
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7766 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'
7767 19 jeremybenn
          tmp_addflag=' $pic_flag -Mnomain' ;;
7768 82 jeremybenn
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7769 19 jeremybenn
          tmp_addflag=' -i_dynamic' ;;
7770
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7771
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7772
        ifc* | ifort*)                  # Intel Fortran compiler
7773
          tmp_addflag=' -nofor_main' ;;
7774 82 jeremybenn
        lf95*)                          # Lahey Fortran 8.1
7775
          whole_archive_flag_spec=
7776
          tmp_sharedflag='--shared' ;;
7777
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7778
          tmp_sharedflag='-qmkshrobj'
7779
          tmp_addflag= ;;
7780 19 jeremybenn
        esac
7781
        case `$CC -V 2>&1 | sed 5q` in
7782
        *Sun\ C*)                       # Sun C 5.9
7783 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'
7784
          compiler_needs_object=yes
7785 19 jeremybenn
          tmp_sharedflag='-G' ;;
7786
        *Sun\ F*)                       # Sun Fortran 8.3
7787
          tmp_sharedflag='-G' ;;
7788
        esac
7789
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7790
 
7791 82 jeremybenn
        if test "x$supports_anon_versioning" = xyes; then
7792
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7793
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7794
            echo "local: *; };" >> $output_objdir/$libname.ver~
7795
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7796
        fi
7797
 
7798
        case $cc_basename in
7799
        xlf*)
7800
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7801
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7802
          hardcode_libdir_flag_spec=
7803
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
7804
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7805
          if test "x$supports_anon_versioning" = xyes; then
7806
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7807
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7808
              echo "local: *; };" >> $output_objdir/$libname.ver~
7809
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7810
          fi
7811
          ;;
7812
        esac
7813 19 jeremybenn
      else
7814 82 jeremybenn
        ld_shlibs=no
7815 19 jeremybenn
      fi
7816
      ;;
7817
 
7818 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
7819 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7820 19 jeremybenn
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7821
        wlarc=
7822
      else
7823
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7824
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825
      fi
7826
      ;;
7827
 
7828
    solaris*)
7829 82 jeremybenn
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7830 19 jeremybenn
        ld_shlibs=no
7831 82 jeremybenn
        cat <<_LT_EOF 1>&2
7832 19 jeremybenn
 
7833
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7834
*** create shared libraries on Solaris systems.  Therefore, libtool
7835
*** is disabling shared libraries support.  We urge you to upgrade GNU
7836
*** binutils to release 2.9.1 or newer.  Another option is to modify
7837
*** your PATH or compiler configuration so that the native linker is
7838
*** used, and then restart.
7839
 
7840 82 jeremybenn
_LT_EOF
7841
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7842 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7843
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7844
      else
7845
        ld_shlibs=no
7846
      fi
7847
      ;;
7848
 
7849
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7850
      case `$LD -v 2>&1` in
7851
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7852
        ld_shlibs=no
7853
        cat <<_LT_EOF 1>&2
7854
 
7855
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7856
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7857
*** is disabling shared libraries support.  We urge you to upgrade GNU
7858
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7859
*** your PATH or compiler configuration so that the native linker is
7860
*** used, and then restart.
7861
 
7862
_LT_EOF
7863
        ;;
7864
        *)
7865 82 jeremybenn
          # For security reasons, it is highly recommended that you always
7866
          # use absolute paths for naming shared libraries, and exclude the
7867
          # DT_RUNPATH tag from executables and libraries.  But doing so
7868
          # requires that you compile everything twice, which is a pain.
7869
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7870
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7871
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7872
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7873 19 jeremybenn
          else
7874
            ld_shlibs=no
7875
          fi
7876
        ;;
7877
      esac
7878
      ;;
7879
 
7880
    sunos4*)
7881
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7882
      wlarc=
7883
      hardcode_direct=yes
7884
      hardcode_shlibpath_var=no
7885
      ;;
7886
 
7887
    *)
7888 82 jeremybenn
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7889 19 jeremybenn
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7890
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7891
      else
7892
        ld_shlibs=no
7893
      fi
7894
      ;;
7895
    esac
7896
 
7897
    if test "$ld_shlibs" = no; then
7898
      runpath_var=
7899
      hardcode_libdir_flag_spec=
7900
      export_dynamic_flag_spec=
7901
      whole_archive_flag_spec=
7902
    fi
7903
  else
7904
    # PORTME fill in a description of your system's linker (not GNU ld)
7905
    case $host_os in
7906
    aix3*)
7907
      allow_undefined_flag=unsupported
7908
      always_export_symbols=yes
7909
      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'
7910
      # Note: this linker hardcodes the directories in LIBPATH if there
7911
      # are no directories specified by -L.
7912
      hardcode_minus_L=yes
7913
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7914
        # Neither direct hardcoding nor static linking is supported with a
7915
        # broken collect2.
7916
        hardcode_direct=unsupported
7917
      fi
7918
      ;;
7919
 
7920 82 jeremybenn
    aix[4-9]*)
7921 19 jeremybenn
      if test "$host_cpu" = ia64; then
7922
        # On IA64, the linker does run time linking by default, so we don't
7923
        # have to do anything special.
7924
        aix_use_runtimelinking=no
7925
        exp_sym_flag='-Bexport'
7926
        no_entry_flag=""
7927
      else
7928
        # If we're using GNU nm, then we don't want the "-C" option.
7929
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7930 82 jeremybenn
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7931
          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'
7932 19 jeremybenn
        else
7933 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'
7934 19 jeremybenn
        fi
7935
        aix_use_runtimelinking=no
7936
 
7937
        # Test if we are trying to use run time linking or normal
7938
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7939
        # need to do runtime linking.
7940 82 jeremybenn
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7941 19 jeremybenn
          for ld_flag in $LDFLAGS; do
7942 82 jeremybenn
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7943
            aix_use_runtimelinking=yes
7944
            break
7945
          fi
7946 19 jeremybenn
          done
7947
          ;;
7948
        esac
7949
 
7950
        exp_sym_flag='-bexport'
7951
        no_entry_flag='-bnoentry'
7952
      fi
7953
 
7954
      # When large executables or shared objects are built, AIX ld can
7955
      # have problems creating the table of contents.  If linking a library
7956
      # or program results in "error TOC overflow" add -mminimal-toc to
7957
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7958
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7959
 
7960
      archive_cmds=''
7961
      hardcode_direct=yes
7962 82 jeremybenn
      hardcode_direct_absolute=yes
7963 19 jeremybenn
      hardcode_libdir_separator=':'
7964
      link_all_deplibs=yes
7965 82 jeremybenn
      file_list_spec='${wl}-f,'
7966 19 jeremybenn
 
7967
      if test "$GCC" = yes; then
7968
        case $host_os in aix4.[012]|aix4.[012].*)
7969
        # We only want to do this on AIX 4.2 and lower, the check
7970
        # below for broken collect2 doesn't work under 4.3+
7971
          collect2name=`${CC} -print-prog-name=collect2`
7972 82 jeremybenn
          if test -f "$collect2name" &&
7973
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7974 19 jeremybenn
          then
7975 82 jeremybenn
          # We have reworked collect2
7976
          :
7977 19 jeremybenn
          else
7978 82 jeremybenn
          # We have old collect2
7979
          hardcode_direct=unsupported
7980
          # It fails to find uninstalled libraries when the uninstalled
7981
          # path is not listed in the libpath.  Setting hardcode_minus_L
7982
          # to unsupported forces relinking
7983
          hardcode_minus_L=yes
7984
          hardcode_libdir_flag_spec='-L$libdir'
7985
          hardcode_libdir_separator=
7986 19 jeremybenn
          fi
7987
          ;;
7988
        esac
7989
        shared_flag='-shared'
7990
        if test "$aix_use_runtimelinking" = yes; then
7991
          shared_flag="$shared_flag "'${wl}-G'
7992
        fi
7993 93 jeremybenn
        link_all_deplibs=no
7994 19 jeremybenn
      else
7995
        # not using gcc
7996
        if test "$host_cpu" = ia64; then
7997 82 jeremybenn
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7998
        # chokes on -Wl,-G. The following line is correct:
7999 19 jeremybenn
          shared_flag='-G'
8000
        else
8001
          if test "$aix_use_runtimelinking" = yes; then
8002
            shared_flag='${wl}-G'
8003
          else
8004
            shared_flag='${wl}-bM:SRE'
8005
          fi
8006
        fi
8007
      fi
8008
 
8009 82 jeremybenn
      export_dynamic_flag_spec='${wl}-bexpall'
8010 19 jeremybenn
      # It seems that -bexpall does not export symbols beginning with
8011
      # underscore (_), so it is better to generate a list of symbols to export.
8012
      always_export_symbols=yes
8013
      if test "$aix_use_runtimelinking" = yes; then
8014
        # Warning - without using the other runtime loading flags (-brtl),
8015
        # -berok will link without error, but may produce a broken library.
8016
        allow_undefined_flag='-berok'
8017 82 jeremybenn
        # Determine the default libpath from the value encoded in an
8018
        # empty executable.
8019 118 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 19 jeremybenn
/* end confdefs.h.  */
8021
 
8022
int
8023
main ()
8024
{
8025
 
8026
  ;
8027
  return 0;
8028
}
8029
_ACEOF
8030 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8031 19 jeremybenn
 
8032
lt_aix_libpath_sed='
8033
    /Import File Strings/,/^$/ {
8034
        /^0/ {
8035
            s/^0  *\(.*\)$/\1/
8036
            p
8037
        }
8038
    }'
8039
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8040
# Check for a 64-bit object if we didn't find anything.
8041
if test -z "$aix_libpath"; then
8042
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8043
fi
8044
fi
8045 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8046
    conftest$ac_exeext conftest.$ac_ext
8047 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8048
 
8049 82 jeremybenn
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8050
        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"
8051
      else
8052 19 jeremybenn
        if test "$host_cpu" = ia64; then
8053
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8054
          allow_undefined_flag="-z nodefs"
8055
          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"
8056
        else
8057 82 jeremybenn
         # Determine the default libpath from the value encoded in an
8058
         # empty executable.
8059 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 19 jeremybenn
/* end confdefs.h.  */
8061
 
8062
int
8063
main ()
8064
{
8065
 
8066
  ;
8067
  return 0;
8068
}
8069
_ACEOF
8070 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8071 19 jeremybenn
 
8072
lt_aix_libpath_sed='
8073
    /Import File Strings/,/^$/ {
8074
        /^0/ {
8075
            s/^0  *\(.*\)$/\1/
8076
            p
8077
        }
8078
    }'
8079
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8080
# Check for a 64-bit object if we didn't find anything.
8081
if test -z "$aix_libpath"; then
8082
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8083
fi
8084
fi
8085 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8086
    conftest$ac_exeext conftest.$ac_ext
8087 19 jeremybenn
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8088
 
8089
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8090
          # Warning - without using the other run time loading flags,
8091
          # -berok will link without error, but may produce a broken library.
8092
          no_undefined_flag=' ${wl}-bernotok'
8093
          allow_undefined_flag=' ${wl}-berok'
8094
          # Exported symbols can be pulled into shared objects from archives
8095
          whole_archive_flag_spec='$convenience'
8096
          archive_cmds_need_lc=yes
8097
          # This is similar to how AIX traditionally builds its shared libraries.
8098
          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'
8099
        fi
8100
      fi
8101
      ;;
8102
 
8103
    amigaos*)
8104 82 jeremybenn
      case $host_cpu in
8105
      powerpc)
8106
            # see comment about AmigaOS4 .so support
8107
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108
            archive_expsym_cmds=''
8109
        ;;
8110
      m68k)
8111
            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)'
8112
            hardcode_libdir_flag_spec='-L$libdir'
8113
            hardcode_minus_L=yes
8114
        ;;
8115
      esac
8116 19 jeremybenn
      ;;
8117
 
8118
    bsdi[45]*)
8119
      export_dynamic_flag_spec=-rdynamic
8120
      ;;
8121
 
8122 82 jeremybenn
    cygwin* | mingw* | pw32* | cegcc*)
8123 19 jeremybenn
      # When not using gcc, we currently assume that we are using
8124
      # Microsoft Visual C++.
8125
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8126
      # no search path for DLLs.
8127
      hardcode_libdir_flag_spec=' '
8128
      allow_undefined_flag=unsupported
8129
      # Tell ltmain to make .lib files, not .a files.
8130
      libext=lib
8131
      # Tell ltmain to make .dll files, not .so files.
8132
      shrext_cmds=".dll"
8133
      # FIXME: Setting linknames here is a bad hack.
8134 82 jeremybenn
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8135 19 jeremybenn
      # The linker will automatically build a .lib file if we build a DLL.
8136 82 jeremybenn
      old_archive_from_new_cmds='true'
8137 19 jeremybenn
      # FIXME: Should let the user specify the lib program.
8138
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8139
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8140
      enable_shared_with_static_runtimes=yes
8141
      ;;
8142
 
8143
    darwin* | rhapsody*)
8144 82 jeremybenn
 
8145
 
8146
  archive_cmds_need_lc=no
8147
  hardcode_direct=no
8148
  hardcode_automatic=yes
8149
  hardcode_shlibpath_var=unsupported
8150
  whole_archive_flag_spec=''
8151
  link_all_deplibs=yes
8152
  allow_undefined_flag="$_lt_dar_allow_undefined"
8153
  case $cc_basename in
8154
     ifort*) _lt_dar_can_shared=yes ;;
8155
     *) _lt_dar_can_shared=$GCC ;;
8156
  esac
8157
  if test "$_lt_dar_can_shared" = "yes"; then
8158
    output_verbose_link_cmd=echo
8159
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8160
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8161
    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}"
8162
    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}"
8163
 
8164
  else
8165
  ld_shlibs=no
8166
  fi
8167
 
8168 19 jeremybenn
      ;;
8169
 
8170
    dgux*)
8171
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8172
      hardcode_libdir_flag_spec='-L$libdir'
8173
      hardcode_shlibpath_var=no
8174
      ;;
8175
 
8176
    freebsd1*)
8177
      ld_shlibs=no
8178
      ;;
8179
 
8180
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8181
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8182
    # does not break anything, and helps significantly (at the cost of a little
8183
    # extra space).
8184
    freebsd2.2*)
8185
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8186
      hardcode_libdir_flag_spec='-R$libdir'
8187
      hardcode_direct=yes
8188
      hardcode_shlibpath_var=no
8189
      ;;
8190
 
8191
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8192
    freebsd2*)
8193
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8194
      hardcode_direct=yes
8195
      hardcode_minus_L=yes
8196
      hardcode_shlibpath_var=no
8197
      ;;
8198
 
8199
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8200
    freebsd* | dragonfly*)
8201
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8202
      hardcode_libdir_flag_spec='-R$libdir'
8203
      hardcode_direct=yes
8204
      hardcode_shlibpath_var=no
8205
      ;;
8206
 
8207
    hpux9*)
8208
      if test "$GCC" = yes; then
8209 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'
8210 19 jeremybenn
      else
8211 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'
8212 19 jeremybenn
      fi
8213
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8214
      hardcode_libdir_separator=:
8215
      hardcode_direct=yes
8216
 
8217
      # hardcode_minus_L: Not really in the search PATH,
8218
      # but as the default location of the library.
8219
      hardcode_minus_L=yes
8220
      export_dynamic_flag_spec='${wl}-E'
8221
      ;;
8222
 
8223
    hpux10*)
8224
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8226
      else
8227
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8228
      fi
8229
      if test "$with_gnu_ld" = no; then
8230
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8231 82 jeremybenn
        hardcode_libdir_flag_spec_ld='+b $libdir'
8232 19 jeremybenn
        hardcode_libdir_separator=:
8233
        hardcode_direct=yes
8234 82 jeremybenn
        hardcode_direct_absolute=yes
8235 19 jeremybenn
        export_dynamic_flag_spec='${wl}-E'
8236
        # hardcode_minus_L: Not really in the search PATH,
8237
        # but as the default location of the library.
8238
        hardcode_minus_L=yes
8239
      fi
8240
      ;;
8241
 
8242
    hpux11*)
8243
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8244
        case $host_cpu in
8245
        hppa*64*)
8246
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247
          ;;
8248
        ia64*)
8249 82 jeremybenn
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250 19 jeremybenn
          ;;
8251
        *)
8252
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253
          ;;
8254
        esac
8255
      else
8256
        case $host_cpu in
8257
        hppa*64*)
8258
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8259
          ;;
8260
        ia64*)
8261
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8262
          ;;
8263
        *)
8264
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8265
          ;;
8266
        esac
8267
      fi
8268
      if test "$with_gnu_ld" = no; then
8269
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8270
        hardcode_libdir_separator=:
8271
 
8272
        case $host_cpu in
8273
        hppa*64*|ia64*)
8274
          hardcode_direct=no
8275
          hardcode_shlibpath_var=no
8276
          ;;
8277
        *)
8278
          hardcode_direct=yes
8279 82 jeremybenn
          hardcode_direct_absolute=yes
8280 19 jeremybenn
          export_dynamic_flag_spec='${wl}-E'
8281
 
8282
          # hardcode_minus_L: Not really in the search PATH,
8283
          # but as the default location of the library.
8284
          hardcode_minus_L=yes
8285
          ;;
8286
        esac
8287
      fi
8288
      ;;
8289
 
8290
    irix5* | irix6* | nonstopux*)
8291
      if test "$GCC" = yes; then
8292 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'
8293
        # Try to use the -exported_symbol ld option, if it does not
8294
        # work, assume that -exports_file does not work either and
8295
        # implicitly export all symbols.
8296
        save_LDFLAGS="$LDFLAGS"
8297
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8298 118 jeremybenn
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299
/* end confdefs.h.  */
8300 82 jeremybenn
int foo(void) {}
8301
_ACEOF
8302 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
8303 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'
8304
 
8305
fi
8306 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
8307
    conftest$ac_exeext conftest.$ac_ext
8308 82 jeremybenn
        LDFLAGS="$save_LDFLAGS"
8309 19 jeremybenn
      else
8310 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'
8311
        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'
8312 19 jeremybenn
      fi
8313 82 jeremybenn
      archive_cmds_need_lc='no'
8314 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8315
      hardcode_libdir_separator=:
8316 82 jeremybenn
      inherit_rpath=yes
8317 19 jeremybenn
      link_all_deplibs=yes
8318
      ;;
8319
 
8320 93 jeremybenn
    netbsd* | netbsdelf*-gnu)
8321 82 jeremybenn
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8322 19 jeremybenn
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8323
      else
8324
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8325
      fi
8326
      hardcode_libdir_flag_spec='-R$libdir'
8327
      hardcode_direct=yes
8328
      hardcode_shlibpath_var=no
8329
      ;;
8330
 
8331
    newsos6)
8332
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8333
      hardcode_direct=yes
8334
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8335
      hardcode_libdir_separator=:
8336
      hardcode_shlibpath_var=no
8337
      ;;
8338
 
8339 82 jeremybenn
    *nto* | *qnx*)
8340
      ;;
8341
 
8342 19 jeremybenn
    openbsd*)
8343
      if test -f /usr/libexec/ld.so; then
8344
        hardcode_direct=yes
8345
        hardcode_shlibpath_var=no
8346 82 jeremybenn
        hardcode_direct_absolute=yes
8347
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8348 19 jeremybenn
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8349
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8350
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8351
          export_dynamic_flag_spec='${wl}-E'
8352
        else
8353
          case $host_os in
8354
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8355
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356
             hardcode_libdir_flag_spec='-R$libdir'
8357
             ;;
8358
           *)
8359
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8360
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8361
             ;;
8362
          esac
8363 82 jeremybenn
        fi
8364 19 jeremybenn
      else
8365
        ld_shlibs=no
8366
      fi
8367
      ;;
8368
 
8369
    os2*)
8370
      hardcode_libdir_flag_spec='-L$libdir'
8371
      hardcode_minus_L=yes
8372
      allow_undefined_flag=unsupported
8373 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'
8374
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375 19 jeremybenn
      ;;
8376
 
8377
    osf3*)
8378
      if test "$GCC" = yes; then
8379
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380 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'
8381 19 jeremybenn
      else
8382
        allow_undefined_flag=' -expect_unresolved \*'
8383 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'
8384 19 jeremybenn
      fi
8385 82 jeremybenn
      archive_cmds_need_lc='no'
8386 19 jeremybenn
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8387
      hardcode_libdir_separator=:
8388
      ;;
8389
 
8390
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8391
      if test "$GCC" = yes; then
8392
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8393 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'
8394 19 jeremybenn
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8395
      else
8396
        allow_undefined_flag=' -expect_unresolved \*'
8397 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'
8398
        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~
8399
        $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'
8400 19 jeremybenn
 
8401
        # Both c and cxx compiler support -rpath directly
8402
        hardcode_libdir_flag_spec='-rpath $libdir'
8403
      fi
8404 82 jeremybenn
      archive_cmds_need_lc='no'
8405 19 jeremybenn
      hardcode_libdir_separator=:
8406
      ;;
8407
 
8408
    solaris*)
8409 82 jeremybenn
      no_undefined_flag=' -z defs'
8410 19 jeremybenn
      if test "$GCC" = yes; then
8411
        wlarc='${wl}'
8412 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8413
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8414
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8415 19 jeremybenn
      else
8416 82 jeremybenn
        case `$CC -V 2>&1` in
8417
        *"Compilers 5.0"*)
8418
          wlarc=''
8419
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8421
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8422
          ;;
8423
        *)
8424
          wlarc='${wl}'
8425
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8426
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8427
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428
          ;;
8429
        esac
8430 19 jeremybenn
      fi
8431
      hardcode_libdir_flag_spec='-R$libdir'
8432
      hardcode_shlibpath_var=no
8433
      case $host_os in
8434
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8435
      *)
8436
        # The compiler driver will combine and reorder linker options,
8437
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
8438
        # but is careful enough not to reorder.
8439 82 jeremybenn
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8440 19 jeremybenn
        if test "$GCC" = yes; then
8441
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8442
        else
8443
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8444
        fi
8445
        ;;
8446
      esac
8447
      link_all_deplibs=yes
8448
      ;;
8449
 
8450
    sunos4*)
8451
      if test "x$host_vendor" = xsequent; then
8452
        # Use $CC to link under sequent, because it throws in some extra .o
8453
        # files that make .init and .fini sections work.
8454
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8455
      else
8456
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8457
      fi
8458
      hardcode_libdir_flag_spec='-L$libdir'
8459
      hardcode_direct=yes
8460
      hardcode_minus_L=yes
8461
      hardcode_shlibpath_var=no
8462
      ;;
8463
 
8464
    sysv4)
8465
      case $host_vendor in
8466
        sni)
8467
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468
          hardcode_direct=yes # is this really true???
8469
        ;;
8470
        siemens)
8471
          ## LD is ld it makes a PLAMLIB
8472
          ## CC just makes a GrossModule.
8473
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8474
          reload_cmds='$CC -r -o $output$reload_objs'
8475
          hardcode_direct=no
8476
        ;;
8477
        motorola)
8478
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8480
        ;;
8481
      esac
8482
      runpath_var='LD_RUN_PATH'
8483
      hardcode_shlibpath_var=no
8484
      ;;
8485
 
8486
    sysv4.3*)
8487
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488
      hardcode_shlibpath_var=no
8489
      export_dynamic_flag_spec='-Bexport'
8490
      ;;
8491
 
8492
    sysv4*MP*)
8493
      if test -d /usr/nec; then
8494
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8495
        hardcode_shlibpath_var=no
8496
        runpath_var=LD_RUN_PATH
8497
        hardcode_runpath_var=yes
8498
        ld_shlibs=yes
8499
      fi
8500
      ;;
8501
 
8502
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8503
      no_undefined_flag='${wl}-z,text'
8504
      archive_cmds_need_lc=no
8505
      hardcode_shlibpath_var=no
8506
      runpath_var='LD_RUN_PATH'
8507
 
8508
      if test "$GCC" = yes; then
8509
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8510
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8511
      else
8512
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8513
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8514
      fi
8515
      ;;
8516
 
8517
    sysv5* | sco3.2v5* | sco5v6*)
8518
      # Note: We can NOT use -z defs as we might desire, because we do not
8519
      # link with -lc, and that would cause any symbols used from libc to
8520
      # always be unresolved, which means just about no library would
8521
      # ever link correctly.  If we're not using GNU ld we use -z text
8522
      # though, which does catch some bad symbols but isn't as heavy-handed
8523
      # as -z defs.
8524
      no_undefined_flag='${wl}-z,text'
8525
      allow_undefined_flag='${wl}-z,nodefs'
8526
      archive_cmds_need_lc=no
8527
      hardcode_shlibpath_var=no
8528 82 jeremybenn
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
8529 19 jeremybenn
      hardcode_libdir_separator=':'
8530
      link_all_deplibs=yes
8531
      export_dynamic_flag_spec='${wl}-Bexport'
8532
      runpath_var='LD_RUN_PATH'
8533
 
8534
      if test "$GCC" = yes; then
8535 82 jeremybenn
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8536
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 19 jeremybenn
      else
8538 82 jeremybenn
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8540 19 jeremybenn
      fi
8541
      ;;
8542
 
8543
    uts4*)
8544
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8545
      hardcode_libdir_flag_spec='-L$libdir'
8546
      hardcode_shlibpath_var=no
8547
      ;;
8548
 
8549
    *)
8550
      ld_shlibs=no
8551
      ;;
8552
    esac
8553 82 jeremybenn
 
8554
    if test x$host_vendor = xsni; then
8555
      case $host in
8556
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8557
        export_dynamic_flag_spec='${wl}-Blargedynsym'
8558
        ;;
8559
      esac
8560
    fi
8561 19 jeremybenn
  fi
8562
 
8563 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8564 82 jeremybenn
$as_echo "$ld_shlibs" >&6; }
8565 19 jeremybenn
test "$ld_shlibs" = no && can_build_shared=no
8566
 
8567 82 jeremybenn
with_gnu_ld=$with_gnu_ld
8568
 
8569
 
8570
 
8571
 
8572
 
8573
 
8574
 
8575
 
8576
 
8577
 
8578
 
8579
 
8580
 
8581
 
8582
 
8583 19 jeremybenn
#
8584
# Do we need to explicitly link libc?
8585
#
8586
case "x$archive_cmds_need_lc" in
8587
x|xyes)
8588
  # Assume -lc should be added
8589
  archive_cmds_need_lc=yes
8590
 
8591
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8592
    case $archive_cmds in
8593
    *'~'*)
8594
      # FIXME: we may have to deal with multi-command sequences.
8595
      ;;
8596
    '$CC '*)
8597
      # Test whether the compiler implicitly links with -lc since on some
8598
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8599
      # to ld, don't add -lc before -lgcc.
8600 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8601 82 jeremybenn
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8602
      $RM conftest*
8603 19 jeremybenn
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
 
8605 118 jeremybenn
      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8606 19 jeremybenn
  (eval $ac_compile) 2>&5
8607
  ac_status=$?
8608 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8609
  test $ac_status = 0; } 2>conftest.err; then
8610 19 jeremybenn
        soname=conftest
8611
        lib=conftest
8612
        libobjs=conftest.$ac_objext
8613
        deplibs=
8614
        wl=$lt_prog_compiler_wl
8615
        pic_flag=$lt_prog_compiler_pic
8616
        compiler_flags=-v
8617
        linker_flags=-v
8618
        verstring=
8619
        output_objdir=.
8620
        libname=conftest
8621
        lt_save_allow_undefined_flag=$allow_undefined_flag
8622
        allow_undefined_flag=
8623 118 jeremybenn
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8624 82 jeremybenn
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8625 19 jeremybenn
  ac_status=$?
8626 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8627
  test $ac_status = 0; }
8628 19 jeremybenn
        then
8629
          archive_cmds_need_lc=no
8630
        else
8631
          archive_cmds_need_lc=yes
8632
        fi
8633
        allow_undefined_flag=$lt_save_allow_undefined_flag
8634
      else
8635
        cat conftest.err 1>&5
8636
      fi
8637 82 jeremybenn
      $RM conftest*
8638 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8639 82 jeremybenn
$as_echo "$archive_cmds_need_lc" >&6; }
8640 19 jeremybenn
      ;;
8641
    esac
8642
  fi
8643
  ;;
8644
esac
8645
 
8646
 
8647 82 jeremybenn
 
8648
 
8649
 
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 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8803 82 jeremybenn
$as_echo_n "checking dynamic linker characteristics... " >&6; }
8804
 
8805 19 jeremybenn
if test "$GCC" = yes; then
8806
  case $host_os in
8807
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8808
    *) lt_awk_arg="/^libraries:/" ;;
8809
  esac
8810
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8811 82 jeremybenn
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8812 19 jeremybenn
    # if the path contains ";" then we assume it to be the separator
8813
    # otherwise default to the standard path separator (i.e. ":") - it is
8814
    # assumed that no part of a normal pathname contains ";" but that should
8815
    # okay in the real world where ";" in dirpaths is itself problematic.
8816 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8817 19 jeremybenn
  else
8818 82 jeremybenn
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8819 19 jeremybenn
  fi
8820
  # Ok, now we have the path, separated by spaces, we can step through it
8821
  # and add multilib dir if necessary.
8822
  lt_tmp_lt_search_path_spec=
8823
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8824
  for lt_sys_path in $lt_search_path_spec; do
8825
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8826
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8827
    else
8828
      test -d "$lt_sys_path" && \
8829
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8830
    fi
8831
  done
8832 82 jeremybenn
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8833 19 jeremybenn
BEGIN {RS=" "; FS="/|\n";} {
8834
  lt_foo="";
8835
  lt_count=0;
8836
  for (lt_i = NF; lt_i > 0; lt_i--) {
8837
    if ($lt_i != "" && $lt_i != ".") {
8838
      if ($lt_i == "..") {
8839
        lt_count++;
8840
      } else {
8841
        if (lt_count == 0) {
8842
          lt_foo="/" $lt_i lt_foo;
8843
        } else {
8844
          lt_count--;
8845
        }
8846
      }
8847
    }
8848
  }
8849
  if (lt_foo != "") { lt_freq[lt_foo]++; }
8850
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8851
}'`
8852 82 jeremybenn
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8853 19 jeremybenn
else
8854
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8855
fi
8856 82 jeremybenn
library_names_spec=
8857
libname_spec='lib$name'
8858
soname_spec=
8859
shrext_cmds=".so"
8860
postinstall_cmds=
8861
postuninstall_cmds=
8862
finish_cmds=
8863
finish_eval=
8864
shlibpath_var=
8865
shlibpath_overrides_runpath=unknown
8866
version_type=none
8867
dynamic_linker="$host_os ld.so"
8868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869 19 jeremybenn
need_lib_prefix=unknown
8870
hardcode_into_libs=no
8871
 
8872
# when you set need_version to no, make sure it does not cause -set_version
8873
# flags to be left without arguments
8874
need_version=unknown
8875
 
8876
case $host_os in
8877
aix3*)
8878
  version_type=linux
8879
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8880
  shlibpath_var=LIBPATH
8881
 
8882
  # AIX 3 has no versioning support, so we append a major version to the name.
8883
  soname_spec='${libname}${release}${shared_ext}$major'
8884
  ;;
8885
 
8886 82 jeremybenn
aix[4-9]*)
8887 19 jeremybenn
  version_type=linux
8888
  need_lib_prefix=no
8889
  need_version=no
8890
  hardcode_into_libs=yes
8891
  if test "$host_cpu" = ia64; then
8892
    # AIX 5 supports IA64
8893
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8894
    shlibpath_var=LD_LIBRARY_PATH
8895
  else
8896
    # With GCC up to 2.95.x, collect2 would create an import file
8897
    # for dependence libraries.  The import file would start with
8898
    # the line `#! .'.  This would cause the generated library to
8899
    # depend on `.', always an invalid library.  This was fixed in
8900
    # development snapshots of GCC prior to 3.0.
8901
    case $host_os in
8902
      aix4 | aix4.[01] | aix4.[01].*)
8903
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8904
           echo ' yes '
8905 82 jeremybenn
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8906 19 jeremybenn
        :
8907
      else
8908
        can_build_shared=no
8909
      fi
8910
      ;;
8911
    esac
8912
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8913
    # soname into executable. Probably we can add versioning support to
8914
    # collect2, so additional links can be useful in future.
8915
    if test "$aix_use_runtimelinking" = yes; then
8916
      # If using run time linking (on AIX 4.2 or later) use lib.so
8917
      # instead of lib.a to let people know that these are not
8918
      # typical AIX shared libraries.
8919
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920
    else
8921
      # We preserve .a as extension for shared libraries through AIX4.2
8922
      # and later when we are not doing run time linking.
8923
      library_names_spec='${libname}${release}.a $libname.a'
8924
      soname_spec='${libname}${release}${shared_ext}$major'
8925
    fi
8926
    shlibpath_var=LIBPATH
8927
  fi
8928
  ;;
8929
 
8930
amigaos*)
8931 82 jeremybenn
  case $host_cpu in
8932
  powerpc)
8933
    # Since July 2007 AmigaOS4 officially supports .so libraries.
8934
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8935
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936
    ;;
8937
  m68k)
8938
    library_names_spec='$libname.ixlibrary $libname.a'
8939
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
8940
    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'
8941
    ;;
8942
  esac
8943 19 jeremybenn
  ;;
8944
 
8945
beos*)
8946
  library_names_spec='${libname}${shared_ext}'
8947
  dynamic_linker="$host_os ld.so"
8948
  shlibpath_var=LIBRARY_PATH
8949
  ;;
8950
 
8951
bsdi[45]*)
8952
  version_type=linux
8953
  need_version=no
8954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955
  soname_spec='${libname}${release}${shared_ext}$major'
8956
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8957
  shlibpath_var=LD_LIBRARY_PATH
8958
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8959
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8960
  # the default ld.so.conf also contains /usr/contrib/lib and
8961
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8962
  # libtool to hard-code these into programs
8963
  ;;
8964
 
8965 82 jeremybenn
cygwin* | mingw* | pw32* | cegcc*)
8966 19 jeremybenn
  version_type=windows
8967
  shrext_cmds=".dll"
8968
  need_version=no
8969
  need_lib_prefix=no
8970
 
8971
  case $GCC,$host_os in
8972 82 jeremybenn
  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8973 19 jeremybenn
    library_names_spec='$libname.dll.a'
8974
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8975
    postinstall_cmds='base_file=`basename \${file}`~
8976 82 jeremybenn
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8977 19 jeremybenn
      dldir=$destdir/`dirname \$dlpath`~
8978
      test -d \$dldir || mkdir -p \$dldir~
8979
      $install_prog $dir/$dlname \$dldir/$dlname~
8980 82 jeremybenn
      chmod a+x \$dldir/$dlname~
8981
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8982
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8983
      fi'
8984 19 jeremybenn
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8985
      dlpath=$dir/\$dldll~
8986 82 jeremybenn
       $RM \$dlpath'
8987 19 jeremybenn
    shlibpath_overrides_runpath=yes
8988
 
8989
    case $host_os in
8990
    cygwin*)
8991
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8992
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8994
      ;;
8995 82 jeremybenn
    mingw* | cegcc*)
8996 19 jeremybenn
      # MinGW DLLs use traditional 'lib' prefix
8997
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8998 82 jeremybenn
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8999
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9000 19 jeremybenn
        # It is most probably a Windows format PATH printed by
9001
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9002
        # path with ; separators, and with drive letters. We can handle the
9003
        # drive letters (cygwin fileutils understands them), so leave them,
9004
        # especially as we might pass files found there to a mingw objdump,
9005
        # which wouldn't understand a cygwinified path. Ahh.
9006 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9007 19 jeremybenn
      else
9008 82 jeremybenn
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9009 19 jeremybenn
      fi
9010
      ;;
9011
    pw32*)
9012
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9013
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014
      ;;
9015
    esac
9016
    ;;
9017
 
9018
  *)
9019
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9020
    ;;
9021
  esac
9022
  dynamic_linker='Win32 ld.exe'
9023
  # FIXME: first we should search . and the directory the executable is in
9024
  shlibpath_var=PATH
9025
  ;;
9026
 
9027
darwin* | rhapsody*)
9028
  dynamic_linker="$host_os dyld"
9029
  version_type=darwin
9030
  need_lib_prefix=no
9031
  need_version=no
9032 82 jeremybenn
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9033 19 jeremybenn
  soname_spec='${libname}${release}${major}$shared_ext'
9034
  shlibpath_overrides_runpath=yes
9035
  shlibpath_var=DYLD_LIBRARY_PATH
9036
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9037
 
9038
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9039
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9040
  ;;
9041
 
9042
dgux*)
9043
  version_type=linux
9044
  need_lib_prefix=no
9045
  need_version=no
9046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9047
  soname_spec='${libname}${release}${shared_ext}$major'
9048
  shlibpath_var=LD_LIBRARY_PATH
9049
  ;;
9050
 
9051
freebsd1*)
9052
  dynamic_linker=no
9053
  ;;
9054
 
9055
freebsd* | dragonfly*)
9056
  # DragonFly does not have aout.  When/if they implement a new
9057
  # versioning mechanism, adjust this.
9058
  if test -x /usr/bin/objformat; then
9059
    objformat=`/usr/bin/objformat`
9060
  else
9061
    case $host_os in
9062
    freebsd[123]*) objformat=aout ;;
9063
    *) objformat=elf ;;
9064
    esac
9065
  fi
9066
  version_type=freebsd-$objformat
9067
  case $version_type in
9068
    freebsd-elf*)
9069
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9070
      need_version=no
9071
      need_lib_prefix=no
9072
      ;;
9073
    freebsd-*)
9074
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9075
      need_version=yes
9076
      ;;
9077
  esac
9078
  shlibpath_var=LD_LIBRARY_PATH
9079
  case $host_os in
9080
  freebsd2*)
9081
    shlibpath_overrides_runpath=yes
9082
    ;;
9083
  freebsd3.[01]* | freebsdelf3.[01]*)
9084
    shlibpath_overrides_runpath=yes
9085
    hardcode_into_libs=yes
9086
    ;;
9087
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9088
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9089
    shlibpath_overrides_runpath=no
9090
    hardcode_into_libs=yes
9091
    ;;
9092
  *) # from 4.6 on, and DragonFly
9093
    shlibpath_overrides_runpath=yes
9094
    hardcode_into_libs=yes
9095
    ;;
9096
  esac
9097
  ;;
9098
 
9099
gnu*)
9100
  version_type=linux
9101
  need_lib_prefix=no
9102
  need_version=no
9103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9104
  soname_spec='${libname}${release}${shared_ext}$major'
9105
  shlibpath_var=LD_LIBRARY_PATH
9106
  hardcode_into_libs=yes
9107
  ;;
9108
 
9109
hpux9* | hpux10* | hpux11*)
9110
  # Give a soname corresponding to the major version so that dld.sl refuses to
9111
  # link against other versions.
9112
  version_type=sunos
9113
  need_lib_prefix=no
9114
  need_version=no
9115
  case $host_cpu in
9116
  ia64*)
9117
    shrext_cmds='.so'
9118
    hardcode_into_libs=yes
9119
    dynamic_linker="$host_os dld.so"
9120
    shlibpath_var=LD_LIBRARY_PATH
9121
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9122
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123
    soname_spec='${libname}${release}${shared_ext}$major'
9124
    if test "X$HPUX_IA64_MODE" = X32; then
9125
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9126
    else
9127
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9128
    fi
9129
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9130
    ;;
9131 82 jeremybenn
  hppa*64*)
9132 19 jeremybenn
    shrext_cmds='.sl'
9133 82 jeremybenn
    hardcode_into_libs=yes
9134 19 jeremybenn
    dynamic_linker="$host_os dld.sl"
9135 82 jeremybenn
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9136
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9137
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138
    soname_spec='${libname}${release}${shared_ext}$major'
9139
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9140
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9141
    ;;
9142
  *)
9143
    shrext_cmds='.sl'
9144
    dynamic_linker="$host_os dld.sl"
9145 19 jeremybenn
    shlibpath_var=SHLIB_PATH
9146
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148
    soname_spec='${libname}${release}${shared_ext}$major'
9149
    ;;
9150
  esac
9151
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9152
  postinstall_cmds='chmod 555 $lib'
9153
  ;;
9154
 
9155
interix[3-9]*)
9156
  version_type=linux
9157
  need_lib_prefix=no
9158
  need_version=no
9159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9160
  soname_spec='${libname}${release}${shared_ext}$major'
9161
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9162
  shlibpath_var=LD_LIBRARY_PATH
9163
  shlibpath_overrides_runpath=no
9164
  hardcode_into_libs=yes
9165
  ;;
9166
 
9167
irix5* | irix6* | nonstopux*)
9168
  case $host_os in
9169
    nonstopux*) version_type=nonstopux ;;
9170
    *)
9171
        if test "$lt_cv_prog_gnu_ld" = yes; then
9172
                version_type=linux
9173
        else
9174
                version_type=irix
9175
        fi ;;
9176
  esac
9177
  need_lib_prefix=no
9178
  need_version=no
9179
  soname_spec='${libname}${release}${shared_ext}$major'
9180
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9181
  case $host_os in
9182
  irix5* | nonstopux*)
9183
    libsuff= shlibsuff=
9184
    ;;
9185
  *)
9186
    case $LD in # libtool.m4 will add one of these switches to LD
9187
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9188
      libsuff= shlibsuff= libmagic=32-bit;;
9189
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9190
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9191
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9192
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9193
    *) libsuff= shlibsuff= libmagic=never-match;;
9194
    esac
9195
    ;;
9196
  esac
9197
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9198
  shlibpath_overrides_runpath=no
9199
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9200
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9201
  hardcode_into_libs=yes
9202
  ;;
9203
 
9204
# No shared lib support for Linux oldld, aout, or coff.
9205
linux*oldld* | linux*aout* | linux*coff*)
9206
  dynamic_linker=no
9207
  ;;
9208
 
9209
# This must be Linux ELF.
9210
linux* | k*bsd*-gnu)
9211
  version_type=linux
9212
  need_lib_prefix=no
9213
  need_version=no
9214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215
  soname_spec='${libname}${release}${shared_ext}$major'
9216
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9217
  shlibpath_var=LD_LIBRARY_PATH
9218
  shlibpath_overrides_runpath=no
9219 82 jeremybenn
  # Some binutils ld are patched to set DT_RUNPATH
9220
  save_LDFLAGS=$LDFLAGS
9221
  save_libdir=$libdir
9222
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9223
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9224 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 82 jeremybenn
/* end confdefs.h.  */
9226
 
9227
int
9228
main ()
9229
{
9230
 
9231
  ;
9232
  return 0;
9233
}
9234
_ACEOF
9235 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9236
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9237 82 jeremybenn
  shlibpath_overrides_runpath=yes
9238
fi
9239
fi
9240 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9241
    conftest$ac_exeext conftest.$ac_ext
9242 82 jeremybenn
  LDFLAGS=$save_LDFLAGS
9243
  libdir=$save_libdir
9244
 
9245 19 jeremybenn
  # This implies no fast_install, which is unacceptable.
9246
  # Some rework will be needed to allow for fast_install
9247
  # before this can be enabled.
9248
  hardcode_into_libs=yes
9249
 
9250
  # Append ld.so.conf contents to the search path
9251
  if test -f /etc/ld.so.conf; then
9252 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' ' '`
9253 93 jeremybenn
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9254 19 jeremybenn
  fi
9255
 
9256
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9257
  # powerpc, because MkLinux only supported shared libraries with the
9258
  # GNU dynamic linker.  Since this was broken with cross compilers,
9259
  # most powerpc-linux boxes support dynamic linking these days and
9260
  # people can always --disable-shared, the test was removed, and we
9261
  # assume the GNU/Linux dynamic linker is in use.
9262
  dynamic_linker='GNU/Linux ld.so'
9263
  ;;
9264
 
9265 93 jeremybenn
netbsdelf*-gnu)
9266
  version_type=linux
9267
  need_lib_prefix=no
9268
  need_version=no
9269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270
  soname_spec='${libname}${release}${shared_ext}$major'
9271
  shlibpath_var=LD_LIBRARY_PATH
9272
  shlibpath_overrides_runpath=no
9273
  hardcode_into_libs=yes
9274
  dynamic_linker='NetBSD ld.elf_so'
9275
  ;;
9276
 
9277 19 jeremybenn
netbsd*)
9278
  version_type=sunos
9279
  need_lib_prefix=no
9280
  need_version=no
9281 82 jeremybenn
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9282 19 jeremybenn
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9284
    dynamic_linker='NetBSD (a.out) ld.so'
9285
  else
9286
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9287
    soname_spec='${libname}${release}${shared_ext}$major'
9288
    dynamic_linker='NetBSD ld.elf_so'
9289
  fi
9290
  shlibpath_var=LD_LIBRARY_PATH
9291
  shlibpath_overrides_runpath=yes
9292
  hardcode_into_libs=yes
9293
  ;;
9294
 
9295
newsos6)
9296
  version_type=linux
9297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298
  shlibpath_var=LD_LIBRARY_PATH
9299
  shlibpath_overrides_runpath=yes
9300
  ;;
9301
 
9302 82 jeremybenn
*nto* | *qnx*)
9303
  version_type=qnx
9304 19 jeremybenn
  need_lib_prefix=no
9305
  need_version=no
9306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9307
  soname_spec='${libname}${release}${shared_ext}$major'
9308
  shlibpath_var=LD_LIBRARY_PATH
9309 82 jeremybenn
  shlibpath_overrides_runpath=no
9310
  hardcode_into_libs=yes
9311
  dynamic_linker='ldqnx.so'
9312 19 jeremybenn
  ;;
9313
 
9314
openbsd*)
9315
  version_type=sunos
9316
  sys_lib_dlsearch_path_spec="/usr/lib"
9317
  need_lib_prefix=no
9318
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9319
  case $host_os in
9320 82 jeremybenn
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9321
    *)                          need_version=no  ;;
9322 19 jeremybenn
  esac
9323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9324
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9325
  shlibpath_var=LD_LIBRARY_PATH
9326 82 jeremybenn
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9327 19 jeremybenn
    case $host_os in
9328
      openbsd2.[89] | openbsd2.[89].*)
9329
        shlibpath_overrides_runpath=no
9330
        ;;
9331
      *)
9332
        shlibpath_overrides_runpath=yes
9333
        ;;
9334
      esac
9335
  else
9336
    shlibpath_overrides_runpath=yes
9337
  fi
9338
  ;;
9339
 
9340
os2*)
9341
  libname_spec='$name'
9342
  shrext_cmds=".dll"
9343
  need_lib_prefix=no
9344
  library_names_spec='$libname${shared_ext} $libname.a'
9345
  dynamic_linker='OS/2 ld.exe'
9346
  shlibpath_var=LIBPATH
9347
  ;;
9348
 
9349
osf3* | osf4* | osf5*)
9350
  version_type=osf
9351
  need_lib_prefix=no
9352
  need_version=no
9353
  soname_spec='${libname}${release}${shared_ext}$major'
9354
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355
  shlibpath_var=LD_LIBRARY_PATH
9356
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9357
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9358
  ;;
9359
 
9360
rdos*)
9361
  dynamic_linker=no
9362
  ;;
9363
 
9364
solaris*)
9365
  version_type=linux
9366
  need_lib_prefix=no
9367
  need_version=no
9368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369
  soname_spec='${libname}${release}${shared_ext}$major'
9370
  shlibpath_var=LD_LIBRARY_PATH
9371
  shlibpath_overrides_runpath=yes
9372
  hardcode_into_libs=yes
9373
  # ldd complains unless libraries are executable
9374
  postinstall_cmds='chmod +x $lib'
9375
  ;;
9376
 
9377
sunos4*)
9378
  version_type=sunos
9379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9380
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9381
  shlibpath_var=LD_LIBRARY_PATH
9382
  shlibpath_overrides_runpath=yes
9383
  if test "$with_gnu_ld" = yes; then
9384
    need_lib_prefix=no
9385
  fi
9386
  need_version=yes
9387
  ;;
9388
 
9389
sysv4 | sysv4.3*)
9390
  version_type=linux
9391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392
  soname_spec='${libname}${release}${shared_ext}$major'
9393
  shlibpath_var=LD_LIBRARY_PATH
9394
  case $host_vendor in
9395
    sni)
9396
      shlibpath_overrides_runpath=no
9397
      need_lib_prefix=no
9398
      runpath_var=LD_RUN_PATH
9399
      ;;
9400
    siemens)
9401
      need_lib_prefix=no
9402
      ;;
9403
    motorola)
9404
      need_lib_prefix=no
9405
      need_version=no
9406
      shlibpath_overrides_runpath=no
9407
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9408
      ;;
9409
  esac
9410
  ;;
9411
 
9412
sysv4*MP*)
9413
  if test -d /usr/nec ;then
9414
    version_type=linux
9415
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9416
    soname_spec='$libname${shared_ext}.$major'
9417
    shlibpath_var=LD_LIBRARY_PATH
9418
  fi
9419
  ;;
9420
 
9421
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9422
  version_type=freebsd-elf
9423
  need_lib_prefix=no
9424
  need_version=no
9425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9426
  soname_spec='${libname}${release}${shared_ext}$major'
9427
  shlibpath_var=LD_LIBRARY_PATH
9428 82 jeremybenn
  shlibpath_overrides_runpath=yes
9429 19 jeremybenn
  hardcode_into_libs=yes
9430
  if test "$with_gnu_ld" = yes; then
9431
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9432
  else
9433
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9434
    case $host_os in
9435
      sco3.2v5*)
9436
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9437
        ;;
9438
    esac
9439
  fi
9440
  sys_lib_dlsearch_path_spec='/usr/lib'
9441
  ;;
9442
 
9443 82 jeremybenn
tpf*)
9444
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9445
  version_type=linux
9446
  need_lib_prefix=no
9447
  need_version=no
9448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449
  shlibpath_var=LD_LIBRARY_PATH
9450
  shlibpath_overrides_runpath=no
9451
  hardcode_into_libs=yes
9452
  ;;
9453
 
9454 19 jeremybenn
uts4*)
9455
  version_type=linux
9456
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457
  soname_spec='${libname}${release}${shared_ext}$major'
9458
  shlibpath_var=LD_LIBRARY_PATH
9459
  ;;
9460
 
9461
*)
9462
  dynamic_linker=no
9463
  ;;
9464
esac
9465 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9466 82 jeremybenn
$as_echo "$dynamic_linker" >&6; }
9467 19 jeremybenn
test "$dynamic_linker" = no && can_build_shared=no
9468
 
9469
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9470
if test "$GCC" = yes; then
9471
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9472
fi
9473
 
9474 82 jeremybenn
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9475
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9476
fi
9477
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9478
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9479
fi
9480
 
9481
 
9482
 
9483
 
9484
 
9485
 
9486
 
9487
 
9488
 
9489
 
9490
 
9491
 
9492
 
9493
 
9494
 
9495
 
9496
 
9497
 
9498
 
9499
 
9500
 
9501
 
9502
 
9503
 
9504
 
9505
 
9506
 
9507
 
9508
 
9509
 
9510
 
9511
 
9512
 
9513
 
9514
 
9515
 
9516
 
9517
 
9518
 
9519
 
9520
 
9521
 
9522
 
9523
 
9524
 
9525
 
9526
 
9527
 
9528
 
9529
 
9530
 
9531
 
9532
 
9533
 
9534
 
9535
 
9536
 
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 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9568 82 jeremybenn
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9569 19 jeremybenn
hardcode_action=
9570 82 jeremybenn
if test -n "$hardcode_libdir_flag_spec" ||
9571
   test -n "$runpath_var" ||
9572 19 jeremybenn
   test "X$hardcode_automatic" = "Xyes" ; then
9573
 
9574 82 jeremybenn
  # We can hardcode non-existent directories.
9575 19 jeremybenn
  if test "$hardcode_direct" != no &&
9576
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9577
     # have to relink, otherwise we might link with an installed library
9578
     # when we should be linking with a yet-to-be-installed one
9579 82 jeremybenn
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9580 19 jeremybenn
     test "$hardcode_minus_L" != no; then
9581
    # Linking always hardcodes the temporary library directory.
9582
    hardcode_action=relink
9583
  else
9584
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9585
    hardcode_action=immediate
9586
  fi
9587
else
9588
  # We cannot hardcode anything, or else we can only hardcode existing
9589
  # directories.
9590
  hardcode_action=unsupported
9591
fi
9592 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9593 82 jeremybenn
$as_echo "$hardcode_action" >&6; }
9594 19 jeremybenn
 
9595 82 jeremybenn
if test "$hardcode_action" = relink ||
9596
   test "$inherit_rpath" = yes; then
9597 19 jeremybenn
  # Fast installation is not supported
9598
  enable_fast_install=no
9599
elif test "$shlibpath_overrides_runpath" = yes ||
9600
     test "$enable_shared" = no; then
9601
  # Fast installation is not necessary
9602
  enable_fast_install=needless
9603
fi
9604
 
9605
 
9606 82 jeremybenn
 
9607
 
9608
 
9609
 
9610
  if test "x$enable_dlopen" != xyes; then
9611 19 jeremybenn
  enable_dlopen=unknown
9612
  enable_dlopen_self=unknown
9613
  enable_dlopen_self_static=unknown
9614
else
9615
  lt_cv_dlopen=no
9616
  lt_cv_dlopen_libs=
9617
 
9618
  case $host_os in
9619
  beos*)
9620
    lt_cv_dlopen="load_add_on"
9621
    lt_cv_dlopen_libs=
9622
    lt_cv_dlopen_self=yes
9623
    ;;
9624
 
9625 82 jeremybenn
  mingw* | pw32* | cegcc*)
9626 19 jeremybenn
    lt_cv_dlopen="LoadLibrary"
9627
    lt_cv_dlopen_libs=
9628 82 jeremybenn
    ;;
9629 19 jeremybenn
 
9630
  cygwin*)
9631
    lt_cv_dlopen="dlopen"
9632
    lt_cv_dlopen_libs=
9633 82 jeremybenn
    ;;
9634 19 jeremybenn
 
9635
  darwin*)
9636
  # if libdl is installed we need to link against it
9637 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9638 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9639 118 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9640 82 jeremybenn
  $as_echo_n "(cached) " >&6
9641 19 jeremybenn
else
9642
  ac_check_lib_save_LIBS=$LIBS
9643
LIBS="-ldl  $LIBS"
9644 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 19 jeremybenn
/* end confdefs.h.  */
9646
 
9647
/* Override any GCC internal prototype to avoid an error.
9648
   Use char because int might match the return type of a GCC
9649
   builtin and then its argument prototype would still apply.  */
9650
#ifdef __cplusplus
9651
extern "C"
9652
#endif
9653
char dlopen ();
9654
int
9655
main ()
9656
{
9657
return dlopen ();
9658
  ;
9659
  return 0;
9660
}
9661
_ACEOF
9662 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9663 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9664
else
9665 118 jeremybenn
  ac_cv_lib_dl_dlopen=no
9666 19 jeremybenn
fi
9667 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9668
    conftest$ac_exeext conftest.$ac_ext
9669 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9670
fi
9671 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9672 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9673 118 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9674 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9675
else
9676
 
9677
    lt_cv_dlopen="dyld"
9678
    lt_cv_dlopen_libs=
9679
    lt_cv_dlopen_self=yes
9680
 
9681
fi
9682
 
9683 82 jeremybenn
    ;;
9684 19 jeremybenn
 
9685
  *)
9686 118 jeremybenn
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9687
if test "x$ac_cv_func_shl_load" = x""yes; then :
9688 19 jeremybenn
  lt_cv_dlopen="shl_load"
9689
else
9690 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9691 82 jeremybenn
$as_echo_n "checking for shl_load in -ldld... " >&6; }
9692 118 jeremybenn
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9693 82 jeremybenn
  $as_echo_n "(cached) " >&6
9694 19 jeremybenn
else
9695
  ac_check_lib_save_LIBS=$LIBS
9696
LIBS="-ldld  $LIBS"
9697 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 19 jeremybenn
/* end confdefs.h.  */
9699
 
9700
/* Override any GCC internal prototype to avoid an error.
9701
   Use char because int might match the return type of a GCC
9702
   builtin and then its argument prototype would still apply.  */
9703
#ifdef __cplusplus
9704
extern "C"
9705
#endif
9706
char shl_load ();
9707
int
9708
main ()
9709
{
9710
return shl_load ();
9711
  ;
9712
  return 0;
9713
}
9714
_ACEOF
9715 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9716 19 jeremybenn
  ac_cv_lib_dld_shl_load=yes
9717
else
9718 118 jeremybenn
  ac_cv_lib_dld_shl_load=no
9719 19 jeremybenn
fi
9720 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9721
    conftest$ac_exeext conftest.$ac_ext
9722 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9723
fi
9724 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9725 82 jeremybenn
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9726 118 jeremybenn
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9727 82 jeremybenn
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9728 19 jeremybenn
else
9729 118 jeremybenn
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9730
if test "x$ac_cv_func_dlopen" = x""yes; then :
9731 19 jeremybenn
  lt_cv_dlopen="dlopen"
9732
else
9733 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9734 82 jeremybenn
$as_echo_n "checking for dlopen in -ldl... " >&6; }
9735 118 jeremybenn
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9736 82 jeremybenn
  $as_echo_n "(cached) " >&6
9737 19 jeremybenn
else
9738
  ac_check_lib_save_LIBS=$LIBS
9739
LIBS="-ldl  $LIBS"
9740 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 19 jeremybenn
/* end confdefs.h.  */
9742
 
9743
/* Override any GCC internal prototype to avoid an error.
9744
   Use char because int might match the return type of a GCC
9745
   builtin and then its argument prototype would still apply.  */
9746
#ifdef __cplusplus
9747
extern "C"
9748
#endif
9749
char dlopen ();
9750
int
9751
main ()
9752
{
9753
return dlopen ();
9754
  ;
9755
  return 0;
9756
}
9757
_ACEOF
9758 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9759 19 jeremybenn
  ac_cv_lib_dl_dlopen=yes
9760
else
9761 118 jeremybenn
  ac_cv_lib_dl_dlopen=no
9762 19 jeremybenn
fi
9763 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9764
    conftest$ac_exeext conftest.$ac_ext
9765 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9766
fi
9767 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9768 82 jeremybenn
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9769 118 jeremybenn
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9770 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9771
else
9772 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9773 82 jeremybenn
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9774 118 jeremybenn
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9775 82 jeremybenn
  $as_echo_n "(cached) " >&6
9776 19 jeremybenn
else
9777
  ac_check_lib_save_LIBS=$LIBS
9778
LIBS="-lsvld  $LIBS"
9779 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9780 19 jeremybenn
/* end confdefs.h.  */
9781
 
9782
/* Override any GCC internal prototype to avoid an error.
9783
   Use char because int might match the return type of a GCC
9784
   builtin and then its argument prototype would still apply.  */
9785
#ifdef __cplusplus
9786
extern "C"
9787
#endif
9788
char dlopen ();
9789
int
9790
main ()
9791
{
9792
return dlopen ();
9793
  ;
9794
  return 0;
9795
}
9796
_ACEOF
9797 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9798 19 jeremybenn
  ac_cv_lib_svld_dlopen=yes
9799
else
9800 118 jeremybenn
  ac_cv_lib_svld_dlopen=no
9801 19 jeremybenn
fi
9802 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9803
    conftest$ac_exeext conftest.$ac_ext
9804 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9805
fi
9806 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9807 82 jeremybenn
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9808 118 jeremybenn
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9809 19 jeremybenn
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9810
else
9811 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9812 82 jeremybenn
$as_echo_n "checking for dld_link in -ldld... " >&6; }
9813 118 jeremybenn
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9814 82 jeremybenn
  $as_echo_n "(cached) " >&6
9815 19 jeremybenn
else
9816
  ac_check_lib_save_LIBS=$LIBS
9817
LIBS="-ldld  $LIBS"
9818 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 19 jeremybenn
/* end confdefs.h.  */
9820
 
9821
/* Override any GCC internal prototype to avoid an error.
9822
   Use char because int might match the return type of a GCC
9823
   builtin and then its argument prototype would still apply.  */
9824
#ifdef __cplusplus
9825
extern "C"
9826
#endif
9827
char dld_link ();
9828
int
9829
main ()
9830
{
9831
return dld_link ();
9832
  ;
9833
  return 0;
9834
}
9835
_ACEOF
9836 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
9837 19 jeremybenn
  ac_cv_lib_dld_dld_link=yes
9838
else
9839 118 jeremybenn
  ac_cv_lib_dld_dld_link=no
9840 19 jeremybenn
fi
9841 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
9842
    conftest$ac_exeext conftest.$ac_ext
9843 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
9844
fi
9845 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9846 82 jeremybenn
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9847 118 jeremybenn
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9848 82 jeremybenn
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9849 19 jeremybenn
fi
9850
 
9851
 
9852
fi
9853
 
9854
 
9855
fi
9856
 
9857
 
9858
fi
9859
 
9860
 
9861
fi
9862
 
9863
 
9864
fi
9865
 
9866
    ;;
9867
  esac
9868
 
9869
  if test "x$lt_cv_dlopen" != xno; then
9870
    enable_dlopen=yes
9871
  else
9872
    enable_dlopen=no
9873
  fi
9874
 
9875
  case $lt_cv_dlopen in
9876
  dlopen)
9877
    save_CPPFLAGS="$CPPFLAGS"
9878
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9879
 
9880
    save_LDFLAGS="$LDFLAGS"
9881
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9882
 
9883
    save_LIBS="$LIBS"
9884
    LIBS="$lt_cv_dlopen_libs $LIBS"
9885
 
9886 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9887 82 jeremybenn
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9888 118 jeremybenn
if test "${lt_cv_dlopen_self+set}" = set; then :
9889 82 jeremybenn
  $as_echo_n "(cached) " >&6
9890 19 jeremybenn
else
9891
          if test "$cross_compiling" = yes; then :
9892
  lt_cv_dlopen_self=cross
9893
else
9894
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9895
  lt_status=$lt_dlunknown
9896 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9897 118 jeremybenn
#line 9897 "configure"
9898 19 jeremybenn
#include "confdefs.h"
9899
 
9900
#if HAVE_DLFCN_H
9901
#include 
9902
#endif
9903
 
9904
#include 
9905
 
9906
#ifdef RTLD_GLOBAL
9907
#  define LT_DLGLOBAL           RTLD_GLOBAL
9908
#else
9909
#  ifdef DL_GLOBAL
9910
#    define LT_DLGLOBAL         DL_GLOBAL
9911
#  else
9912
#    define LT_DLGLOBAL         0
9913
#  endif
9914
#endif
9915
 
9916
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9917
   find out it does not work in some platform. */
9918
#ifndef LT_DLLAZY_OR_NOW
9919
#  ifdef RTLD_LAZY
9920
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9921
#  else
9922
#    ifdef DL_LAZY
9923
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9924
#    else
9925
#      ifdef RTLD_NOW
9926
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9927
#      else
9928
#        ifdef DL_NOW
9929
#          define LT_DLLAZY_OR_NOW      DL_NOW
9930
#        else
9931
#          define LT_DLLAZY_OR_NOW      0
9932
#        endif
9933
#      endif
9934
#    endif
9935
#  endif
9936
#endif
9937
 
9938
void fnord() { int i=42;}
9939
int main ()
9940
{
9941
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9942
  int status = $lt_dlunknown;
9943
 
9944
  if (self)
9945
    {
9946
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9947
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9948
      /* dlclose (self); */
9949
    }
9950
  else
9951
    puts (dlerror ());
9952
 
9953 82 jeremybenn
  return status;
9954 19 jeremybenn
}
9955 82 jeremybenn
_LT_EOF
9956 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9957 19 jeremybenn
  (eval $ac_link) 2>&5
9958
  ac_status=$?
9959 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9960
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9961 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
9962
    lt_status=$?
9963
    case x$lt_status in
9964
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9965
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9966
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9967
    esac
9968
  else :
9969
    # compilation failed
9970
    lt_cv_dlopen_self=no
9971
  fi
9972
fi
9973
rm -fr conftest*
9974
 
9975
 
9976
fi
9977 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9978 82 jeremybenn
$as_echo "$lt_cv_dlopen_self" >&6; }
9979 19 jeremybenn
 
9980
    if test "x$lt_cv_dlopen_self" = xyes; then
9981
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9982 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9983 82 jeremybenn
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9984 118 jeremybenn
if test "${lt_cv_dlopen_self_static+set}" = set; then :
9985 82 jeremybenn
  $as_echo_n "(cached) " >&6
9986 19 jeremybenn
else
9987
          if test "$cross_compiling" = yes; then :
9988
  lt_cv_dlopen_self_static=cross
9989
else
9990
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9991
  lt_status=$lt_dlunknown
9992 82 jeremybenn
  cat > conftest.$ac_ext <<_LT_EOF
9993 118 jeremybenn
#line 9993 "configure"
9994 19 jeremybenn
#include "confdefs.h"
9995
 
9996
#if HAVE_DLFCN_H
9997
#include 
9998
#endif
9999
 
10000
#include 
10001
 
10002
#ifdef RTLD_GLOBAL
10003
#  define LT_DLGLOBAL           RTLD_GLOBAL
10004
#else
10005
#  ifdef DL_GLOBAL
10006
#    define LT_DLGLOBAL         DL_GLOBAL
10007
#  else
10008
#    define LT_DLGLOBAL         0
10009
#  endif
10010
#endif
10011
 
10012
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10013
   find out it does not work in some platform. */
10014
#ifndef LT_DLLAZY_OR_NOW
10015
#  ifdef RTLD_LAZY
10016
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10017
#  else
10018
#    ifdef DL_LAZY
10019
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10020
#    else
10021
#      ifdef RTLD_NOW
10022
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10023
#      else
10024
#        ifdef DL_NOW
10025
#          define LT_DLLAZY_OR_NOW      DL_NOW
10026
#        else
10027
#          define LT_DLLAZY_OR_NOW      0
10028
#        endif
10029
#      endif
10030
#    endif
10031
#  endif
10032
#endif
10033
 
10034
void fnord() { int i=42;}
10035
int main ()
10036
{
10037
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10038
  int status = $lt_dlunknown;
10039
 
10040
  if (self)
10041
    {
10042
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10043
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10044
      /* dlclose (self); */
10045
    }
10046
  else
10047
    puts (dlerror ());
10048
 
10049 82 jeremybenn
  return status;
10050 19 jeremybenn
}
10051 82 jeremybenn
_LT_EOF
10052 118 jeremybenn
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10053 19 jeremybenn
  (eval $ac_link) 2>&5
10054
  ac_status=$?
10055 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10056
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10057 19 jeremybenn
    (./conftest; exit; ) >&5 2>/dev/null
10058
    lt_status=$?
10059
    case x$lt_status in
10060
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10061
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10062
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10063
    esac
10064
  else :
10065
    # compilation failed
10066
    lt_cv_dlopen_self_static=no
10067
  fi
10068
fi
10069
rm -fr conftest*
10070
 
10071
 
10072
fi
10073 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10074 82 jeremybenn
$as_echo "$lt_cv_dlopen_self_static" >&6; }
10075 19 jeremybenn
    fi
10076
 
10077
    CPPFLAGS="$save_CPPFLAGS"
10078
    LDFLAGS="$save_LDFLAGS"
10079
    LIBS="$save_LIBS"
10080
    ;;
10081
  esac
10082
 
10083
  case $lt_cv_dlopen_self in
10084
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10085
  *) enable_dlopen_self=unknown ;;
10086
  esac
10087
 
10088
  case $lt_cv_dlopen_self_static in
10089
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10090
  *) enable_dlopen_self_static=unknown ;;
10091
  esac
10092
fi
10093
 
10094
 
10095
 
10096
 
10097
 
10098
 
10099
 
10100
 
10101
 
10102
 
10103
 
10104
 
10105
 
10106
 
10107
 
10108
 
10109
 
10110 82 jeremybenn
striplib=
10111
old_striplib=
10112 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10113 82 jeremybenn
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10114
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10115
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10116
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10117 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118 82 jeremybenn
$as_echo "yes" >&6; }
10119
else
10120
# FIXME - insert some real tests, host_os isn't really good enough
10121 19 jeremybenn
  case $host_os in
10122 82 jeremybenn
  darwin*)
10123
    if test -n "$STRIP" ; then
10124
      striplib="$STRIP -x"
10125
      old_striplib="$STRIP -S"
10126 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10127 82 jeremybenn
$as_echo "yes" >&6; }
10128 19 jeremybenn
    else
10129 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 82 jeremybenn
$as_echo "no" >&6; }
10131 19 jeremybenn
    fi
10132
    ;;
10133
  *)
10134 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 82 jeremybenn
$as_echo "no" >&6; }
10136 19 jeremybenn
    ;;
10137
  esac
10138
fi
10139
 
10140
 
10141
 
10142
 
10143
 
10144
 
10145
 
10146
 
10147
 
10148
 
10149
 
10150
 
10151 82 jeremybenn
  # Report which library types will actually be built
10152 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10153 82 jeremybenn
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10154 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10155 82 jeremybenn
$as_echo "$can_build_shared" >&6; }
10156 19 jeremybenn
 
10157 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10158 82 jeremybenn
$as_echo_n "checking whether to build shared libraries... " >&6; }
10159
  test "$can_build_shared" = "no" && enable_shared=no
10160 19 jeremybenn
 
10161 82 jeremybenn
  # On AIX, shared libraries and static libraries use the same namespace, and
10162
  # are all built from PIC.
10163 19 jeremybenn
  case $host_os in
10164 82 jeremybenn
  aix3*)
10165 19 jeremybenn
    test "$enable_shared" = yes && enable_static=no
10166 82 jeremybenn
    if test -n "$RANLIB"; then
10167
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10168
      postinstall_cmds='$RANLIB $lib'
10169 19 jeremybenn
    fi
10170
    ;;
10171
 
10172 82 jeremybenn
  aix[4-9]*)
10173
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10174
      test "$enable_shared" = yes && enable_static=no
10175 19 jeremybenn
    fi
10176
    ;;
10177
  esac
10178 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10179 82 jeremybenn
$as_echo "$enable_shared" >&6; }
10180 19 jeremybenn
 
10181 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10182 82 jeremybenn
$as_echo_n "checking whether to build static libraries... " >&6; }
10183
  # Make sure either enable_shared or enable_static is yes.
10184
  test "$enable_shared" = yes || enable_static=yes
10185 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10186 82 jeremybenn
$as_echo "$enable_static" >&6; }
10187 19 jeremybenn
 
10188
 
10189
 
10190
 
10191
fi
10192
ac_ext=c
10193
ac_cpp='$CPP $CPPFLAGS'
10194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10197
 
10198
CC="$lt_save_CC"
10199
 
10200
 
10201
 
10202
 
10203
 
10204
 
10205
 
10206
 
10207
 
10208
 
10209
 
10210
 
10211
 
10212 82 jeremybenn
        ac_config_commands="$ac_config_commands libtool"
10213 19 jeremybenn
 
10214
 
10215
 
10216
 
10217 82 jeremybenn
# Only expand once:
10218 19 jeremybenn
 
10219
 
10220 82 jeremybenn
am__api_version='1.11'
10221 19 jeremybenn
 
10222
# Find a good install program.  We prefer a C program (faster),
10223
# so one script is as good as another.  But avoid the broken or
10224
# incompatible versions:
10225
# SysV /etc/install, /usr/sbin/install
10226
# SunOS /usr/etc/install
10227
# IRIX /sbin/install
10228
# AIX /bin/install
10229
# AmigaOS /C/install, which installs bootblocks on floppy discs
10230
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10231
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10232
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10233
# OS/2's system install, which has a completely different semantic
10234
# ./install, which can be erroneously created by make from ./install.sh.
10235 82 jeremybenn
# Reject install programs that cannot install multiple files.
10236 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
10237 82 jeremybenn
$as_echo_n "checking for a BSD-compatible install... " >&6; }
10238 19 jeremybenn
if test -z "$INSTALL"; then
10239 118 jeremybenn
if test "${ac_cv_path_install+set}" = set; then :
10240 82 jeremybenn
  $as_echo_n "(cached) " >&6
10241 19 jeremybenn
else
10242
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243
for as_dir in $PATH
10244
do
10245
  IFS=$as_save_IFS
10246
  test -z "$as_dir" && as_dir=.
10247 118 jeremybenn
    # Account for people who put trailing slashes in PATH elements.
10248
case $as_dir/ in #((
10249
  ./ | .// | /[cC]/* | \
10250 19 jeremybenn
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10251 118 jeremybenn
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
10252 19 jeremybenn
  /usr/ucb/* ) ;;
10253
  *)
10254
    # OSF1 and SCO ODT 3.0 have their own names for install.
10255
    # Don't use installbsd from OSF since it installs stuff as root
10256
    # by default.
10257
    for ac_prog in ginstall scoinst install; do
10258
      for ac_exec_ext in '' $ac_executable_extensions; do
10259
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10260
          if test $ac_prog = install &&
10261
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10262
            # AIX install.  It has an incompatible calling convention.
10263
            :
10264
          elif test $ac_prog = install &&
10265
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10266
            # program-specific install script used by HP pwplus--don't use.
10267
            :
10268
          else
10269 82 jeremybenn
            rm -rf conftest.one conftest.two conftest.dir
10270
            echo one > conftest.one
10271
            echo two > conftest.two
10272
            mkdir conftest.dir
10273
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10274
              test -s conftest.one && test -s conftest.two &&
10275
              test -s conftest.dir/conftest.one &&
10276
              test -s conftest.dir/conftest.two
10277
            then
10278
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10279
              break 3
10280
            fi
10281 19 jeremybenn
          fi
10282
        fi
10283
      done
10284
    done
10285
    ;;
10286
esac
10287 82 jeremybenn
 
10288 118 jeremybenn
  done
10289 19 jeremybenn
IFS=$as_save_IFS
10290
 
10291 82 jeremybenn
rm -rf conftest.one conftest.two conftest.dir
10292 19 jeremybenn
 
10293
fi
10294
  if test "${ac_cv_path_install+set}" = set; then
10295
    INSTALL=$ac_cv_path_install
10296
  else
10297
    # As a last resort, use the slow shell script.  Don't cache a
10298
    # value for INSTALL within a source directory, because that will
10299
    # break other packages using the cache if that directory is
10300
    # removed, or if the value is a relative name.
10301
    INSTALL=$ac_install_sh
10302
  fi
10303
fi
10304 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10305 82 jeremybenn
$as_echo "$INSTALL" >&6; }
10306 19 jeremybenn
 
10307
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10308
# It thinks the first close brace ends the variable substitution.
10309
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10310
 
10311
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10312
 
10313
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10314
 
10315 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10316 82 jeremybenn
$as_echo_n "checking whether build environment is sane... " >&6; }
10317 19 jeremybenn
# Just in case
10318
sleep 1
10319
echo timestamp > conftest.file
10320 82 jeremybenn
# Reject unsafe characters in $srcdir or the absolute working directory
10321
# name.  Accept space and tab only in the latter.
10322
am_lf='
10323
'
10324
case `pwd` in
10325
  *[\\\"\#\$\&\'\`$am_lf]*)
10326 118 jeremybenn
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
10327 82 jeremybenn
esac
10328
case $srcdir in
10329
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
10330 118 jeremybenn
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10331 82 jeremybenn
esac
10332
 
10333 19 jeremybenn
# Do `set' in a subshell so we don't clobber the current shell's
10334
# arguments.  Must try -L first in case configure is actually a
10335
# symlink; some systems play weird games with the mod time of symlinks
10336
# (eg FreeBSD returns the mod time of the symlink's containing
10337
# directory).
10338
if (
10339 82 jeremybenn
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10340 19 jeremybenn
   if test "$*" = "X"; then
10341
      # -L didn't work.
10342 82 jeremybenn
      set X `ls -t "$srcdir/configure" conftest.file`
10343 19 jeremybenn
   fi
10344
   rm -f conftest.file
10345
   if test "$*" != "X $srcdir/configure conftest.file" \
10346
      && test "$*" != "X conftest.file $srcdir/configure"; then
10347
 
10348
      # If neither matched, then we have a broken ls.  This can happen
10349
      # if, for instance, CONFIG_SHELL is bash and it inherits a
10350
      # broken ls alias from the environment.  This has actually
10351
      # happened.  Such a system could not be considered "sane".
10352 118 jeremybenn
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
10353
alias in your environment" "$LINENO" 5
10354 19 jeremybenn
   fi
10355
 
10356
   test "$2" = conftest.file
10357
   )
10358
then
10359
   # Ok.
10360
   :
10361
else
10362 118 jeremybenn
   as_fn_error "newly created file is older than distributed files!
10363
Check your system clock" "$LINENO" 5
10364 19 jeremybenn
fi
10365 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10366 82 jeremybenn
$as_echo "yes" >&6; }
10367 19 jeremybenn
test "$program_prefix" != NONE &&
10368
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10369
# Use a double $ so make ignores it.
10370
test "$program_suffix" != NONE &&
10371
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10372 82 jeremybenn
# Double any \ or $.
10373 19 jeremybenn
# By default was `s,x,x', remove it if useless.
10374 82 jeremybenn
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10375
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10376 19 jeremybenn
 
10377
# expand $ac_aux_dir to an absolute path
10378
am_aux_dir=`cd $ac_aux_dir && pwd`
10379
 
10380 82 jeremybenn
if test x"${MISSING+set}" != xset; then
10381
  case $am_aux_dir in
10382
  *\ * | *\     *)
10383
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10384
  *)
10385
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10386
  esac
10387
fi
10388 19 jeremybenn
# Use eval to expand $SHELL
10389
if eval "$MISSING --run true"; then
10390
  am_missing_run="$MISSING --run "
10391
else
10392
  am_missing_run=
10393 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10394 82 jeremybenn
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10395 19 jeremybenn
fi
10396
 
10397 82 jeremybenn
if test x"${install_sh}" != xset; then
10398
  case $am_aux_dir in
10399
  *\ * | *\     *)
10400
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10401
  *)
10402
    install_sh="\${SHELL} $am_aux_dir/install-sh"
10403
  esac
10404
fi
10405
 
10406
# Installed binaries are usually stripped using `strip' when the user
10407
# run `make install-strip'.  However `strip' might not be the right
10408
# tool to use in cross-compilation environments, therefore Automake
10409
# will honor the `STRIP' environment variable to overrule this program.
10410
if test "$cross_compiling" != no; then
10411
  if test -n "$ac_tool_prefix"; then
10412
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10413
set dummy ${ac_tool_prefix}strip; ac_word=$2
10414 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10415 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10416 118 jeremybenn
if test "${ac_cv_prog_STRIP+set}" = set; then :
10417 82 jeremybenn
  $as_echo_n "(cached) " >&6
10418
else
10419
  if test -n "$STRIP"; then
10420
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10421
else
10422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423
for as_dir in $PATH
10424
do
10425
  IFS=$as_save_IFS
10426
  test -z "$as_dir" && as_dir=.
10427 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10428 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10430 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 82 jeremybenn
    break 2
10432
  fi
10433
done
10434 118 jeremybenn
  done
10435 82 jeremybenn
IFS=$as_save_IFS
10436
 
10437
fi
10438
fi
10439
STRIP=$ac_cv_prog_STRIP
10440
if test -n "$STRIP"; then
10441 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10442 82 jeremybenn
$as_echo "$STRIP" >&6; }
10443
else
10444 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 82 jeremybenn
$as_echo "no" >&6; }
10446
fi
10447
 
10448
 
10449
fi
10450
if test -z "$ac_cv_prog_STRIP"; then
10451
  ac_ct_STRIP=$STRIP
10452
  # Extract the first word of "strip", so it can be a program name with args.
10453
set dummy strip; ac_word=$2
10454 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10456 118 jeremybenn
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10457 82 jeremybenn
  $as_echo_n "(cached) " >&6
10458
else
10459
  if test -n "$ac_ct_STRIP"; then
10460
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10461
else
10462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463
for as_dir in $PATH
10464
do
10465
  IFS=$as_save_IFS
10466
  test -z "$as_dir" && as_dir=.
10467 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10468 82 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10469
    ac_cv_prog_ac_ct_STRIP="strip"
10470 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10471 82 jeremybenn
    break 2
10472
  fi
10473
done
10474 118 jeremybenn
  done
10475 82 jeremybenn
IFS=$as_save_IFS
10476
 
10477
fi
10478
fi
10479
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10480
if test -n "$ac_ct_STRIP"; then
10481 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10482 82 jeremybenn
$as_echo "$ac_ct_STRIP" >&6; }
10483
else
10484 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485 82 jeremybenn
$as_echo "no" >&6; }
10486
fi
10487
 
10488
  if test "x$ac_ct_STRIP" = x; then
10489
    STRIP=":"
10490
  else
10491
    case $cross_compiling:$ac_tool_warned in
10492
yes:)
10493 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10494 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10495
ac_tool_warned=yes ;;
10496
esac
10497
    STRIP=$ac_ct_STRIP
10498
  fi
10499
else
10500
  STRIP="$ac_cv_prog_STRIP"
10501
fi
10502
 
10503
fi
10504
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10505
 
10506 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10507 82 jeremybenn
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10508 19 jeremybenn
if test -z "$MKDIR_P"; then
10509 118 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then :
10510 82 jeremybenn
  $as_echo_n "(cached) " >&6
10511 19 jeremybenn
else
10512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10514
do
10515
  IFS=$as_save_IFS
10516
  test -z "$as_dir" && as_dir=.
10517 118 jeremybenn
    for ac_prog in mkdir gmkdir; do
10518 19 jeremybenn
         for ac_exec_ext in '' $ac_executable_extensions; do
10519
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10520
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10521
             'mkdir (GNU coreutils) '* | \
10522
             'mkdir (coreutils) '* | \
10523
             'mkdir (fileutils) '4.1*)
10524
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10525
               break 3;;
10526
           esac
10527
         done
10528
       done
10529 118 jeremybenn
  done
10530 19 jeremybenn
IFS=$as_save_IFS
10531
 
10532
fi
10533
 
10534 118 jeremybenn
  test -d ./--version && rmdir ./--version
10535 19 jeremybenn
  if test "${ac_cv_path_mkdir+set}" = set; then
10536
    MKDIR_P="$ac_cv_path_mkdir -p"
10537
  else
10538
    # As a last resort, use the slow shell script.  Don't cache a
10539
    # value for MKDIR_P within a source directory, because that will
10540
    # break other packages using the cache if that directory is
10541
    # removed, or if the value is a relative name.
10542
    MKDIR_P="$ac_install_sh -d"
10543
  fi
10544
fi
10545 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10546 82 jeremybenn
$as_echo "$MKDIR_P" >&6; }
10547 19 jeremybenn
 
10548
mkdir_p="$MKDIR_P"
10549
case $mkdir_p in
10550
  [\\/$]* | ?:[\\/]*) ;;
10551
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10552
esac
10553
 
10554
for ac_prog in gawk mawk nawk awk
10555
do
10556
  # Extract the first word of "$ac_prog", so it can be a program name with args.
10557
set dummy $ac_prog; ac_word=$2
10558 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
10560 118 jeremybenn
if test "${ac_cv_prog_AWK+set}" = set; then :
10561 82 jeremybenn
  $as_echo_n "(cached) " >&6
10562 19 jeremybenn
else
10563
  if test -n "$AWK"; then
10564
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10565
else
10566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567
for as_dir in $PATH
10568
do
10569
  IFS=$as_save_IFS
10570
  test -z "$as_dir" && as_dir=.
10571 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
10572 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10573
    ac_cv_prog_AWK="$ac_prog"
10574 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 19 jeremybenn
    break 2
10576
  fi
10577
done
10578 118 jeremybenn
  done
10579 19 jeremybenn
IFS=$as_save_IFS
10580
 
10581
fi
10582
fi
10583
AWK=$ac_cv_prog_AWK
10584
if test -n "$AWK"; then
10585 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10586 82 jeremybenn
$as_echo "$AWK" >&6; }
10587 19 jeremybenn
else
10588 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 82 jeremybenn
$as_echo "no" >&6; }
10590 19 jeremybenn
fi
10591
 
10592
 
10593
  test -n "$AWK" && break
10594
done
10595
 
10596 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10597 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10598
set x ${MAKE-make}
10599
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10600 118 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10601 82 jeremybenn
  $as_echo_n "(cached) " >&6
10602 19 jeremybenn
else
10603
  cat >conftest.make <<\_ACEOF
10604
SHELL = /bin/sh
10605
all:
10606
        @echo '@@@%%%=$(MAKE)=@@@%%%'
10607
_ACEOF
10608
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10609
case `${MAKE-make} -f conftest.make 2>/dev/null` in
10610
  *@@@%%%=?*=@@@%%%*)
10611
    eval ac_cv_prog_make_${ac_make}_set=yes;;
10612
  *)
10613
    eval ac_cv_prog_make_${ac_make}_set=no;;
10614
esac
10615
rm -f conftest.make
10616
fi
10617
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10618 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619 82 jeremybenn
$as_echo "yes" >&6; }
10620 19 jeremybenn
  SET_MAKE=
10621
else
10622 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 82 jeremybenn
$as_echo "no" >&6; }
10624 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
10625
fi
10626
 
10627
rm -rf .tst 2>/dev/null
10628
mkdir .tst 2>/dev/null
10629
if test -d .tst; then
10630
  am__leading_dot=.
10631
else
10632
  am__leading_dot=_
10633
fi
10634
rmdir .tst 2>/dev/null
10635
 
10636
DEPDIR="${am__leading_dot}deps"
10637
 
10638
ac_config_commands="$ac_config_commands depfiles"
10639
 
10640
 
10641
am_make=${MAKE-make}
10642
cat > confinc << 'END'
10643
am__doit:
10644 82 jeremybenn
        @echo this is the am__doit target
10645 19 jeremybenn
.PHONY: am__doit
10646
END
10647
# If we don't find an include directive, just comment out the code.
10648 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10649 82 jeremybenn
$as_echo_n "checking for style of include used by $am_make... " >&6; }
10650 19 jeremybenn
am__include="#"
10651
am__quote=
10652
_am_result=none
10653
# First try GNU make style include.
10654
echo "include confinc" > confmf
10655 82 jeremybenn
# Ignore all kinds of additional output from `make'.
10656
case `$am_make -s -f confmf 2> /dev/null` in #(
10657
*the\ am__doit\ target*)
10658
  am__include=include
10659
  am__quote=
10660
  _am_result=GNU
10661
  ;;
10662
esac
10663 19 jeremybenn
# Now try BSD make style include.
10664
if test "$am__include" = "#"; then
10665
   echo '.include "confinc"' > confmf
10666 82 jeremybenn
   case `$am_make -s -f confmf 2> /dev/null` in #(
10667
   *the\ am__doit\ target*)
10668
     am__include=.include
10669
     am__quote="\""
10670
     _am_result=BSD
10671
     ;;
10672
   esac
10673 19 jeremybenn
fi
10674
 
10675
 
10676 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10677 82 jeremybenn
$as_echo "$_am_result" >&6; }
10678 19 jeremybenn
rm -f confinc confmf
10679
 
10680
# Check whether --enable-dependency-tracking was given.
10681 118 jeremybenn
if test "${enable_dependency_tracking+set}" = set; then :
10682 19 jeremybenn
  enableval=$enable_dependency_tracking;
10683
fi
10684
 
10685
if test "x$enable_dependency_tracking" != xno; then
10686
  am_depcomp="$ac_aux_dir/depcomp"
10687
  AMDEPBACKSLASH='\'
10688
fi
10689
 if test "x$enable_dependency_tracking" != xno; then
10690
  AMDEP_TRUE=
10691
  AMDEP_FALSE='#'
10692
else
10693
  AMDEP_TRUE='#'
10694
  AMDEP_FALSE=
10695
fi
10696
 
10697
 
10698
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10699
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10700
  # is not polluted with repeated "-I."
10701
  am__isrc=' -I$(srcdir)'
10702
  # test to see if srcdir already configured
10703
  if test -f $srcdir/config.status; then
10704 118 jeremybenn
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10705 19 jeremybenn
  fi
10706
fi
10707
 
10708
# test whether we have cygpath
10709
if test -z "$CYGPATH_W"; then
10710
  if (cygpath --version) >/dev/null 2>/dev/null; then
10711
    CYGPATH_W='cygpath -w'
10712
  else
10713
    CYGPATH_W=echo
10714
  fi
10715
fi
10716
 
10717
 
10718
# Define the identity of the package.
10719
 PACKAGE='or1ksim'
10720 118 jeremybenn
 VERSION='2010-06-13'
10721 19 jeremybenn
 
10722
 
10723
cat >>confdefs.h <<_ACEOF
10724
#define PACKAGE "$PACKAGE"
10725
_ACEOF
10726
 
10727
 
10728
cat >>confdefs.h <<_ACEOF
10729
#define VERSION "$VERSION"
10730
_ACEOF
10731
 
10732
# Some tools Automake needs.
10733
 
10734
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10735
 
10736
 
10737
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10738
 
10739
 
10740
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10741
 
10742
 
10743
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10744
 
10745
 
10746
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10747
 
10748
# We need awk for the "check" target.  The system "awk" is bad on
10749
# some platforms.
10750
# Always define AMTAR for backward compatibility.
10751
 
10752
AMTAR=${AMTAR-"${am_missing_run}tar"}
10753
 
10754
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
10755
 
10756
 
10757
 
10758
 
10759
depcc="$CC"   am_compiler_list=
10760
 
10761 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10762 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10763 118 jeremybenn
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
10764 82 jeremybenn
  $as_echo_n "(cached) " >&6
10765 19 jeremybenn
else
10766
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10767
  # We make a subdir and do the tests there.  Otherwise we can end up
10768
  # making bogus files that we don't know about and never remove.  For
10769
  # instance it was reported that on HP-UX the gcc test will end up
10770
  # making a dummy file named `D' -- because `-MD' means `put the output
10771
  # in D'.
10772
  mkdir conftest.dir
10773
  # Copy depcomp to subdir because otherwise we won't find it if we're
10774
  # using a relative directory.
10775
  cp "$am_depcomp" conftest.dir
10776
  cd conftest.dir
10777
  # We will build objects and dependencies in a subdirectory because
10778
  # it helps to detect inapplicable dependency modes.  For instance
10779
  # both Tru64's cc and ICC support -MD to output dependencies as a
10780
  # side effect of compilation, but ICC will put the dependencies in
10781
  # the current directory while Tru64 will put them in the object
10782
  # directory.
10783
  mkdir sub
10784
 
10785
  am_cv_CC_dependencies_compiler_type=none
10786
  if test "$am_compiler_list" = ""; then
10787
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10788
  fi
10789 82 jeremybenn
  am__universal=false
10790
  case " $depcc " in #(
10791
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10792
     esac
10793
 
10794 19 jeremybenn
  for depmode in $am_compiler_list; do
10795
    # Setup a source with many dependencies, because some compilers
10796
    # like to wrap large dependency lists on column 80 (with \), and
10797
    # we should not choose a depcomp mode which is confused by this.
10798
    #
10799
    # We need to recreate these files for each test, as the compiler may
10800
    # overwrite some of them when testing with obscure command lines.
10801
    # This happens at least with the AIX C compiler.
10802
    : > sub/conftest.c
10803
    for i in 1 2 3 4 5 6; do
10804
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10805
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10806
      # Solaris 8's {/usr,}/bin/sh.
10807
      touch sub/conftst$i.h
10808
    done
10809
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10810
 
10811 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10812
    # mode.  It turns out that the SunPro C++ compiler does not properly
10813
    # handle `-M -o', and we need to detect this.  Also, some Intel
10814
    # versions had trouble with output in subdirs
10815
    am__obj=sub/conftest.${OBJEXT-o}
10816
    am__minus_obj="-o $am__obj"
10817 19 jeremybenn
    case $depmode in
10818 82 jeremybenn
    gcc)
10819
      # This depmode causes a compiler race in universal mode.
10820
      test "$am__universal" = false || continue
10821
      ;;
10822 19 jeremybenn
    nosideeffect)
10823
      # after this tag, mechanisms are not by side-effect, so they'll
10824
      # only be used when explicitly requested
10825
      if test "x$enable_dependency_tracking" = xyes; then
10826
        continue
10827
      else
10828
        break
10829
      fi
10830
      ;;
10831 82 jeremybenn
    msvisualcpp | msvcmsys)
10832
      # This compiler won't grok `-c -o', but also, the minuso test has
10833
      # not run yet.  These depmodes are late enough in the game, and
10834
      # so weak that their functioning should not be impacted.
10835
      am__obj=conftest.${OBJEXT-o}
10836
      am__minus_obj=
10837
      ;;
10838 19 jeremybenn
    none) break ;;
10839
    esac
10840
    if depmode=$depmode \
10841 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
10842 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10843 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10844 19 jeremybenn
         >/dev/null 2>conftest.err &&
10845
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10846
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10847 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10848 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10849
      # icc doesn't choke on unknown options, it will just issue warnings
10850
      # or remarks (even with -Werror).  So we grep stderr for any message
10851
      # that says an option was ignored or not supported.
10852
      # When given -MP, icc 7.0 and 7.1 complain thusly:
10853
      #   icc: Command line warning: ignoring option '-M'; no argument required
10854
      # The diagnosis changed in icc 8.0:
10855
      #   icc: Command line remark: option '-MP' not supported
10856
      if (grep 'ignoring option' conftest.err ||
10857
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10858
        am_cv_CC_dependencies_compiler_type=$depmode
10859
        break
10860
      fi
10861
    fi
10862
  done
10863
 
10864
  cd ..
10865
  rm -rf conftest.dir
10866
else
10867
  am_cv_CC_dependencies_compiler_type=none
10868
fi
10869
 
10870
fi
10871 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10872 82 jeremybenn
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10873 19 jeremybenn
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10874
 
10875
 if
10876
  test "x$enable_dependency_tracking" != xno \
10877
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10878
  am__fastdepCC_TRUE=
10879
  am__fastdepCC_FALSE='#'
10880
else
10881
  am__fastdepCC_TRUE='#'
10882
  am__fastdepCC_FALSE=
10883
fi
10884
 
10885
 
10886
 
10887 91 jeremybenn
 
10888 82 jeremybenn
ac_config_headers="$ac_config_headers config.h"
10889
 
10890
 
10891
 
10892
 
10893
# make sure we are using a recent autoconf version
10894
 
10895
 
10896
# yuck.
10897
case "$target_cpu" in
10898
or32*)  CPU_ARCH=or32;
10899
        ARCH_ISA=OR32;
10900
 
10901 118 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10902 82 jeremybenn
;;
10903
dlx*)   CPU_ARCH=dlx;
10904
        ARCH_ISA=DLX;;
10905 118 jeremybenn
*)      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
10906 82 jeremybenn
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
10907
        CPU_ARCH=or32;
10908
        ARCH_ISA=OR32;
10909
 
10910 118 jeremybenn
$as_echo "#define OR32_TYPES 1" >>confdefs.h
10911 82 jeremybenn
;;
10912
esac
10913
 
10914
# determine endianism from target CPU name. If it has "little" in the name,
10915
# then its litte endian, otherwise its big endian (default for OR1K)
10916
case "$target_cpu" in
10917
*little*)
10918 118 jeremybenn
$as_echo "#define OR32_LITTLE_ENDIAN 1" >>confdefs.h
10919 82 jeremybenn
;;
10920
       *)
10921 118 jeremybenn
$as_echo "#define OR32_BIG_ENDIAN 1" >>confdefs.h
10922 82 jeremybenn
;;
10923
esac
10924
 
10925
 
10926
 
10927
# Set the CFLAGS we want
10928
CFLAGS="$CFLAGS -g -Wall -Werror -O2 -D$ARCH_ISA"
10929
 
10930
# By default we simply use the C compiler to build assembly code.
10931
 
10932
test "${CCAS+set}" = set || CCAS=$CC
10933
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10934
 
10935
 
10936
 
10937
depcc="$CCAS"   am_compiler_list=
10938
 
10939 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10940 82 jeremybenn
$as_echo_n "checking dependency style of $depcc... " >&6; }
10941 118 jeremybenn
if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10942 82 jeremybenn
  $as_echo_n "(cached) " >&6
10943 19 jeremybenn
else
10944
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10945
  # We make a subdir and do the tests there.  Otherwise we can end up
10946
  # making bogus files that we don't know about and never remove.  For
10947
  # instance it was reported that on HP-UX the gcc test will end up
10948
  # making a dummy file named `D' -- because `-MD' means `put the output
10949
  # in D'.
10950
  mkdir conftest.dir
10951
  # Copy depcomp to subdir because otherwise we won't find it if we're
10952
  # using a relative directory.
10953
  cp "$am_depcomp" conftest.dir
10954
  cd conftest.dir
10955
  # We will build objects and dependencies in a subdirectory because
10956
  # it helps to detect inapplicable dependency modes.  For instance
10957
  # both Tru64's cc and ICC support -MD to output dependencies as a
10958
  # side effect of compilation, but ICC will put the dependencies in
10959
  # the current directory while Tru64 will put them in the object
10960
  # directory.
10961
  mkdir sub
10962
 
10963 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
10964 19 jeremybenn
  if test "$am_compiler_list" = ""; then
10965
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10966
  fi
10967 82 jeremybenn
  am__universal=false
10968
 
10969
 
10970 19 jeremybenn
  for depmode in $am_compiler_list; do
10971
    # Setup a source with many dependencies, because some compilers
10972
    # like to wrap large dependency lists on column 80 (with \), and
10973
    # we should not choose a depcomp mode which is confused by this.
10974
    #
10975
    # We need to recreate these files for each test, as the compiler may
10976
    # overwrite some of them when testing with obscure command lines.
10977
    # This happens at least with the AIX C compiler.
10978
    : > sub/conftest.c
10979
    for i in 1 2 3 4 5 6; do
10980
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10981
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10982
      # Solaris 8's {/usr,}/bin/sh.
10983
      touch sub/conftst$i.h
10984
    done
10985
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10986
 
10987 82 jeremybenn
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10988
    # mode.  It turns out that the SunPro C++ compiler does not properly
10989
    # handle `-M -o', and we need to detect this.  Also, some Intel
10990
    # versions had trouble with output in subdirs
10991
    am__obj=sub/conftest.${OBJEXT-o}
10992
    am__minus_obj="-o $am__obj"
10993 19 jeremybenn
    case $depmode in
10994 82 jeremybenn
    gcc)
10995
      # This depmode causes a compiler race in universal mode.
10996
      test "$am__universal" = false || continue
10997
      ;;
10998 19 jeremybenn
    nosideeffect)
10999
      # after this tag, mechanisms are not by side-effect, so they'll
11000
      # only be used when explicitly requested
11001
      if test "x$enable_dependency_tracking" = xyes; then
11002
        continue
11003
      else
11004
        break
11005
      fi
11006
      ;;
11007 82 jeremybenn
    msvisualcpp | msvcmsys)
11008
      # This compiler won't grok `-c -o', but also, the minuso test has
11009
      # not run yet.  These depmodes are late enough in the game, and
11010
      # so weak that their functioning should not be impacted.
11011
      am__obj=conftest.${OBJEXT-o}
11012
      am__minus_obj=
11013
      ;;
11014 19 jeremybenn
    none) break ;;
11015
    esac
11016
    if depmode=$depmode \
11017 82 jeremybenn
       source=sub/conftest.c object=$am__obj \
11018 19 jeremybenn
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11019 82 jeremybenn
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11020 19 jeremybenn
         >/dev/null 2>conftest.err &&
11021
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11022
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11023 82 jeremybenn
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11024 19 jeremybenn
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11025
      # icc doesn't choke on unknown options, it will just issue warnings
11026
      # or remarks (even with -Werror).  So we grep stderr for any message
11027
      # that says an option was ignored or not supported.
11028
      # When given -MP, icc 7.0 and 7.1 complain thusly:
11029
      #   icc: Command line warning: ignoring option '-M'; no argument required
11030
      # The diagnosis changed in icc 8.0:
11031
      #   icc: Command line remark: option '-MP' not supported
11032
      if (grep 'ignoring option' conftest.err ||
11033
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11034 82 jeremybenn
        am_cv_CCAS_dependencies_compiler_type=$depmode
11035 19 jeremybenn
        break
11036
      fi
11037
    fi
11038
  done
11039
 
11040
  cd ..
11041
  rm -rf conftest.dir
11042
else
11043 82 jeremybenn
  am_cv_CCAS_dependencies_compiler_type=none
11044 19 jeremybenn
fi
11045
 
11046
fi
11047 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11048 82 jeremybenn
$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11049
CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11050 19 jeremybenn
 
11051
 if
11052
  test "x$enable_dependency_tracking" != xno \
11053 82 jeremybenn
  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11054
  am__fastdepCCAS_TRUE=
11055
  am__fastdepCCAS_FALSE='#'
11056 19 jeremybenn
else
11057 82 jeremybenn
  am__fastdepCCAS_TRUE='#'
11058
  am__fastdepCCAS_FALSE=
11059 19 jeremybenn
fi
11060
 
11061
 
11062
 
11063
ac_ext=c
11064
ac_cpp='$CPP $CPPFLAGS'
11065
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068
if test -n "$ac_tool_prefix"; then
11069
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11070
set dummy ${ac_tool_prefix}gcc; ac_word=$2
11071 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11073 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11074 82 jeremybenn
  $as_echo_n "(cached) " >&6
11075 19 jeremybenn
else
11076
  if test -n "$CC"; then
11077
  ac_cv_prog_CC="$CC" # Let the user override the test.
11078
else
11079
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080
for as_dir in $PATH
11081
do
11082
  IFS=$as_save_IFS
11083
  test -z "$as_dir" && as_dir=.
11084 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11085 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11087 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 19 jeremybenn
    break 2
11089
  fi
11090
done
11091 118 jeremybenn
  done
11092 19 jeremybenn
IFS=$as_save_IFS
11093
 
11094
fi
11095
fi
11096
CC=$ac_cv_prog_CC
11097
if test -n "$CC"; then
11098 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11099 82 jeremybenn
$as_echo "$CC" >&6; }
11100 19 jeremybenn
else
11101 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 82 jeremybenn
$as_echo "no" >&6; }
11103 19 jeremybenn
fi
11104
 
11105
 
11106
fi
11107
if test -z "$ac_cv_prog_CC"; then
11108
  ac_ct_CC=$CC
11109
  # Extract the first word of "gcc", so it can be a program name with args.
11110
set dummy gcc; ac_word=$2
11111 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11113 118 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11114 82 jeremybenn
  $as_echo_n "(cached) " >&6
11115 19 jeremybenn
else
11116
  if test -n "$ac_ct_CC"; then
11117
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11118
else
11119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120
for as_dir in $PATH
11121
do
11122
  IFS=$as_save_IFS
11123
  test -z "$as_dir" && as_dir=.
11124 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11125 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126
    ac_cv_prog_ac_ct_CC="gcc"
11127 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 19 jeremybenn
    break 2
11129
  fi
11130
done
11131 118 jeremybenn
  done
11132 19 jeremybenn
IFS=$as_save_IFS
11133
 
11134
fi
11135
fi
11136
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11137
if test -n "$ac_ct_CC"; then
11138 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11139 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11140 19 jeremybenn
else
11141 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 82 jeremybenn
$as_echo "no" >&6; }
11143 19 jeremybenn
fi
11144
 
11145
  if test "x$ac_ct_CC" = x; then
11146
    CC=""
11147
  else
11148
    case $cross_compiling:$ac_tool_warned in
11149
yes:)
11150 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11151 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11152 19 jeremybenn
ac_tool_warned=yes ;;
11153
esac
11154
    CC=$ac_ct_CC
11155
  fi
11156
else
11157
  CC="$ac_cv_prog_CC"
11158
fi
11159
 
11160
if test -z "$CC"; then
11161
          if test -n "$ac_tool_prefix"; then
11162
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11163
set dummy ${ac_tool_prefix}cc; ac_word=$2
11164 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11166 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11167 82 jeremybenn
  $as_echo_n "(cached) " >&6
11168 19 jeremybenn
else
11169
  if test -n "$CC"; then
11170
  ac_cv_prog_CC="$CC" # Let the user override the test.
11171
else
11172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173
for as_dir in $PATH
11174
do
11175
  IFS=$as_save_IFS
11176
  test -z "$as_dir" && as_dir=.
11177 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11178 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11179
    ac_cv_prog_CC="${ac_tool_prefix}cc"
11180 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11181 19 jeremybenn
    break 2
11182
  fi
11183
done
11184 118 jeremybenn
  done
11185 19 jeremybenn
IFS=$as_save_IFS
11186
 
11187
fi
11188
fi
11189
CC=$ac_cv_prog_CC
11190
if test -n "$CC"; then
11191 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11192 82 jeremybenn
$as_echo "$CC" >&6; }
11193 19 jeremybenn
else
11194 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195 82 jeremybenn
$as_echo "no" >&6; }
11196 19 jeremybenn
fi
11197
 
11198
 
11199
  fi
11200
fi
11201
if test -z "$CC"; then
11202
  # Extract the first word of "cc", so it can be a program name with args.
11203
set dummy cc; ac_word=$2
11204 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11206 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11207 82 jeremybenn
  $as_echo_n "(cached) " >&6
11208 19 jeremybenn
else
11209
  if test -n "$CC"; then
11210
  ac_cv_prog_CC="$CC" # Let the user override the test.
11211
else
11212
  ac_prog_rejected=no
11213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214
for as_dir in $PATH
11215
do
11216
  IFS=$as_save_IFS
11217
  test -z "$as_dir" && as_dir=.
11218 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11219 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11221
       ac_prog_rejected=yes
11222
       continue
11223
     fi
11224
    ac_cv_prog_CC="cc"
11225 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 19 jeremybenn
    break 2
11227
  fi
11228
done
11229 118 jeremybenn
  done
11230 19 jeremybenn
IFS=$as_save_IFS
11231
 
11232
if test $ac_prog_rejected = yes; then
11233
  # We found a bogon in the path, so make sure we never use it.
11234
  set dummy $ac_cv_prog_CC
11235
  shift
11236
  if test $# != 0; then
11237
    # We chose a different compiler from the bogus one.
11238
    # However, it has the same basename, so the bogon will be chosen
11239
    # first if we set CC to just the basename; use the full file name.
11240
    shift
11241
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11242
  fi
11243
fi
11244
fi
11245
fi
11246
CC=$ac_cv_prog_CC
11247
if test -n "$CC"; then
11248 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11249 82 jeremybenn
$as_echo "$CC" >&6; }
11250 19 jeremybenn
else
11251 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 82 jeremybenn
$as_echo "no" >&6; }
11253 19 jeremybenn
fi
11254
 
11255
 
11256
fi
11257
if test -z "$CC"; then
11258
  if test -n "$ac_tool_prefix"; then
11259
  for ac_prog in cl.exe
11260
  do
11261
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11262
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11263 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11264 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11265 118 jeremybenn
if test "${ac_cv_prog_CC+set}" = set; then :
11266 82 jeremybenn
  $as_echo_n "(cached) " >&6
11267 19 jeremybenn
else
11268
  if test -n "$CC"; then
11269
  ac_cv_prog_CC="$CC" # Let the user override the test.
11270
else
11271
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11272
for as_dir in $PATH
11273
do
11274
  IFS=$as_save_IFS
11275
  test -z "$as_dir" && as_dir=.
11276 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11277 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11278
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11279 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 19 jeremybenn
    break 2
11281
  fi
11282
done
11283 118 jeremybenn
  done
11284 19 jeremybenn
IFS=$as_save_IFS
11285
 
11286
fi
11287
fi
11288
CC=$ac_cv_prog_CC
11289
if test -n "$CC"; then
11290 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11291 82 jeremybenn
$as_echo "$CC" >&6; }
11292 19 jeremybenn
else
11293 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 82 jeremybenn
$as_echo "no" >&6; }
11295 19 jeremybenn
fi
11296
 
11297
 
11298
    test -n "$CC" && break
11299
  done
11300
fi
11301
if test -z "$CC"; then
11302
  ac_ct_CC=$CC
11303
  for ac_prog in cl.exe
11304
do
11305
  # Extract the first word of "$ac_prog", so it can be a program name with args.
11306
set dummy $ac_prog; ac_word=$2
11307 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11309 118 jeremybenn
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11310 82 jeremybenn
  $as_echo_n "(cached) " >&6
11311 19 jeremybenn
else
11312
  if test -n "$ac_ct_CC"; then
11313
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11314
else
11315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316
for as_dir in $PATH
11317
do
11318
  IFS=$as_save_IFS
11319
  test -z "$as_dir" && as_dir=.
11320 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11321 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11322
    ac_cv_prog_ac_ct_CC="$ac_prog"
11323 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11324 19 jeremybenn
    break 2
11325
  fi
11326
done
11327 118 jeremybenn
  done
11328 19 jeremybenn
IFS=$as_save_IFS
11329
 
11330
fi
11331
fi
11332
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11333
if test -n "$ac_ct_CC"; then
11334 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11335 82 jeremybenn
$as_echo "$ac_ct_CC" >&6; }
11336 19 jeremybenn
else
11337 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338 82 jeremybenn
$as_echo "no" >&6; }
11339 19 jeremybenn
fi
11340
 
11341
 
11342
  test -n "$ac_ct_CC" && break
11343
done
11344
 
11345
  if test "x$ac_ct_CC" = x; then
11346
    CC=""
11347
  else
11348
    case $cross_compiling:$ac_tool_warned in
11349
yes:)
11350 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11351 82 jeremybenn
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11352 19 jeremybenn
ac_tool_warned=yes ;;
11353
esac
11354
    CC=$ac_ct_CC
11355
  fi
11356
fi
11357
 
11358
fi
11359
 
11360
 
11361 118 jeremybenn
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11362 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11363 118 jeremybenn
as_fn_error "no acceptable C compiler found in \$PATH
11364
See \`config.log' for more details." "$LINENO" 5; }
11365 19 jeremybenn
 
11366
# Provide some information about the compiler.
11367 118 jeremybenn
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11368 82 jeremybenn
set X $ac_compile
11369
ac_compiler=$2
11370 118 jeremybenn
for ac_option in --version -v -V -qversion; do
11371
  { { ac_try="$ac_compiler $ac_option >&5"
11372 19 jeremybenn
case "(($ac_try" in
11373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374
  *) ac_try_echo=$ac_try;;
11375
esac
11376 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11377
$as_echo "$ac_try_echo"; } >&5
11378
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11379 19 jeremybenn
  ac_status=$?
11380 118 jeremybenn
  if test -s conftest.err; then
11381
    sed '10a\
11382
... rest of stderr output deleted ...
11383
         10q' conftest.err >conftest.er1
11384
    cat conftest.er1 >&5
11385
  fi
11386
  rm -f conftest.er1 conftest.err
11387
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388
  test $ac_status = 0; }
11389
done
11390 19 jeremybenn
 
11391 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11392 82 jeremybenn
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11393 118 jeremybenn
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11394 82 jeremybenn
  $as_echo_n "(cached) " >&6
11395 19 jeremybenn
else
11396 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 19 jeremybenn
/* end confdefs.h.  */
11398
 
11399
int
11400
main ()
11401
{
11402
#ifndef __GNUC__
11403
       choke me
11404
#endif
11405
 
11406
  ;
11407
  return 0;
11408
}
11409
_ACEOF
11410 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11411 19 jeremybenn
  ac_compiler_gnu=yes
11412
else
11413 118 jeremybenn
  ac_compiler_gnu=no
11414 19 jeremybenn
fi
11415
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11416
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11417
 
11418
fi
11419 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11420 82 jeremybenn
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11421
if test $ac_compiler_gnu = yes; then
11422
  GCC=yes
11423
else
11424
  GCC=
11425
fi
11426 19 jeremybenn
ac_test_CFLAGS=${CFLAGS+set}
11427
ac_save_CFLAGS=$CFLAGS
11428 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11429 82 jeremybenn
$as_echo_n "checking whether $CC accepts -g... " >&6; }
11430 118 jeremybenn
if test "${ac_cv_prog_cc_g+set}" = set; then :
11431 82 jeremybenn
  $as_echo_n "(cached) " >&6
11432 19 jeremybenn
else
11433
  ac_save_c_werror_flag=$ac_c_werror_flag
11434
   ac_c_werror_flag=yes
11435
   ac_cv_prog_cc_g=no
11436
   CFLAGS="-g"
11437 118 jeremybenn
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 19 jeremybenn
/* end confdefs.h.  */
11439
 
11440
int
11441
main ()
11442
{
11443
 
11444
  ;
11445
  return 0;
11446
}
11447
_ACEOF
11448 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11449 19 jeremybenn
  ac_cv_prog_cc_g=yes
11450
else
11451 118 jeremybenn
  CFLAGS=""
11452
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 19 jeremybenn
/* end confdefs.h.  */
11454
 
11455
int
11456
main ()
11457
{
11458
 
11459
  ;
11460
  return 0;
11461
}
11462
_ACEOF
11463 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11464
 
11465 101 jeremybenn
else
11466 118 jeremybenn
  ac_c_werror_flag=$ac_save_c_werror_flag
11467 19 jeremybenn
         CFLAGS="-g"
11468 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 19 jeremybenn
/* end confdefs.h.  */
11470
 
11471
int
11472
main ()
11473
{
11474
 
11475
  ;
11476
  return 0;
11477
}
11478
_ACEOF
11479 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11480 19 jeremybenn
  ac_cv_prog_cc_g=yes
11481
fi
11482
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
   ac_c_werror_flag=$ac_save_c_werror_flag
11488
fi
11489 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11490 82 jeremybenn
$as_echo "$ac_cv_prog_cc_g" >&6; }
11491 19 jeremybenn
if test "$ac_test_CFLAGS" = set; then
11492
  CFLAGS=$ac_save_CFLAGS
11493
elif test $ac_cv_prog_cc_g = yes; then
11494
  if test "$GCC" = yes; then
11495
    CFLAGS="-g -O2"
11496
  else
11497
    CFLAGS="-g"
11498
  fi
11499
else
11500
  if test "$GCC" = yes; then
11501
    CFLAGS="-O2"
11502
  else
11503
    CFLAGS=
11504
  fi
11505
fi
11506 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11507 82 jeremybenn
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11508 118 jeremybenn
if test "${ac_cv_prog_cc_c89+set}" = set; then :
11509 82 jeremybenn
  $as_echo_n "(cached) " >&6
11510 19 jeremybenn
else
11511
  ac_cv_prog_cc_c89=no
11512
ac_save_CC=$CC
11513 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 19 jeremybenn
/* end confdefs.h.  */
11515
#include 
11516
#include 
11517
#include 
11518
#include 
11519
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11520
struct buf { int x; };
11521
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11522
static char *e (p, i)
11523
     char **p;
11524
     int i;
11525
{
11526
  return p[i];
11527
}
11528
static char *f (char * (*g) (char **, int), char **p, ...)
11529
{
11530
  char *s;
11531
  va_list v;
11532
  va_start (v,p);
11533
  s = g (p, va_arg (v,int));
11534
  va_end (v);
11535
  return s;
11536
}
11537
 
11538
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11539
   function prototypes and stuff, but not '\xHH' hex character constants.
11540
   These don't provoke an error unfortunately, instead are silently treated
11541
   as 'x'.  The following induces an error, until -std is added to get
11542
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11543
   array size at least.  It's necessary to write '\x00'==0 to get something
11544
   that's true only with -std.  */
11545
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11546
 
11547
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11548
   inside strings and character constants.  */
11549
#define FOO(x) 'x'
11550
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11551
 
11552
int test (int i, double x);
11553
struct s1 {int (*f) (int a);};
11554
struct s2 {int (*f) (double a);};
11555
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11556
int argc;
11557
char **argv;
11558
int
11559
main ()
11560
{
11561
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11562
  ;
11563
  return 0;
11564
}
11565
_ACEOF
11566
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11567
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11568
do
11569
  CC="$ac_save_CC $ac_arg"
11570 118 jeremybenn
  if ac_fn_c_try_compile "$LINENO"; then :
11571 19 jeremybenn
  ac_cv_prog_cc_c89=$ac_arg
11572
fi
11573
rm -f core conftest.err conftest.$ac_objext
11574
  test "x$ac_cv_prog_cc_c89" != "xno" && break
11575
done
11576
rm -f conftest.$ac_ext
11577
CC=$ac_save_CC
11578
 
11579
fi
11580
# AC_CACHE_VAL
11581
case "x$ac_cv_prog_cc_c89" in
11582
  x)
11583 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11584 82 jeremybenn
$as_echo "none needed" >&6; } ;;
11585 19 jeremybenn
  xno)
11586 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11587 82 jeremybenn
$as_echo "unsupported" >&6; } ;;
11588 19 jeremybenn
  *)
11589
    CC="$CC $ac_cv_prog_cc_c89"
11590 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11591 82 jeremybenn
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11592 19 jeremybenn
esac
11593 118 jeremybenn
if test "x$ac_cv_prog_cc_c89" != xno; then :
11594 19 jeremybenn
 
11595 118 jeremybenn
fi
11596 19 jeremybenn
 
11597
ac_ext=c
11598
ac_cpp='$CPP $CPPFLAGS'
11599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602
 
11603
if test "x$CC" != xcc; then
11604 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11605 82 jeremybenn
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11606 19 jeremybenn
else
11607 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11608 82 jeremybenn
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11609 19 jeremybenn
fi
11610 82 jeremybenn
set dummy $CC; ac_cc=`$as_echo "$2" |
11611 19 jeremybenn
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11612 118 jeremybenn
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11613 82 jeremybenn
  $as_echo_n "(cached) " >&6
11614 19 jeremybenn
else
11615 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 19 jeremybenn
/* end confdefs.h.  */
11617
 
11618
int
11619
main ()
11620
{
11621
 
11622
  ;
11623
  return 0;
11624
}
11625
_ACEOF
11626
# Make sure it works both with $CC and with simple cc.
11627
# We do the test twice because some compilers refuse to overwrite an
11628
# existing .o file with -o, though they will create one.
11629
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11630
rm -f conftest2.*
11631 118 jeremybenn
if { { case "(($ac_try" in
11632 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633
  *) ac_try_echo=$ac_try;;
11634
esac
11635 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11636
$as_echo "$ac_try_echo"; } >&5
11637 19 jeremybenn
  (eval "$ac_try") 2>&5
11638
  ac_status=$?
11639 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640
  test $ac_status = 0; } &&
11641
   test -f conftest2.$ac_objext && { { case "(($ac_try" in
11642 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643
  *) ac_try_echo=$ac_try;;
11644
esac
11645 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11646
$as_echo "$ac_try_echo"; } >&5
11647 19 jeremybenn
  (eval "$ac_try") 2>&5
11648
  ac_status=$?
11649 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11650
  test $ac_status = 0; };
11651 19 jeremybenn
then
11652
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11653
  if test "x$CC" != xcc; then
11654
    # Test first that cc exists at all.
11655
    if { ac_try='cc -c conftest.$ac_ext >&5'
11656 118 jeremybenn
  { { case "(($ac_try" in
11657 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658
  *) ac_try_echo=$ac_try;;
11659
esac
11660 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11661
$as_echo "$ac_try_echo"; } >&5
11662 19 jeremybenn
  (eval "$ac_try") 2>&5
11663
  ac_status=$?
11664 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665
  test $ac_status = 0; }; }; then
11666 19 jeremybenn
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11667
      rm -f conftest2.*
11668 118 jeremybenn
      if { { case "(($ac_try" in
11669 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670
  *) ac_try_echo=$ac_try;;
11671
esac
11672 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11673
$as_echo "$ac_try_echo"; } >&5
11674 19 jeremybenn
  (eval "$ac_try") 2>&5
11675
  ac_status=$?
11676 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11677
  test $ac_status = 0; } &&
11678
         test -f conftest2.$ac_objext && { { case "(($ac_try" in
11679 19 jeremybenn
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680
  *) ac_try_echo=$ac_try;;
11681
esac
11682 118 jeremybenn
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11683
$as_echo "$ac_try_echo"; } >&5
11684 19 jeremybenn
  (eval "$ac_try") 2>&5
11685
  ac_status=$?
11686 118 jeremybenn
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687
  test $ac_status = 0; };
11688 19 jeremybenn
      then
11689
        # cc works too.
11690
        :
11691
      else
11692
        # cc exists but doesn't like -o.
11693
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
11694
      fi
11695
    fi
11696
  fi
11697
else
11698
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
11699
fi
11700
rm -f core conftest*
11701
 
11702
fi
11703
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11704 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11705 82 jeremybenn
$as_echo "yes" >&6; }
11706 19 jeremybenn
else
11707 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 82 jeremybenn
$as_echo "no" >&6; }
11709 19 jeremybenn
 
11710 118 jeremybenn
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11711 19 jeremybenn
 
11712
fi
11713
 
11714
# FIXME: we rely on the cache variable name because
11715
# there is no other way.
11716
set dummy $CC
11717 82 jeremybenn
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11718
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11719
if test "$am_t" != yes; then
11720 19 jeremybenn
   # Losing compiler, so override with the script.
11721
   # FIXME: It is wrong to rewrite CC.
11722
   # But if we don't then we get into trouble of one sort or another.
11723
   # A longer-term fix would be to have automake use am__CC in this case,
11724
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11725
   CC="$am_aux_dir/compile $CC"
11726
fi
11727
 
11728
 
11729
 
11730 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11731 82 jeremybenn
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11732
set x ${MAKE-make}
11733
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11734 118 jeremybenn
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11735 82 jeremybenn
  $as_echo_n "(cached) " >&6
11736 19 jeremybenn
else
11737
  cat >conftest.make <<\_ACEOF
11738
SHELL = /bin/sh
11739
all:
11740
        @echo '@@@%%%=$(MAKE)=@@@%%%'
11741
_ACEOF
11742
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11743
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11744
  *@@@%%%=?*=@@@%%%*)
11745
    eval ac_cv_prog_make_${ac_make}_set=yes;;
11746
  *)
11747
    eval ac_cv_prog_make_${ac_make}_set=no;;
11748
esac
11749
rm -f conftest.make
11750
fi
11751
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11752 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753 82 jeremybenn
$as_echo "yes" >&6; }
11754 19 jeremybenn
  SET_MAKE=
11755
else
11756 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 82 jeremybenn
$as_echo "no" >&6; }
11758 19 jeremybenn
  SET_MAKE="MAKE=${MAKE-make}"
11759
fi
11760
 
11761
 
11762 82 jeremybenn
 
11763 19 jeremybenn
# Extract the first word of "ar", so it can be a program name with args.
11764
set dummy ar; ac_word=$2
11765 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 82 jeremybenn
$as_echo_n "checking for $ac_word... " >&6; }
11767 118 jeremybenn
if test "${ac_cv_prog_AR+set}" = set; then :
11768 82 jeremybenn
  $as_echo_n "(cached) " >&6
11769 19 jeremybenn
else
11770
  if test -n "$AR"; then
11771
  ac_cv_prog_AR="$AR" # Let the user override the test.
11772
else
11773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774
for as_dir in $PATH
11775
do
11776
  IFS=$as_save_IFS
11777
  test -z "$as_dir" && as_dir=.
11778 118 jeremybenn
    for ac_exec_ext in '' $ac_executable_extensions; do
11779 19 jeremybenn
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780
    ac_cv_prog_AR="ar"
11781 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782 19 jeremybenn
    break 2
11783
  fi
11784
done
11785 118 jeremybenn
  done
11786 19 jeremybenn
IFS=$as_save_IFS
11787
 
11788
fi
11789
fi
11790
AR=$ac_cv_prog_AR
11791
if test -n "$AR"; then
11792 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11793 82 jeremybenn
$as_echo "$AR" >&6; }
11794 19 jeremybenn
else
11795 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 82 jeremybenn
$as_echo "no" >&6; }
11797 19 jeremybenn
fi
11798
 
11799
 
11800
 
11801
# Set default for ARFLAGS, since autoconf does not have a macro for it.
11802
# This allows people to set it when running configure or make
11803
test -n "$ARFLAGS" || ARFLAGS="cr"
11804
 
11805 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11806 82 jeremybenn
$as_echo_n "checking return type of signal handlers... " >&6; }
11807 118 jeremybenn
if test "${ac_cv_type_signal+set}" = set; then :
11808 82 jeremybenn
  $as_echo_n "(cached) " >&6
11809 19 jeremybenn
else
11810 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11811 19 jeremybenn
/* end confdefs.h.  */
11812
#include 
11813
#include 
11814
 
11815
int
11816
main ()
11817
{
11818
return *(signal (0, 0)) (0) == 1;
11819
  ;
11820
  return 0;
11821
}
11822
_ACEOF
11823 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11824 19 jeremybenn
  ac_cv_type_signal=int
11825
else
11826 118 jeremybenn
  ac_cv_type_signal=void
11827 19 jeremybenn
fi
11828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829
fi
11830 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11831 82 jeremybenn
$as_echo "$ac_cv_type_signal" >&6; }
11832 19 jeremybenn
 
11833
cat >>confdefs.h <<_ACEOF
11834
#define RETSIGTYPE $ac_cv_type_signal
11835
_ACEOF
11836
 
11837
 
11838 82 jeremybenn
for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h      \
11839
                 sys/ptem.h sys/pte.h sys/stream.h sys/stropts.h sys/select.h \
11840
                 termcap.h termios.h termio.h sys/file.h locale.h getopt.h    \
11841 118 jeremybenn
                 net/ethernet.h sys/ethernet.h malloc.h inttypes.h libintl.h  \
11842
                 limits.h
11843
do :
11844
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11845
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11846
eval as_val=\$$as_ac_Header
11847
   if test "x$as_val" = x""yes; then :
11848 82 jeremybenn
  cat >>confdefs.h <<_ACEOF
11849
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11850 19 jeremybenn
_ACEOF
11851
 
11852
fi
11853
 
11854
done
11855
 
11856
for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat
11857 118 jeremybenn
do :
11858
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11859
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11860
eval as_val=\$$as_ac_var
11861
   if test "x$as_val" = x""yes; then :
11862 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11863 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11864 19 jeremybenn
_ACEOF
11865
 
11866
fi
11867
done
11868
 
11869 82 jeremybenn
for ac_func in grantpt unlockpt ptsname on_exit
11870 118 jeremybenn
do :
11871
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11872
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11873
eval as_val=\$$as_ac_var
11874
   if test "x$as_val" = x""yes; then :
11875 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11876 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11877 19 jeremybenn
_ACEOF
11878
 
11879
fi
11880
done
11881
 
11882
for ac_func in basename
11883 118 jeremybenn
do :
11884
  ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
11885
if test "x$ac_cv_func_basename" = x""yes; then :
11886 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
11887 118 jeremybenn
#define HAVE_BASENAME 1
11888 19 jeremybenn
_ACEOF
11889
 
11890
fi
11891
done
11892
 
11893 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
11894 82 jeremybenn
$as_echo_n "checking for working strcoll... " >&6; }
11895 118 jeremybenn
if test "${ac_cv_func_strcoll_works+set}" = set; then :
11896 82 jeremybenn
  $as_echo_n "(cached) " >&6
11897 19 jeremybenn
else
11898 118 jeremybenn
  if test "$cross_compiling" = yes; then :
11899 19 jeremybenn
  ac_cv_func_strcoll_works=no
11900
else
11901 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 19 jeremybenn
/* end confdefs.h.  */
11903
$ac_includes_default
11904
int
11905
main ()
11906
{
11907
return (strcoll ("abc", "def") >= 0 ||
11908
         strcoll ("ABC", "DEF") >= 0 ||
11909
         strcoll ("123", "456") >= 0)
11910
  ;
11911
  return 0;
11912
}
11913
_ACEOF
11914 118 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
11915 19 jeremybenn
  ac_cv_func_strcoll_works=yes
11916
else
11917 118 jeremybenn
  ac_cv_func_strcoll_works=no
11918 19 jeremybenn
fi
11919 118 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11920
  conftest.$ac_objext conftest.beam conftest.$ac_ext
11921 19 jeremybenn
fi
11922
 
11923
fi
11924 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
11925 82 jeremybenn
$as_echo "$ac_cv_func_strcoll_works" >&6; }
11926 19 jeremybenn
if test $ac_cv_func_strcoll_works = yes; then
11927
 
11928 118 jeremybenn
$as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
11929 19 jeremybenn
 
11930
fi
11931
 
11932 118 jeremybenn
ac_fn_c_check_decl "$LINENO" "I_PUSH" "ac_cv_have_decl_I_PUSH" "\
11933 82 jeremybenn
               #include 
11934 118 jeremybenn
"
11935
if test "x$ac_cv_have_decl_I_PUSH" = x""yes; then :
11936
  ac_have_decl=1
11937 19 jeremybenn
else
11938 118 jeremybenn
  ac_have_decl=0
11939 19 jeremybenn
fi
11940
 
11941 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11942 118 jeremybenn
#define HAVE_DECL_I_PUSH $ac_have_decl
11943 19 jeremybenn
_ACEOF
11944 118 jeremybenn
ac_fn_c_check_decl "$LINENO" "rl_event_hook" "ac_cv_have_decl_rl_event_hook" "\
11945 82 jeremybenn
               #include 
11946 118 jeremybenn
"
11947
if test "x$ac_cv_have_decl_rl_event_hook" = x""yes; then :
11948
  ac_have_decl=1
11949 19 jeremybenn
else
11950 118 jeremybenn
  ac_have_decl=0
11951 19 jeremybenn
fi
11952
 
11953 82 jeremybenn
cat >>confdefs.h <<_ACEOF
11954 118 jeremybenn
#define HAVE_DECL_RL_EVENT_HOOK $ac_have_decl
11955 19 jeremybenn
_ACEOF
11956
 
11957 118 jeremybenn
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11958 82 jeremybenn
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11959 118 jeremybenn
if test "${ac_cv_c_bigendian+set}" = set; then :
11960 82 jeremybenn
  $as_echo_n "(cached) " >&6
11961 19 jeremybenn
else
11962 82 jeremybenn
  ac_cv_c_bigendian=unknown
11963
    # See if we're dealing with a universal compiler.
11964 118 jeremybenn
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 19 jeremybenn
/* end confdefs.h.  */
11966 82 jeremybenn
#ifndef __APPLE_CC__
11967
               not a universal capable compiler
11968
             #endif
11969
             typedef int dummy;
11970
 
11971 19 jeremybenn
_ACEOF
11972 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
11973 82 jeremybenn
 
11974
        # Check for potential -arch flags.  It is not universal unless
11975 118 jeremybenn
        # there are at least two -arch flags with different values.
11976
        ac_arch=
11977
        ac_prev=
11978
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11979
         if test -n "$ac_prev"; then
11980
           case $ac_word in
11981
             i?86 | x86_64 | ppc | ppc64)
11982
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11983
                 ac_arch=$ac_word
11984
               else
11985
                 ac_cv_c_bigendian=universal
11986
                 break
11987
               fi
11988
               ;;
11989
           esac
11990
           ac_prev=
11991
         elif test "x$ac_word" = "x-arch"; then
11992
           ac_prev=arch
11993
         fi
11994
       done
11995 19 jeremybenn
fi
11996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 82 jeremybenn
    if test $ac_cv_c_bigendian = unknown; then
11998
      # See if sys/param.h defines the BYTE_ORDER macro.
11999 118 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 19 jeremybenn
/* end confdefs.h.  */
12001 82 jeremybenn
#include 
12002
             #include 
12003
 
12004
int
12005
main ()
12006
{
12007
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12008
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12009
                     && LITTLE_ENDIAN)
12010
              bogus endian macros
12011
             #endif
12012
 
12013
  ;
12014
  return 0;
12015
}
12016 19 jeremybenn
_ACEOF
12017 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12018 82 jeremybenn
  # It does; now see whether it defined to BIG_ENDIAN or not.
12019 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 19 jeremybenn
/* end confdefs.h.  */
12021 82 jeremybenn
#include 
12022
                #include 
12023
 
12024 19 jeremybenn
int
12025
main ()
12026
{
12027 82 jeremybenn
#if BYTE_ORDER != BIG_ENDIAN
12028
                 not big endian
12029
                #endif
12030 19 jeremybenn
 
12031
  ;
12032
  return 0;
12033
}
12034
_ACEOF
12035 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12036 82 jeremybenn
  ac_cv_c_bigendian=yes
12037 19 jeremybenn
else
12038 118 jeremybenn
  ac_cv_c_bigendian=no
12039 19 jeremybenn
fi
12040
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041
fi
12042 82 jeremybenn
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043
    fi
12044
    if test $ac_cv_c_bigendian = unknown; then
12045
      # See if  defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12046 118 jeremybenn
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 19 jeremybenn
/* end confdefs.h.  */
12048 82 jeremybenn
#include 
12049 19 jeremybenn
 
12050
int
12051
main ()
12052
{
12053 82 jeremybenn
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12054
              bogus endian macros
12055
             #endif
12056 19 jeremybenn
 
12057
  ;
12058
  return 0;
12059
}
12060
_ACEOF
12061 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12062 82 jeremybenn
  # It does; now see whether it defined to _BIG_ENDIAN or not.
12063 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 19 jeremybenn
/* end confdefs.h.  */
12065 82 jeremybenn
#include 
12066 19 jeremybenn
 
12067
int
12068
main ()
12069
{
12070 82 jeremybenn
#ifndef _BIG_ENDIAN
12071
                 not big endian
12072
                #endif
12073 19 jeremybenn
 
12074
  ;
12075
  return 0;
12076
}
12077
_ACEOF
12078 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12079 19 jeremybenn
  ac_cv_c_bigendian=yes
12080
else
12081 118 jeremybenn
  ac_cv_c_bigendian=no
12082 19 jeremybenn
fi
12083
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12084 82 jeremybenn
fi
12085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086
    fi
12087
    if test $ac_cv_c_bigendian = unknown; then
12088
      # Compile a test program.
12089 118 jeremybenn
      if test "$cross_compiling" = yes; then :
12090 82 jeremybenn
  # Try to guess by grepping values from an object file.
12091 118 jeremybenn
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 19 jeremybenn
/* end confdefs.h.  */
12093 82 jeremybenn
short int ascii_mm[] =
12094
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12095
                short int ascii_ii[] =
12096
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12097
                int use_ascii (int i) {
12098
                  return ascii_mm[i] + ascii_ii[i];
12099
                }
12100
                short int ebcdic_ii[] =
12101
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12102
                short int ebcdic_mm[] =
12103
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12104
                int use_ebcdic (int i) {
12105
                  return ebcdic_mm[i] + ebcdic_ii[i];
12106
                }
12107
                extern int foo;
12108
 
12109 19 jeremybenn
int
12110
main ()
12111
{
12112 82 jeremybenn
return use_ascii (foo) == use_ebcdic (foo);
12113 19 jeremybenn
  ;
12114
  return 0;
12115
}
12116
_ACEOF
12117 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12118 82 jeremybenn
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12119
              ac_cv_c_bigendian=yes
12120
            fi
12121
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12122
              if test "$ac_cv_c_bigendian" = unknown; then
12123
                ac_cv_c_bigendian=no
12124
              else
12125
                # finding both strings is unlikely to happen, but who knows?
12126
                ac_cv_c_bigendian=unknown
12127
              fi
12128
            fi
12129 19 jeremybenn
fi
12130
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12131
else
12132 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 19 jeremybenn
/* end confdefs.h.  */
12134
$ac_includes_default
12135
int
12136
main ()
12137
{
12138
 
12139 82 jeremybenn
             /* Are we little or big endian?  From Harbison&Steele.  */
12140
             union
12141
             {
12142
               long int l;
12143
               char c[sizeof (long int)];
12144
             } u;
12145
             u.l = 1;
12146
             return u.c[sizeof (long int) - 1] == 1;
12147 19 jeremybenn
 
12148
  ;
12149
  return 0;
12150
}
12151
_ACEOF
12152 118 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12153 19 jeremybenn
  ac_cv_c_bigendian=no
12154
else
12155 118 jeremybenn
  ac_cv_c_bigendian=yes
12156 19 jeremybenn
fi
12157 118 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12158
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12159 19 jeremybenn
fi
12160
 
12161 82 jeremybenn
    fi
12162 19 jeremybenn
fi
12163 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12164 82 jeremybenn
$as_echo "$ac_cv_c_bigendian" >&6; }
12165
 case $ac_cv_c_bigendian in #(
12166
   yes)
12167 118 jeremybenn
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12168 82 jeremybenn
;; #(
12169
   no)
12170
      ;; #(
12171
   universal)
12172 19 jeremybenn
 
12173 118 jeremybenn
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12174 82 jeremybenn
 
12175
     ;; #(
12176
   *)
12177 118 jeremybenn
     as_fn_error "unknown endianness
12178
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12179 82 jeremybenn
 esac
12180
 
12181
 
12182
# The test for strndup, strcasecmp and isblank fails on modern machines. I
12183
# think it's because GCC 4 does not like the way autoconf overrides the built
12184
# in type declaration. So we must check for them by steam.
12185 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strndup" >&5
12186 82 jeremybenn
$as_echo_n "checking for strndup... " >&6; }
12187 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 82 jeremybenn
/* end confdefs.h.  */
12189
#ifdef HAVE_STRING_H
12190
                                  #include 
12191
                                  #else
12192
                                  char *strndup (const char *s,
12193
                                                 size_t      n);
12194
                                  #endif
12195
int
12196
main ()
12197
{
12198
\
12199
                                const char *s = "test";
12200
                                  char       *t;
12201
                                  t = strndup (s, 3);
12202
  ;
12203
  return 0;
12204
}
12205
_ACEOF
12206 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12207 82 jeremybenn
  \
12208
 
12209 118 jeremybenn
$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
12210 82 jeremybenn
 \
12211 118 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12212 82 jeremybenn
$as_echo "yes" >&6; }
12213
else
12214 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 82 jeremybenn
$as_echo "no" >&6; }
12216 19 jeremybenn
fi
12217 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12218
    conftest$ac_exeext conftest.$ac_ext
12219 19 jeremybenn
 
12220 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp" >&5
12221 82 jeremybenn
$as_echo_n "checking for strcasecmp... " >&6; }
12222 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 82 jeremybenn
/* end confdefs.h.  */
12224
#ifdef HAVE_STRINGS_H
12225
                                  #include 
12226
                                  #else
12227
                                  int strcasecmp (const char *s1,
12228
                                                  const char *s2);
12229
                                  #endif
12230
int
12231
main ()
12232
{
12233
\
12234
                                const char *s = "test";
12235
                                  const char *t = "TEST";
12236
                                  int         res;
12237
                                  res = strcasecmp (s, t);
12238
  ;
12239
  return 0;
12240
}
12241
_ACEOF
12242 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12243 82 jeremybenn
  \
12244
 
12245 118 jeremybenn
$as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
12246 82 jeremybenn
 \
12247 118 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 82 jeremybenn
$as_echo "yes" >&6; }
12249
else
12250 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 82 jeremybenn
$as_echo "no" >&6; }
12252
fi
12253 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12254
    conftest$ac_exeext conftest.$ac_ext
12255 82 jeremybenn
 
12256 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
12257 82 jeremybenn
$as_echo_n "checking for isblank... " >&6; }
12258 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 82 jeremybenn
/* end confdefs.h.  */
12260
#ifdef HAVE_CTYPE_H
12261
                                  #include 
12262
                                  #else
12263
                                  int isblank (int  c);
12264
                                  #endif
12265
int
12266
main ()
12267
{
12268
\
12269
                                return isblank ('x');
12270
  ;
12271
  return 0;
12272
}
12273
_ACEOF
12274 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12275 82 jeremybenn
  \
12276 19 jeremybenn
 
12277 118 jeremybenn
$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
12278 82 jeremybenn
 \
12279 118 jeremybenn
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12280 82 jeremybenn
$as_echo "yes" >&6; }
12281
else
12282 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12283 82 jeremybenn
$as_echo "no" >&6; }
12284
fi
12285 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12286
    conftest$ac_exeext conftest.$ac_ext
12287 82 jeremybenn
 
12288 19 jeremybenn
# Checks for typedefs, structures, and compiler characteristics (for argtable2)
12289 118 jeremybenn
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12290
if test "x$ac_cv_type_size_t" = x""yes; then :
12291 19 jeremybenn
 
12292
else
12293
 
12294
cat >>confdefs.h <<_ACEOF
12295
#define size_t unsigned int
12296
_ACEOF
12297
 
12298
fi
12299
 
12300 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12301 82 jeremybenn
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12302 118 jeremybenn
if test "${ac_cv_struct_tm+set}" = set; then :
12303 82 jeremybenn
  $as_echo_n "(cached) " >&6
12304 19 jeremybenn
else
12305 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 19 jeremybenn
/* end confdefs.h.  */
12307
#include 
12308
#include 
12309
 
12310
int
12311
main ()
12312
{
12313
struct tm tm;
12314
                                     int *p = &tm.tm_sec;
12315 82 jeremybenn
                                     return !p;
12316 19 jeremybenn
  ;
12317
  return 0;
12318
}
12319
_ACEOF
12320 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12321 19 jeremybenn
  ac_cv_struct_tm=time.h
12322
else
12323 118 jeremybenn
  ac_cv_struct_tm=sys/time.h
12324 19 jeremybenn
fi
12325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326
fi
12327 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12328 82 jeremybenn
$as_echo "$ac_cv_struct_tm" >&6; }
12329 19 jeremybenn
if test $ac_cv_struct_tm = sys/time.h; then
12330
 
12331 118 jeremybenn
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12332 19 jeremybenn
 
12333
fi
12334
 
12335
 
12336
# Checks for library functions (for argtable2).
12337
for ac_header in stdlib.h
12338 118 jeremybenn
do :
12339
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12340
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12341 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12342 118 jeremybenn
#define HAVE_STDLIB_H 1
12343 19 jeremybenn
_ACEOF
12344
 
12345
fi
12346
 
12347
done
12348
 
12349 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12350 82 jeremybenn
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12351 118 jeremybenn
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12352 82 jeremybenn
  $as_echo_n "(cached) " >&6
12353 19 jeremybenn
else
12354 118 jeremybenn
  if test "$cross_compiling" = yes; then :
12355 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12356
else
12357 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 19 jeremybenn
/* end confdefs.h.  */
12359
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
12360
# include 
12361
#else
12362
char *malloc ();
12363
#endif
12364
 
12365
int
12366
main ()
12367
{
12368
return ! malloc (0);
12369
  ;
12370
  return 0;
12371
}
12372
_ACEOF
12373 118 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12374 19 jeremybenn
  ac_cv_func_malloc_0_nonnull=yes
12375
else
12376 118 jeremybenn
  ac_cv_func_malloc_0_nonnull=no
12377 19 jeremybenn
fi
12378 118 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12379
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12380 19 jeremybenn
fi
12381
 
12382
fi
12383 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12384 82 jeremybenn
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12385 118 jeremybenn
if test $ac_cv_func_malloc_0_nonnull = yes; then :
12386 19 jeremybenn
 
12387 118 jeremybenn
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12388 19 jeremybenn
 
12389
else
12390 118 jeremybenn
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12391 19 jeremybenn
 
12392
   case " $LIBOBJS " in
12393
  *" malloc.$ac_objext "* ) ;;
12394
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12395
 ;;
12396
esac
12397
 
12398
 
12399 118 jeremybenn
$as_echo "#define malloc rpl_malloc" >>confdefs.h
12400 19 jeremybenn
 
12401
fi
12402
 
12403
 
12404
for ac_func in strftime
12405 118 jeremybenn
do :
12406
  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12407
if test "x$ac_cv_func_strftime" = x""yes; then :
12408 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12409 118 jeremybenn
#define HAVE_STRFTIME 1
12410 19 jeremybenn
_ACEOF
12411
 
12412
else
12413
  # strftime is in -lintl on SCO UNIX.
12414 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12415 82 jeremybenn
$as_echo_n "checking for strftime in -lintl... " >&6; }
12416 118 jeremybenn
if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12417 82 jeremybenn
  $as_echo_n "(cached) " >&6
12418 19 jeremybenn
else
12419
  ac_check_lib_save_LIBS=$LIBS
12420
LIBS="-lintl  $LIBS"
12421 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 19 jeremybenn
/* end confdefs.h.  */
12423
 
12424
/* Override any GCC internal prototype to avoid an error.
12425
   Use char because int might match the return type of a GCC
12426
   builtin and then its argument prototype would still apply.  */
12427
#ifdef __cplusplus
12428
extern "C"
12429
#endif
12430
char strftime ();
12431
int
12432
main ()
12433
{
12434
return strftime ();
12435
  ;
12436
  return 0;
12437
}
12438
_ACEOF
12439 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12440 19 jeremybenn
  ac_cv_lib_intl_strftime=yes
12441
else
12442 118 jeremybenn
  ac_cv_lib_intl_strftime=no
12443 19 jeremybenn
fi
12444 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12445
    conftest$ac_exeext conftest.$ac_ext
12446 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12447
fi
12448 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12449 82 jeremybenn
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
12450 118 jeremybenn
if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12451
  $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12452 19 jeremybenn
 
12453
LIBS="-lintl $LIBS"
12454
fi
12455
 
12456
fi
12457
done
12458
 
12459 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12460 82 jeremybenn
$as_echo_n "checking for working strtod... " >&6; }
12461 118 jeremybenn
if test "${ac_cv_func_strtod+set}" = set; then :
12462 82 jeremybenn
  $as_echo_n "(cached) " >&6
12463 19 jeremybenn
else
12464 118 jeremybenn
  if test "$cross_compiling" = yes; then :
12465 19 jeremybenn
  ac_cv_func_strtod=no
12466
else
12467 118 jeremybenn
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 19 jeremybenn
/* end confdefs.h.  */
12469
 
12470
$ac_includes_default
12471
#ifndef strtod
12472
double strtod ();
12473
#endif
12474
int
12475
main()
12476
{
12477
  {
12478
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
12479
    char *string = " +69";
12480
    char *term;
12481
    double value;
12482
    value = strtod (string, &term);
12483
    if (value != 69 || term != (string + 4))
12484
      return 1;
12485
  }
12486
 
12487
  {
12488
    /* Under Solaris 2.4, strtod returns the wrong value for the
12489
       terminating character under some conditions.  */
12490
    char *string = "NaN";
12491
    char *term;
12492
    strtod (string, &term);
12493
    if (term != string && *(term - 1) == 0)
12494
      return 1;
12495
  }
12496
  return 0;
12497
}
12498
 
12499
_ACEOF
12500 118 jeremybenn
if ac_fn_c_try_run "$LINENO"; then :
12501 19 jeremybenn
  ac_cv_func_strtod=yes
12502
else
12503 118 jeremybenn
  ac_cv_func_strtod=no
12504 19 jeremybenn
fi
12505 118 jeremybenn
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12506
  conftest.$ac_objext conftest.beam conftest.$ac_ext
12507 19 jeremybenn
fi
12508
 
12509
fi
12510 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12511 82 jeremybenn
$as_echo "$ac_cv_func_strtod" >&6; }
12512 19 jeremybenn
if test $ac_cv_func_strtod = no; then
12513
  case " $LIBOBJS " in
12514
  *" strtod.$ac_objext "* ) ;;
12515
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12516
 ;;
12517
esac
12518
 
12519 118 jeremybenn
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12520
if test "x$ac_cv_func_pow" = x""yes; then :
12521 19 jeremybenn
 
12522
fi
12523
 
12524
if test $ac_cv_func_pow = no; then
12525 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12526 82 jeremybenn
$as_echo_n "checking for pow in -lm... " >&6; }
12527 118 jeremybenn
if test "${ac_cv_lib_m_pow+set}" = set; then :
12528 82 jeremybenn
  $as_echo_n "(cached) " >&6
12529 19 jeremybenn
else
12530
  ac_check_lib_save_LIBS=$LIBS
12531
LIBS="-lm  $LIBS"
12532 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 19 jeremybenn
/* end confdefs.h.  */
12534
 
12535
/* Override any GCC internal prototype to avoid an error.
12536
   Use char because int might match the return type of a GCC
12537
   builtin and then its argument prototype would still apply.  */
12538
#ifdef __cplusplus
12539
extern "C"
12540
#endif
12541
char pow ();
12542
int
12543
main ()
12544
{
12545
return pow ();
12546
  ;
12547
  return 0;
12548
}
12549
_ACEOF
12550 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12551 19 jeremybenn
  ac_cv_lib_m_pow=yes
12552
else
12553 118 jeremybenn
  ac_cv_lib_m_pow=no
12554 19 jeremybenn
fi
12555 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12556
    conftest$ac_exeext conftest.$ac_ext
12557 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12558
fi
12559 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12560 82 jeremybenn
$as_echo "$ac_cv_lib_m_pow" >&6; }
12561 118 jeremybenn
if test "x$ac_cv_lib_m_pow" = x""yes; then :
12562 19 jeremybenn
  POW_LIB=-lm
12563
else
12564 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12565 82 jeremybenn
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12566 19 jeremybenn
fi
12567
 
12568
fi
12569
 
12570
fi
12571
 
12572
for ac_func in bzero strchr strcspn strrchr strtol
12573 118 jeremybenn
do :
12574
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12576
eval as_val=\$$as_ac_var
12577
   if test "x$as_val" = x""yes; then :
12578 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12579 82 jeremybenn
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12580 19 jeremybenn
_ACEOF
12581
 
12582
fi
12583
done
12584
 
12585 118 jeremybenn
ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12586
if test "x$ac_cv_func_getopt_long" = x""yes; then :
12587 19 jeremybenn
  SYS_GETOPTLONG=1
12588
else
12589
  SYS_GETOPTLONG=0
12590
fi
12591
 
12592 118 jeremybenn
ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
12593
if test "x$ac_cv_func_regcomp" = x""yes; then :
12594 19 jeremybenn
  SYS_REGEX=1
12595
else
12596
  SYS_REGEX=0
12597
fi
12598
 
12599 118 jeremybenn
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
12600
if test "x$ac_cv_func_strptime" = x""yes; then :
12601 19 jeremybenn
  SYS_STRPTIME=1
12602
else
12603
  SYS_STRPTIME=0
12604
fi
12605
 
12606
 
12607
# Define automake conditionals (for argtable2)
12608
 if test "$SYS_GETOPTLONG" = "1"; then
12609
  USE_SYS_GETOPTLONG_TRUE=
12610
  USE_SYS_GETOPTLONG_FALSE='#'
12611
else
12612
  USE_SYS_GETOPTLONG_TRUE='#'
12613
  USE_SYS_GETOPTLONG_FALSE=
12614
fi
12615
 
12616
 if test "$SYS_REGEX" = "1"; then
12617
  USE_ARGREX_TRUE=
12618
  USE_ARGREX_FALSE='#'
12619
else
12620
  USE_ARGREX_TRUE='#'
12621
  USE_ARGREX_FALSE=
12622
fi
12623
 
12624
 if test "$SYS_STRPTIME" = "1"; then
12625
  USE_ARGDATE_TRUE=
12626
  USE_ARGDATE_FALSE='#'
12627
else
12628
  USE_ARGDATE_TRUE='#'
12629
  USE_ARGDATE_FALSE=
12630
fi
12631
 
12632
 
12633
# check for "long long" (added by Erez)
12634 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 19 jeremybenn
/* end confdefs.h.  */
12636
 
12637
int
12638
main ()
12639
{
12640
long long ll; unsigned long long ull;
12641
  ;
12642
  return 0;
12643
}
12644
_ACEOF
12645 118 jeremybenn
if ac_fn_c_try_compile "$LINENO"; then :
12646 19 jeremybenn
 
12647 118 jeremybenn
$as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12648 19 jeremybenn
 
12649
fi
12650
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12651
 
12652
# check for {u,}int{8,16,32}_t in inttypes.h.
12653 118 jeremybenn
ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#include 
12654
"
12655
if test "x$ac_cv_type_uint8_t" = x""yes; then :
12656 82 jeremybenn
 
12657 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12658
#define HAVE_UINT8_T 1
12659
_ACEOF
12660
 
12661
 
12662
fi
12663 118 jeremybenn
ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#include 
12664
"
12665
if test "x$ac_cv_type_uint16_t" = x""yes; then :
12666 82 jeremybenn
 
12667 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12668
#define HAVE_UINT16_T 1
12669
_ACEOF
12670
 
12671
 
12672
fi
12673 118 jeremybenn
ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include 
12674
"
12675
if test "x$ac_cv_type_uint32_t" = x""yes; then :
12676 82 jeremybenn
 
12677 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12678
#define HAVE_UINT32_T 1
12679
_ACEOF
12680
 
12681
 
12682
fi
12683
 
12684 118 jeremybenn
ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#include 
12685
"
12686
if test "x$ac_cv_type_int8_t" = x""yes; then :
12687 82 jeremybenn
 
12688 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12689
#define HAVE_INT8_T 1
12690
_ACEOF
12691
 
12692
 
12693
fi
12694 118 jeremybenn
ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#include 
12695
"
12696
if test "x$ac_cv_type_int16_t" = x""yes; then :
12697 82 jeremybenn
 
12698 19 jeremybenn
cat >>confdefs.h <<_ACEOF
12699
#define HAVE_INT16_T 1
12700
_ACEOF
12701
 
12702
 
12703
fi
12704 118 jeremybenn
ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#include 
12705
"
12706
if test "x$ac_cv_type_int32_t" = x""yes; then :
12707 19 jeremybenn
 
12708 82 jeremybenn
cat >>confdefs.h <<_ACEOF
12709
#define HAVE_INT32_T 1
12710
_ACEOF
12711
 
12712
 
12713
fi
12714
 
12715
 
12716 19 jeremybenn
# The cast to long int works around a bug in the HP C Compiler
12717
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12718
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12719
# This bug is HP SR number 8606223364.
12720 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12721 82 jeremybenn
$as_echo_n "checking size of char... " >&6; }
12722 118 jeremybenn
if test "${ac_cv_sizeof_char+set}" = set; then :
12723 82 jeremybenn
  $as_echo_n "(cached) " >&6
12724 19 jeremybenn
else
12725 118 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
12726 19 jeremybenn
 
12727
else
12728 118 jeremybenn
  if test "$ac_cv_type_char" = yes; then
12729
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12730 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12731 118 jeremybenn
{ as_fn_set_status 77
12732
as_fn_error "cannot compute sizeof (char)
12733
See \`config.log' for more details." "$LINENO" 5; }; }
12734 19 jeremybenn
   else
12735
     ac_cv_sizeof_char=0
12736
   fi
12737
fi
12738 118 jeremybenn
 
12739 19 jeremybenn
fi
12740 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12741 82 jeremybenn
$as_echo "$ac_cv_sizeof_char" >&6; }
12742 19 jeremybenn
 
12743
 
12744
 
12745
cat >>confdefs.h <<_ACEOF
12746
#define SIZEOF_CHAR $ac_cv_sizeof_char
12747
_ACEOF
12748
 
12749
 
12750
# The cast to long int works around a bug in the HP C Compiler
12751
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12752
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12753
# This bug is HP SR number 8606223364.
12754 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12755 82 jeremybenn
$as_echo_n "checking size of short... " >&6; }
12756 118 jeremybenn
if test "${ac_cv_sizeof_short+set}" = set; then :
12757 82 jeremybenn
  $as_echo_n "(cached) " >&6
12758 19 jeremybenn
else
12759 118 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
12760 19 jeremybenn
 
12761
else
12762 118 jeremybenn
  if test "$ac_cv_type_short" = yes; then
12763
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12764 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12765 118 jeremybenn
{ as_fn_set_status 77
12766
as_fn_error "cannot compute sizeof (short)
12767
See \`config.log' for more details." "$LINENO" 5; }; }
12768 19 jeremybenn
   else
12769
     ac_cv_sizeof_short=0
12770
   fi
12771
fi
12772 118 jeremybenn
 
12773 19 jeremybenn
fi
12774 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12775 82 jeremybenn
$as_echo "$ac_cv_sizeof_short" >&6; }
12776 19 jeremybenn
 
12777
 
12778
 
12779
cat >>confdefs.h <<_ACEOF
12780
#define SIZEOF_SHORT $ac_cv_sizeof_short
12781
_ACEOF
12782
 
12783
 
12784
# The cast to long int works around a bug in the HP C Compiler
12785
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12786
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12787
# This bug is HP SR number 8606223364.
12788 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12789 82 jeremybenn
$as_echo_n "checking size of int... " >&6; }
12790 118 jeremybenn
if test "${ac_cv_sizeof_int+set}" = set; then :
12791 82 jeremybenn
  $as_echo_n "(cached) " >&6
12792 19 jeremybenn
else
12793 118 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
12794 19 jeremybenn
 
12795
else
12796 118 jeremybenn
  if test "$ac_cv_type_int" = yes; then
12797
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12798 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12799 118 jeremybenn
{ as_fn_set_status 77
12800
as_fn_error "cannot compute sizeof (int)
12801
See \`config.log' for more details." "$LINENO" 5; }; }
12802 19 jeremybenn
   else
12803
     ac_cv_sizeof_int=0
12804
   fi
12805
fi
12806 118 jeremybenn
 
12807 19 jeremybenn
fi
12808 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12809 82 jeremybenn
$as_echo "$ac_cv_sizeof_int" >&6; }
12810 19 jeremybenn
 
12811
 
12812
 
12813
cat >>confdefs.h <<_ACEOF
12814
#define SIZEOF_INT $ac_cv_sizeof_int
12815
_ACEOF
12816
 
12817
 
12818
# The cast to long int works around a bug in the HP C Compiler
12819
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12820
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12821
# This bug is HP SR number 8606223364.
12822 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12823 82 jeremybenn
$as_echo_n "checking size of long... " >&6; }
12824 118 jeremybenn
if test "${ac_cv_sizeof_long+set}" = set; then :
12825 82 jeremybenn
  $as_echo_n "(cached) " >&6
12826 19 jeremybenn
else
12827 118 jeremybenn
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12828 19 jeremybenn
 
12829
else
12830 118 jeremybenn
  if test "$ac_cv_type_long" = yes; then
12831
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12832 82 jeremybenn
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833 118 jeremybenn
{ as_fn_set_status 77
12834
as_fn_error "cannot compute sizeof (long)
12835
See \`config.log' for more details." "$LINENO" 5; }; }
12836 19 jeremybenn
   else
12837
     ac_cv_sizeof_long=0
12838
   fi
12839
fi
12840 118 jeremybenn
 
12841 19 jeremybenn
fi
12842 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12843 82 jeremybenn
$as_echo "$ac_cv_sizeof_long" >&6; }
12844 19 jeremybenn
 
12845
 
12846
 
12847
cat >>confdefs.h <<_ACEOF
12848
#define SIZEOF_LONG $ac_cv_sizeof_long
12849
_ACEOF
12850
 
12851
 
12852
 
12853
#Check for compare function type for qsort (needed by some Linuxes)
12854 118 jeremybenn
ac_fn_c_check_type "$LINENO" "__compar_fn_t" "ac_cv_type___compar_fn_t" "$ac_includes_default"
12855
if test "x$ac_cv_type___compar_fn_t" = x""yes; then :
12856 19 jeremybenn
 
12857
cat >>confdefs.h <<_ACEOF
12858
#define HAVE___COMPAR_FN_T 1
12859
_ACEOF
12860
 
12861
 
12862
fi
12863
 
12864
 
12865
# check for GNU readline
12866 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
12867 82 jeremybenn
$as_echo_n "checking for add_history in -lreadline... " >&6; }
12868 118 jeremybenn
if test "${ac_cv_lib_readline_add_history+set}" = set; then :
12869 82 jeremybenn
  $as_echo_n "(cached) " >&6
12870 19 jeremybenn
else
12871
  ac_check_lib_save_LIBS=$LIBS
12872
LIBS="-lreadline  $LIBS"
12873 118 jeremybenn
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 19 jeremybenn
/* end confdefs.h.  */
12875
 
12876
/* Override any GCC internal prototype to avoid an error.
12877
   Use char because int might match the return type of a GCC
12878
   builtin and then its argument prototype would still apply.  */
12879
#ifdef __cplusplus
12880
extern "C"
12881
#endif
12882
char add_history ();
12883
int
12884
main ()
12885
{
12886
return add_history ();
12887
  ;
12888
  return 0;
12889
}
12890
_ACEOF
12891 118 jeremybenn
if ac_fn_c_try_link "$LINENO"; then :
12892 19 jeremybenn
  ac_cv_lib_readline_add_history=yes
12893
else
12894 118 jeremybenn
  ac_cv_lib_readline_add_history=no
12895 19 jeremybenn
fi
12896 118 jeremybenn
rm -f core conftest.err conftest.$ac_objext \
12897
    conftest$ac_exeext conftest.$ac_ext
12898 19 jeremybenn
LIBS=$ac_check_lib_save_LIBS
12899
fi
12900 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
12901 82 jeremybenn
$as_echo "$ac_cv_lib_readline_add_history" >&6; }
12902 118 jeremybenn
if test "x$ac_cv_lib_readline_add_history" = x""yes; then :
12903 19 jeremybenn
  cat >>confdefs.h <<_ACEOF
12904
#define HAVE_LIBREADLINE 1
12905
_ACEOF
12906
 
12907
  LIBS="-lreadline $LIBS"
12908
 
12909
fi
12910
 
12911
 
12912
# yuck
12913
case "$host_os" in
12914
aix*)   prefer_curses=yes ;;
12915
esac
12916
 
12917
case "$host_cpu" in
12918
*cray*) LOCAL_CFLAGS=-DCRAY ;;
12919
esac
12920
 
12921
case "$host_os" in
12922
isc*)   LOCAL_CFLAGS=-Disc386 ;;
12923
esac
12924
 
12925
case "$host_os" in
12926
solaris*) LIBS="-lsocket -lnsl" ;;
12927
esac
12928
 
12929
# define options
12930 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
12931 82 jeremybenn
$as_echo_n "checking whether to enable profiling... " >&6; }
12932 19 jeremybenn
# Check whether --enable-profiling was given.
12933 118 jeremybenn
if test "${enable_profiling+set}" = set; then :
12934 19 jeremybenn
  enableval=$enable_profiling;
12935
    case "$enableval" in
12936
        yes) profile="-pg" ;;
12937
    esac
12938
 
12939
fi
12940
 
12941 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
12942 82 jeremybenn
$as_echo "${enable_profiling-no}" >&6; }
12943 19 jeremybenn
 
12944
execution="1"
12945
 
12946
INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12947 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which execution style to use" >&5
12948 82 jeremybenn
$as_echo_n "checking which execution style to use... " >&6; }
12949 19 jeremybenn
# Check whether --enable-execution was given.
12950 118 jeremybenn
if test "${enable_execution+set}" = set; then :
12951 19 jeremybenn
  enableval=$enable_execution;
12952
    case "$enableval" in
12953
    simple)
12954
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12955
      execution="0"
12956 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple" >&5
12957 82 jeremybenn
$as_echo "simple" >&6; }
12958 19 jeremybenn
      ;;
12959
    complex)
12960
      INCLUDES="-I\${top_builddir}/cpu/$CPU_ARCH"
12961
      execution="1"
12962 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12963 82 jeremybenn
$as_echo "complex" >&6; }
12964 19 jeremybenn
      ;;
12965
    dynamic)
12966
      INCLUDES="-I\${top_srcdir}/cpu/$CPU_ARCH"
12967
      execution="2"
12968 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
12969 82 jeremybenn
$as_echo "dynamic" >&6; }
12970 19 jeremybenn
      ;;
12971
    *)
12972 118 jeremybenn
      as_fn_error "\"excecution must one of simple/complex/dynamic\"" "$LINENO" 5
12973 19 jeremybenn
      ;;
12974
    esac
12975
 
12976
else
12977
 
12978 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: complex" >&5
12979 82 jeremybenn
$as_echo "complex" >&6; }
12980 19 jeremybenn
 
12981
fi
12982
 
12983
 
12984
eth_phy="0"
12985 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ethernet phy emulation" >&5
12986 82 jeremybenn
$as_echo_n "checking whether to enable ethernet phy emulation... " >&6; }
12987 19 jeremybenn
# Check whether --enable-ethphy was given.
12988 118 jeremybenn
if test "${enable_ethphy+set}" = set; then :
12989 19 jeremybenn
  enableval=$enable_ethphy;
12990
    case "$enableval" in
12991
  no)  eth_phy="0" ;;
12992
        yes) eth_phy="1" ;;
12993
    esac
12994
 
12995
fi
12996
 
12997 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_eth_phy-no}" >&5
12998 82 jeremybenn
$as_echo "${enable_eth_phy-no}" >&6; }
12999 19 jeremybenn
 
13000
 
13001
raw_range_stats="0"
13002 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use raw range stats" >&5
13003 82 jeremybenn
$as_echo_n "checking whether to use raw range stats... " >&6; }
13004 19 jeremybenn
# Check whether --enable-range_stats was given.
13005 118 jeremybenn
if test "${enable_range_stats+set}" = set; then :
13006 19 jeremybenn
  enableval=$enable_range_stats;
13007
    case "$enableval" in
13008
  no)  raw_range_stats="0" ;;
13009
        yes) raw_range_stats="1" simple_execution="1" ;;
13010
    esac
13011
 
13012
fi
13013
 
13014 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_range_stats-no}" >&5
13015 82 jeremybenn
$as_echo "${enable_range_stats-no}" >&6; }
13016 19 jeremybenn
 
13017
set_arith_flag="0"
13018 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether arithmethic instructions set flag" >&5
13019 82 jeremybenn
$as_echo_n "checking whether arithmethic instructions set flag... " >&6; }
13020 19 jeremybenn
# Check whether --enable-arith_flag was given.
13021 118 jeremybenn
if test "${enable_arith_flag+set}" = set; then :
13022 19 jeremybenn
  enableval=$enable_arith_flag;
13023
    case "$enableval" in
13024
  no)  set_arith_flag="0" ;;
13025
        yes) set_arith_flag="1" ;;
13026
    esac
13027
 
13028
fi
13029
 
13030 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_arith_flag-no}" >&5
13031 82 jeremybenn
$as_echo "${enable_arith_flag-no}" >&6; }
13032 19 jeremybenn
 
13033
# check for --enable-debug argument (for argtable2)
13034
# Check whether --enable-debug was given.
13035 118 jeremybenn
if test "${enable_debug+set}" = set; then :
13036 19 jeremybenn
  enableval=$enable_debug;
13037
       case $enableval in
13038
          yes) echo "enabling argtable2 debugging symbols" & DEBUGFLAGS="-g -UNDEBUG";;
13039
          no)  echo "disabling argtable2 debugging symbols" & DEBUGFLAGS="-DNDEBUG";;
13040
          *)   echo "illegal argument to --enable-debug" & exit 1;;
13041
       esac
13042
 
13043
else
13044
  DEBUGFLAGS="-DNDEBUG"
13045
 
13046
fi
13047
 
13048
 
13049
 
13050
 
13051
cat >>confdefs.h <<_ACEOF
13052
#define RAW_RANGE_STATS $raw_range_stats
13053
_ACEOF
13054
 
13055
 
13056
cat >>confdefs.h <<_ACEOF
13057
#define ARITH_SET_FLAG $set_arith_flag
13058
_ACEOF
13059
 
13060
 
13061
cat >>confdefs.h <<_ACEOF
13062
#define HAVE_ETH_PHY $eth_phy
13063
_ACEOF
13064
 
13065
 
13066
cat >>confdefs.h <<_ACEOF
13067
#define SIMPLE_EXECUTION $execution == 0
13068
_ACEOF
13069
 
13070
 
13071
cat >>confdefs.h <<_ACEOF
13072
#define COMPLEX_EXECUTION $execution == 1
13073
_ACEOF
13074
 
13075
 
13076
cat >>confdefs.h <<_ACEOF
13077
#define DYNAMIC_EXECUTION $execution == 2
13078
_ACEOF
13079
 
13080
 if test x$execution = x1; then
13081
  GENERATE_NEEDED_TRUE=
13082
  GENERATE_NEEDED_FALSE='#'
13083
else
13084
  GENERATE_NEEDED_TRUE='#'
13085
  GENERATE_NEEDED_FALSE=
13086
fi
13087
 
13088
 if test x$execution = x2; then
13089
  DYNAMIC_EXECUTION_TRUE=
13090
  DYNAMIC_EXECUTION_FALSE='#'
13091
else
13092
  DYNAMIC_EXECUTION_TRUE='#'
13093
  DYNAMIC_EXECUTION_FALSE=
13094
fi
13095
 
13096
 
13097
 
13098
test -n "$profile"  && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
13099
 
13100 90 jeremybenn
# Check for a DejaGNU global config file. If not set, then set it
13101
# ourselves. This stops runtest complaining
13102
if test x"$DEJAGNU" = x
13103
then
13104 96 jeremybenn
  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
13105 90 jeremybenn
fi
13106
 
13107 96 jeremybenn
 
13108
 
13109
# The following line will override the default definition of the srcdir, and
13110
# ensure that short names are used for the test names.
13111
RUNTESTDEFAULTFLAGS="--tool \$\$tool"
13112
 
13113
 
13114 19 jeremybenn
BUILD_DIR=`pwd`
13115
 
13116
 
13117
 
13118
 
13119
 
13120
 
13121
 
13122
 
13123
 
13124
 
13125
 
13126
 
13127
 
13128
 
13129
 
13130
 
13131
 
13132
 
13133 118 jeremybenn
$as_echo "#define HAVE_EXECUTION 1" >>confdefs.h
13134 19 jeremybenn
 
13135
 
13136
# yuck
13137
INCLUDES="$INCLUDES -I\${top_srcdir} -I\${top_srcdir}/cpu/common \
13138
-I\${top_srcdir}/cpu/or1k -I\${top_srcdir}/cache -I\${top_srcdir}/mmu \
13139
-I\${top_srcdir}/bpb -I\${top_srcdir}/peripheral -I\${top_srcdir}/tick \
13140
-I\${top_srcdir}/peripheral/channels -I\${top_srcdir}/pm -I\${top_srcdir}/pic \
13141
-I\${top_srcdir}/debug -I\${top_srcdir}/vapi -I\${top_srcdir}/support \
13142
-I\${top_srcdir}/cuc -I\${top_srcdir}/port -I\${top_srcdir}/argtable2"
13143
 
13144
 
13145 97 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-jtag/Makefile testsuite/test-code/lib-upcalls/Makefile tick/Makefile vapi/Makefile"
13146 19 jeremybenn
 
13147
 
13148
# yuck. I don't know why I cannot just substitute $CPU_ARCH in the above
13149
case "$CPU_ARCH" in
13150
dlx)    ac_config_files="$ac_config_files cpu/dlx/Makefile"
13151
;;
13152
*)      ac_config_files="$ac_config_files cpu/or32/Makefile"
13153
;;
13154
esac
13155
 
13156 82 jeremybenn
# Generate the output
13157
 
13158
 
13159 19 jeremybenn
cat >confcache <<\_ACEOF
13160
# This file is a shell script that caches the results of configure
13161
# tests run on this system so they can be shared between configure
13162
# scripts and configure runs, see configure's option --config-cache.
13163
# It is not useful on other systems.  If it contains results you don't
13164
# want to keep, you may remove or edit it.
13165
#
13166
# config.status only pays attention to the cache file if you give it
13167
# the --recheck option to rerun configure.
13168
#
13169
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13170
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13171
# following values.
13172
 
13173
_ACEOF
13174
 
13175
# The following way of writing the cache mishandles newlines in values,
13176
# but we know of no workaround that is simple, portable, and efficient.
13177
# So, we kill variables containing newlines.
13178
# Ultrix sh set writes to stderr and can't be redirected directly,
13179
# and sets the high bit in the cache file unless we assign to the vars.
13180
(
13181
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13182
    eval ac_val=\$$ac_var
13183
    case $ac_val in #(
13184
    *${as_nl}*)
13185
      case $ac_var in #(
13186 118 jeremybenn
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13187 82 jeremybenn
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13188 19 jeremybenn
      esac
13189
      case $ac_var in #(
13190
      _ | IFS | as_nl) ;; #(
13191 82 jeremybenn
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13192 118 jeremybenn
      *) { eval $ac_var=; unset $ac_var;} ;;
13193 19 jeremybenn
      esac ;;
13194
    esac
13195
  done
13196
 
13197
  (set) 2>&1 |
13198
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13199
    *${as_nl}ac_space=\ *)
13200 118 jeremybenn
      # `set' does not quote correctly, so add quotes: double-quote
13201
      # substitution turns \\\\ into \\, and sed turns \\ into \.
13202 19 jeremybenn
      sed -n \
13203
        "s/'/'\\\\''/g;
13204
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13205
      ;; #(
13206
    *)
13207
      # `set' quotes correctly as required by POSIX, so do not add quotes.
13208
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13209
      ;;
13210
    esac |
13211
    sort
13212
) |
13213
  sed '
13214
     /^ac_cv_env_/b end
13215
     t clear
13216
     :clear
13217
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13218
     t end
13219
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13220
     :end' >>confcache
13221
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13222
  if test -w "$cache_file"; then
13223
    test "x$cache_file" != "x/dev/null" &&
13224 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13225 82 jeremybenn
$as_echo "$as_me: updating cache $cache_file" >&6;}
13226 19 jeremybenn
    cat confcache >$cache_file
13227
  else
13228 118 jeremybenn
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13229 82 jeremybenn
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13230 19 jeremybenn
  fi
13231
fi
13232
rm -f confcache
13233
 
13234
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13235
# Let make expand exec_prefix.
13236
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13237
 
13238
DEFS=-DHAVE_CONFIG_H
13239
 
13240
ac_libobjs=
13241
ac_ltlibobjs=
13242
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13243
  # 1. Remove the extension, and $U if already installed.
13244
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13245 82 jeremybenn
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13246 19 jeremybenn
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13247
  #    will be set to the directory where LIBOBJS objects are built.
13248 118 jeremybenn
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13249
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13250 19 jeremybenn
done
13251
LIBOBJS=$ac_libobjs
13252
 
13253
LTLIBOBJS=$ac_ltlibobjs
13254
 
13255
 
13256
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13257 118 jeremybenn
  as_fn_error "conditional \"AMDEP\" was never defined.
13258
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13259 19 jeremybenn
fi
13260
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13261 118 jeremybenn
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13262
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13263 19 jeremybenn
fi
13264 82 jeremybenn
 if test -n "$EXEEXT"; then
13265
  am__EXEEXT_TRUE=
13266
  am__EXEEXT_FALSE='#'
13267
else
13268
  am__EXEEXT_TRUE='#'
13269
  am__EXEEXT_FALSE=
13270
fi
13271
 
13272
if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13273 118 jeremybenn
  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13274
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13275 19 jeremybenn
fi
13276 82 jeremybenn
 
13277 19 jeremybenn
if test -z "${USE_SYS_GETOPTLONG_TRUE}" && test -z "${USE_SYS_GETOPTLONG_FALSE}"; then
13278 118 jeremybenn
  as_fn_error "conditional \"USE_SYS_GETOPTLONG\" was never defined.
13279
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13280 19 jeremybenn
fi
13281
if test -z "${USE_ARGREX_TRUE}" && test -z "${USE_ARGREX_FALSE}"; then
13282 118 jeremybenn
  as_fn_error "conditional \"USE_ARGREX\" was never defined.
13283
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13284 19 jeremybenn
fi
13285
if test -z "${USE_ARGDATE_TRUE}" && test -z "${USE_ARGDATE_FALSE}"; then
13286 118 jeremybenn
  as_fn_error "conditional \"USE_ARGDATE\" was never defined.
13287
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13288 19 jeremybenn
fi
13289
if test -z "${GENERATE_NEEDED_TRUE}" && test -z "${GENERATE_NEEDED_FALSE}"; then
13290 118 jeremybenn
  as_fn_error "conditional \"GENERATE_NEEDED\" was never defined.
13291
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13292 19 jeremybenn
fi
13293
if test -z "${DYNAMIC_EXECUTION_TRUE}" && test -z "${DYNAMIC_EXECUTION_FALSE}"; then
13294 118 jeremybenn
  as_fn_error "conditional \"DYNAMIC_EXECUTION\" was never defined.
13295
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13296 19 jeremybenn
fi
13297
 
13298
: ${CONFIG_STATUS=./config.status}
13299 82 jeremybenn
ac_write_fail=0
13300 19 jeremybenn
ac_clean_files_save=$ac_clean_files
13301
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13302 118 jeremybenn
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13303 82 jeremybenn
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13304 118 jeremybenn
as_write_fail=0
13305
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13306 19 jeremybenn
#! $SHELL
13307
# Generated by $as_me.
13308
# Run this file to recreate the current configuration.
13309
# Compiler output produced by configure, useful for debugging
13310
# configure, is in config.log if it exists.
13311
 
13312
debug=false
13313
ac_cs_recheck=false
13314
ac_cs_silent=false
13315 118 jeremybenn
 
13316 19 jeremybenn
SHELL=\${CONFIG_SHELL-$SHELL}
13317 118 jeremybenn
export SHELL
13318
_ASEOF
13319
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13320
## -------------------- ##
13321
## M4sh Initialization. ##
13322
## -------------------- ##
13323 19 jeremybenn
 
13324
# Be more Bourne compatible
13325
DUALCASE=1; export DUALCASE # for MKS sh
13326 118 jeremybenn
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13327 19 jeremybenn
  emulate sh
13328
  NULLCMD=:
13329 82 jeremybenn
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13330 19 jeremybenn
  # is contrary to our usage.  Disable this feature.
13331
  alias -g '${1+"$@"}'='"$@"'
13332
  setopt NO_GLOB_SUBST
13333
else
13334 118 jeremybenn
  case `(set -o) 2>/dev/null` in #(
13335
  *posix*) :
13336
    set -o posix ;; #(
13337
  *) :
13338
     ;;
13339 19 jeremybenn
esac
13340
fi
13341
 
13342
 
13343 82 jeremybenn
as_nl='
13344
'
13345
export as_nl
13346
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13347
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13348
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13349
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13350 118 jeremybenn
# Prefer a ksh shell builtin over an external printf program on Solaris,
13351
# but without wasting forks for bash or zsh.
13352
if test -z "$BASH_VERSION$ZSH_VERSION" \
13353
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13354
  as_echo='print -r --'
13355
  as_echo_n='print -rn --'
13356
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13357 82 jeremybenn
  as_echo='printf %s\n'
13358
  as_echo_n='printf %s'
13359
else
13360
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13361
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13362
    as_echo_n='/usr/ucb/echo -n'
13363 19 jeremybenn
  else
13364 82 jeremybenn
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13365
    as_echo_n_body='eval
13366
      arg=$1;
13367 118 jeremybenn
      case $arg in #(
13368 82 jeremybenn
      *"$as_nl"*)
13369
        expr "X$arg" : "X\\(.*\\)$as_nl";
13370
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13371
      esac;
13372
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13373
    '
13374
    export as_echo_n_body
13375
    as_echo_n='sh -c $as_echo_n_body as_echo'
13376 19 jeremybenn
  fi
13377 82 jeremybenn
  export as_echo_body
13378
  as_echo='sh -c $as_echo_body as_echo'
13379 19 jeremybenn
fi
13380
 
13381 82 jeremybenn
# The user is always right.
13382
if test "${PATH_SEPARATOR+set}" != set; then
13383
  PATH_SEPARATOR=:
13384
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13385
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13386
      PATH_SEPARATOR=';'
13387
  }
13388
fi
13389
 
13390 19 jeremybenn
 
13391
# IFS
13392
# We need space, tab and new line, in precisely that order.  Quoting is
13393
# there to prevent editors from complaining about space-tab.
13394
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13395
# splitting by setting IFS to empty value.)
13396
IFS=" ""        $as_nl"
13397
 
13398
# Find who we are.  Look in the path if we contain no directory separator.
13399 118 jeremybenn
case $0 in #((
13400 19 jeremybenn
  *[\\/]* ) as_myself=$0 ;;
13401
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402
for as_dir in $PATH
13403
do
13404
  IFS=$as_save_IFS
13405
  test -z "$as_dir" && as_dir=.
13406 118 jeremybenn
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13407
  done
13408 19 jeremybenn
IFS=$as_save_IFS
13409
 
13410
     ;;
13411
esac
13412
# We did not find ourselves, most probably we were run as `sh COMMAND'
13413
# in which case we are not to be found in the path.
13414
if test "x$as_myself" = x; then
13415
  as_myself=$0
13416
fi
13417
if test ! -f "$as_myself"; then
13418 82 jeremybenn
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13419 118 jeremybenn
  exit 1
13420 19 jeremybenn
fi
13421
 
13422 118 jeremybenn
# Unset variables that we do not need and which cause bugs (e.g. in
13423
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13424
# suppresses any "Segmentation fault" message there.  '((' could
13425
# trigger a bug in pdksh 5.2.14.
13426
for as_var in BASH_ENV ENV MAIL MAILPATH
13427
do eval test x\${$as_var+set} = xset \
13428
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13429 19 jeremybenn
done
13430
PS1='$ '
13431
PS2='> '
13432
PS4='+ '
13433
 
13434
# NLS nuisances.
13435 82 jeremybenn
LC_ALL=C
13436
export LC_ALL
13437
LANGUAGE=C
13438
export LANGUAGE
13439 19 jeremybenn
 
13440 118 jeremybenn
# CDPATH.
13441
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13442
 
13443
 
13444
# as_fn_error ERROR [LINENO LOG_FD]
13445
# ---------------------------------
13446
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13447
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13448
# script with status $?, using 1 if that was 0.
13449
as_fn_error ()
13450
{
13451
  as_status=$?; test $as_status -eq 0 && as_status=1
13452
  if test "$3"; then
13453
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13454
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13455
  fi
13456
  $as_echo "$as_me: error: $1" >&2
13457
  as_fn_exit $as_status
13458
} # as_fn_error
13459
 
13460
 
13461
# as_fn_set_status STATUS
13462
# -----------------------
13463
# Set $? to STATUS, without forking.
13464
as_fn_set_status ()
13465
{
13466
  return $1
13467
} # as_fn_set_status
13468
 
13469
# as_fn_exit STATUS
13470
# -----------------
13471
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13472
as_fn_exit ()
13473
{
13474
  set +e
13475
  as_fn_set_status $1
13476
  exit $1
13477
} # as_fn_exit
13478
 
13479
# as_fn_unset VAR
13480
# ---------------
13481
# Portably unset VAR.
13482
as_fn_unset ()
13483
{
13484
  { eval $1=; unset $1;}
13485
}
13486
as_unset=as_fn_unset
13487
# as_fn_append VAR VALUE
13488
# ----------------------
13489
# Append the text in VALUE to the end of the definition contained in VAR. Take
13490
# advantage of any shell optimizations that allow amortized linear growth over
13491
# repeated appends, instead of the typical quadratic growth present in naive
13492
# implementations.
13493
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13494
  eval 'as_fn_append ()
13495
  {
13496
    eval $1+=\$2
13497
  }'
13498
else
13499
  as_fn_append ()
13500
  {
13501
    eval $1=\$$1\$2
13502
  }
13503
fi # as_fn_append
13504
 
13505
# as_fn_arith ARG...
13506
# ------------------
13507
# Perform arithmetic evaluation on the ARGs, and store the result in the
13508
# global $as_val. Take advantage of shells that can avoid forks. The arguments
13509
# must be portable across $(()) and expr.
13510
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13511
  eval 'as_fn_arith ()
13512
  {
13513
    as_val=$(( $* ))
13514
  }'
13515
else
13516
  as_fn_arith ()
13517
  {
13518
    as_val=`expr "$@" || test $? -eq 1`
13519
  }
13520
fi # as_fn_arith
13521
 
13522
 
13523 19 jeremybenn
if expr a : '\(a\)' >/dev/null 2>&1 &&
13524
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13525
  as_expr=expr
13526
else
13527
  as_expr=false
13528
fi
13529
 
13530
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13531
  as_basename=basename
13532
else
13533
  as_basename=false
13534
fi
13535
 
13536 118 jeremybenn
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13537
  as_dirname=dirname
13538
else
13539
  as_dirname=false
13540
fi
13541 19 jeremybenn
 
13542
as_me=`$as_basename -- "$0" ||
13543
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13544
         X"$0" : 'X\(//\)$' \| \
13545
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13546 82 jeremybenn
$as_echo X/"$0" |
13547 19 jeremybenn
    sed '/^.*\/\([^/][^/]*\)\/*$/{
13548
            s//\1/
13549
            q
13550
          }
13551
          /^X\/\(\/\/\)$/{
13552
            s//\1/
13553
            q
13554
          }
13555
          /^X\/\(\/\).*/{
13556
            s//\1/
13557
            q
13558
          }
13559
          s/.*/./; q'`
13560
 
13561 118 jeremybenn
# Avoid depending upon Character Ranges.
13562
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13563
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13564
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13565
as_cr_digits='0123456789'
13566
as_cr_alnum=$as_cr_Letters$as_cr_digits
13567 19 jeremybenn
 
13568
ECHO_C= ECHO_N= ECHO_T=
13569 118 jeremybenn
case `echo -n x` in #(((((
13570 19 jeremybenn
-n*)
13571 118 jeremybenn
  case `echo 'xy\c'` in
13572 19 jeremybenn
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13573 118 jeremybenn
  xy)  ECHO_C='\c';;
13574
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13575
       ECHO_T=' ';;
13576 19 jeremybenn
  esac;;
13577
*)
13578
  ECHO_N='-n';;
13579
esac
13580
 
13581
rm -f conf$$ conf$$.exe conf$$.file
13582
if test -d conf$$.dir; then
13583
  rm -f conf$$.dir/conf$$.file
13584
else
13585
  rm -f conf$$.dir
13586 82 jeremybenn
  mkdir conf$$.dir 2>/dev/null
13587 19 jeremybenn
fi
13588 82 jeremybenn
if (echo >conf$$.file) 2>/dev/null; then
13589
  if ln -s conf$$.file conf$$ 2>/dev/null; then
13590
    as_ln_s='ln -s'
13591
    # ... but there are two gotchas:
13592
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13593
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13594
    # In both cases, we have to default to `cp -p'.
13595
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13596
      as_ln_s='cp -p'
13597
  elif ln conf$$.file conf$$ 2>/dev/null; then
13598
    as_ln_s=ln
13599
  else
13600 19 jeremybenn
    as_ln_s='cp -p'
13601 82 jeremybenn
  fi
13602 19 jeremybenn
else
13603
  as_ln_s='cp -p'
13604
fi
13605
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13606
rmdir conf$$.dir 2>/dev/null
13607
 
13608 118 jeremybenn
 
13609
# as_fn_mkdir_p
13610
# -------------
13611
# Create "$as_dir" as a directory, including parents if necessary.
13612
as_fn_mkdir_p ()
13613
{
13614
 
13615
  case $as_dir in #(
13616
  -*) as_dir=./$as_dir;;
13617
  esac
13618
  test -d "$as_dir" || eval $as_mkdir_p || {
13619
    as_dirs=
13620
    while :; do
13621
      case $as_dir in #(
13622
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13623
      *) as_qdir=$as_dir;;
13624
      esac
13625
      as_dirs="'$as_qdir' $as_dirs"
13626
      as_dir=`$as_dirname -- "$as_dir" ||
13627
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13628
         X"$as_dir" : 'X\(//\)[^/]' \| \
13629
         X"$as_dir" : 'X\(//\)$' \| \
13630
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13631
$as_echo X"$as_dir" |
13632
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13633
            s//\1/
13634
            q
13635
          }
13636
          /^X\(\/\/\)[^/].*/{
13637
            s//\1/
13638
            q
13639
          }
13640
          /^X\(\/\/\)$/{
13641
            s//\1/
13642
            q
13643
          }
13644
          /^X\(\/\).*/{
13645
            s//\1/
13646
            q
13647
          }
13648
          s/.*/./; q'`
13649
      test -d "$as_dir" && break
13650
    done
13651
    test -z "$as_dirs" || eval "mkdir $as_dirs"
13652
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13653
 
13654
 
13655
} # as_fn_mkdir_p
13656 19 jeremybenn
if mkdir -p . 2>/dev/null; then
13657 118 jeremybenn
  as_mkdir_p='mkdir -p "$as_dir"'
13658 19 jeremybenn
else
13659
  test -d ./-p && rmdir ./-p
13660
  as_mkdir_p=false
13661
fi
13662
 
13663
if test -x / >/dev/null 2>&1; then
13664
  as_test_x='test -x'
13665
else
13666
  if ls -dL / >/dev/null 2>&1; then
13667
    as_ls_L_option=L
13668
  else
13669
    as_ls_L_option=
13670
  fi
13671
  as_test_x='
13672
    eval sh -c '\''
13673
      if test -d "$1"; then
13674 82 jeremybenn
        test -d "$1/.";
13675 19 jeremybenn
      else
13676 118 jeremybenn
        case $1 in #(
13677 82 jeremybenn
        -*)set "./$1";;
13678 19 jeremybenn
        esac;
13679 118 jeremybenn
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13680 19 jeremybenn
        ???[sx]*):;;*)false;;esac;fi
13681
    '\'' sh
13682
  '
13683
fi
13684
as_executable_p=$as_test_x
13685
 
13686
# Sed expression to map a string onto a valid CPP name.
13687
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13688
 
13689
# Sed expression to map a string onto a valid variable name.
13690
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13691
 
13692
 
13693
exec 6>&1
13694 118 jeremybenn
## ----------------------------------- ##
13695
## Main body of $CONFIG_STATUS script. ##
13696
## ----------------------------------- ##
13697
_ASEOF
13698
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13699 19 jeremybenn
 
13700 118 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13701
# Save the log message, to keep $0 and so on meaningful, and to
13702 19 jeremybenn
# report actual input values of CONFIG_FILES etc. instead of their
13703
# values after options handling.
13704
ac_log="
13705 118 jeremybenn
This file was extended by or1ksim $as_me 2010-06-13, which was
13706
generated by GNU Autoconf 2.65.  Invocation command line was
13707 19 jeremybenn
 
13708
  CONFIG_FILES    = $CONFIG_FILES
13709
  CONFIG_HEADERS  = $CONFIG_HEADERS
13710
  CONFIG_LINKS    = $CONFIG_LINKS
13711
  CONFIG_COMMANDS = $CONFIG_COMMANDS
13712
  $ $0 $@
13713
 
13714
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13715
"
13716
 
13717
_ACEOF
13718
 
13719 82 jeremybenn
case $ac_config_files in *"
13720
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13721
esac
13722
 
13723
case $ac_config_headers in *"
13724
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13725
esac
13726
 
13727
 
13728
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13729 19 jeremybenn
# Files that config.status was made for.
13730
config_files="$ac_config_files"
13731
config_headers="$ac_config_headers"
13732
config_commands="$ac_config_commands"
13733
 
13734
_ACEOF
13735
 
13736 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13737 19 jeremybenn
ac_cs_usage="\
13738 118 jeremybenn
\`$as_me' instantiates files and other configuration actions
13739
from templates according to the current configuration.  Unless the files
13740
and actions are specified as TAGs, all are instantiated by default.
13741 19 jeremybenn
 
13742 118 jeremybenn
Usage: $0 [OPTION]... [TAG]...
13743 19 jeremybenn
 
13744
  -h, --help       print this help, then exit
13745
  -V, --version    print version number and configuration settings, then exit
13746 118 jeremybenn
      --config     print configuration, then exit
13747 82 jeremybenn
  -q, --quiet, --silent
13748
                   do not print progress messages
13749 19 jeremybenn
  -d, --debug      don't remove temporary files
13750
      --recheck    update $as_me by reconfiguring in the same conditions
13751 82 jeremybenn
      --file=FILE[:TEMPLATE]
13752
                   instantiate the configuration file FILE
13753
      --header=FILE[:TEMPLATE]
13754
                   instantiate the configuration header FILE
13755 19 jeremybenn
 
13756
Configuration files:
13757
$config_files
13758
 
13759
Configuration headers:
13760
$config_headers
13761
 
13762
Configuration commands:
13763
$config_commands
13764
 
13765 118 jeremybenn
Report bugs to ."
13766 19 jeremybenn
 
13767
_ACEOF
13768 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13769 118 jeremybenn
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13770 19 jeremybenn
ac_cs_version="\\
13771 118 jeremybenn
or1ksim config.status 2010-06-13
13772
configured by $0, generated by GNU Autoconf 2.65,
13773
  with options \\"\$ac_cs_config\\"
13774 19 jeremybenn
 
13775 118 jeremybenn
Copyright (C) 2009 Free Software Foundation, Inc.
13776 19 jeremybenn
This config.status script is free software; the Free Software Foundation
13777
gives unlimited permission to copy, distribute and modify it."
13778
 
13779
ac_pwd='$ac_pwd'
13780
srcdir='$srcdir'
13781
INSTALL='$INSTALL'
13782
MKDIR_P='$MKDIR_P'
13783 82 jeremybenn
AWK='$AWK'
13784
test -n "\$AWK" || AWK=awk
13785 19 jeremybenn
_ACEOF
13786
 
13787 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13788
# The default lists apply if the user does not specify any file.
13789 19 jeremybenn
ac_need_defaults=:
13790
while test $# != 0
13791
do
13792
  case $1 in
13793
  --*=*)
13794
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13795
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13796
    ac_shift=:
13797
    ;;
13798
  *)
13799
    ac_option=$1
13800
    ac_optarg=$2
13801
    ac_shift=shift
13802
    ;;
13803
  esac
13804
 
13805
  case $ac_option in
13806
  # Handling of the options.
13807
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13808
    ac_cs_recheck=: ;;
13809
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13810 82 jeremybenn
    $as_echo "$ac_cs_version"; exit ;;
13811 118 jeremybenn
  --config | --confi | --conf | --con | --co | --c )
13812
    $as_echo "$ac_cs_config"; exit ;;
13813 19 jeremybenn
  --debug | --debu | --deb | --de | --d | -d )
13814
    debug=: ;;
13815
  --file | --fil | --fi | --f )
13816
    $ac_shift
13817 82 jeremybenn
    case $ac_optarg in
13818
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13819
    esac
13820 118 jeremybenn
    as_fn_append CONFIG_FILES " '$ac_optarg'"
13821 19 jeremybenn
    ac_need_defaults=false;;
13822
  --header | --heade | --head | --hea )
13823
    $ac_shift
13824 82 jeremybenn
    case $ac_optarg in
13825
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13826
    esac
13827 118 jeremybenn
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13828 19 jeremybenn
    ac_need_defaults=false;;
13829
  --he | --h)
13830
    # Conflict between --help and --header
13831 118 jeremybenn
    as_fn_error "ambiguous option: \`$1'
13832
Try \`$0 --help' for more information.";;
13833 19 jeremybenn
  --help | --hel | -h )
13834 82 jeremybenn
    $as_echo "$ac_cs_usage"; exit ;;
13835 19 jeremybenn
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13836
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13837
    ac_cs_silent=: ;;
13838
 
13839
  # This is an error.
13840 118 jeremybenn
  -*) as_fn_error "unrecognized option: \`$1'
13841
Try \`$0 --help' for more information." ;;
13842 19 jeremybenn
 
13843 118 jeremybenn
  *) as_fn_append ac_config_targets " $1"
13844 19 jeremybenn
     ac_need_defaults=false ;;
13845
 
13846
  esac
13847
  shift
13848
done
13849
 
13850
ac_configure_extra_args=
13851
 
13852
if $ac_cs_silent; then
13853
  exec 6>/dev/null
13854
  ac_configure_extra_args="$ac_configure_extra_args --silent"
13855
fi
13856
 
13857
_ACEOF
13858 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13859 19 jeremybenn
if \$ac_cs_recheck; then
13860 82 jeremybenn
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13861
  shift
13862
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13863
  CONFIG_SHELL='$SHELL'
13864 19 jeremybenn
  export CONFIG_SHELL
13865 82 jeremybenn
  exec "\$@"
13866 19 jeremybenn
fi
13867
 
13868
_ACEOF
13869 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13870 19 jeremybenn
exec 5>>config.log
13871
{
13872
  echo
13873
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13874
## Running $as_me. ##
13875
_ASBOX
13876 82 jeremybenn
  $as_echo "$ac_log"
13877 19 jeremybenn
} >&5
13878
 
13879
_ACEOF
13880 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13881 19 jeremybenn
#
13882
# INIT-COMMANDS
13883
#
13884 82 jeremybenn
 
13885
 
13886
# The HP-UX ksh and POSIX shell print the target directory to stdout
13887
# if CDPATH is set.
13888
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13889
 
13890
sed_quote_subst='$sed_quote_subst'
13891
double_quote_subst='$double_quote_subst'
13892
delay_variable_subst='$delay_variable_subst'
13893
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13894
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13895
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13896
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13897
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13898
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13899
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13900
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13901
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13902
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13903
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13904
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13905
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13906
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13907
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13908
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13909
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13910
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13911
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13912
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13913
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13914
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13915
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13916
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13917
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13918
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13919
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13920
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13921
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13922
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13923
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13924
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13925
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13926
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13927
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13928
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13929
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13930
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13931
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13932
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13933
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13934
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13935
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13936
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13937
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"`'
13938
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"`'
13939
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13940
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13941
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13942
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13943
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13944
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13945
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13946
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13947
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13948
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13949
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13950
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13951
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13952
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13953
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13954
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13955
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13956
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13957
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13958
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13959
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13960
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13961
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13962
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13963
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13964
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13965
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13966
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13967
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13968
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13969
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13970
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13971
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13972
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13973
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13974
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13975
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13976
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13977
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13978
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13979
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13980
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13981
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13982
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13983
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13984
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13985
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13986
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13987
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13988
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13989
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13990
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13991
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13992
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13993
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13994
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13995
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13996
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13997
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13998
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13999
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14000
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14001
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14002
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14003
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14004
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14005
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14006
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14007
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14008
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14009
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14010
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14011
 
14012
LTCC='$LTCC'
14013
LTCFLAGS='$LTCFLAGS'
14014
compiler='$compiler_DEFAULT'
14015
 
14016
# Quote evaled strings.
14017
for var in SED \
14018
GREP \
14019
EGREP \
14020
FGREP \
14021
LD \
14022
NM \
14023
LN_S \
14024
lt_SP2NL \
14025
lt_NL2SP \
14026
reload_flag \
14027
OBJDUMP \
14028
deplibs_check_method \
14029
file_magic_cmd \
14030
AR \
14031
AR_FLAGS \
14032
STRIP \
14033
RANLIB \
14034
CC \
14035
CFLAGS \
14036
compiler \
14037
lt_cv_sys_global_symbol_pipe \
14038
lt_cv_sys_global_symbol_to_cdecl \
14039
lt_cv_sys_global_symbol_to_c_name_address \
14040
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14041
SHELL \
14042
ECHO \
14043
lt_prog_compiler_no_builtin_flag \
14044
lt_prog_compiler_wl \
14045
lt_prog_compiler_pic \
14046
lt_prog_compiler_static \
14047
lt_cv_prog_compiler_c_o \
14048
need_locks \
14049
DSYMUTIL \
14050
NMEDIT \
14051
LIPO \
14052
OTOOL \
14053
OTOOL64 \
14054
shrext_cmds \
14055
export_dynamic_flag_spec \
14056
whole_archive_flag_spec \
14057
compiler_needs_object \
14058
with_gnu_ld \
14059
allow_undefined_flag \
14060
no_undefined_flag \
14061
hardcode_libdir_flag_spec \
14062
hardcode_libdir_flag_spec_ld \
14063
hardcode_libdir_separator \
14064
fix_srcfile_path \
14065
exclude_expsyms \
14066
include_expsyms \
14067
file_list_spec \
14068
variables_saved_for_relink \
14069
libname_spec \
14070
library_names_spec \
14071
soname_spec \
14072
finish_eval \
14073
old_striplib \
14074
striplib; do
14075
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14076
    *[\\\\\\\`\\"\\\$]*)
14077
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14078
      ;;
14079
    *)
14080
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14081
      ;;
14082
    esac
14083
done
14084
 
14085
# Double-quote double-evaled strings.
14086
for var in reload_cmds \
14087
old_postinstall_cmds \
14088
old_postuninstall_cmds \
14089
old_archive_cmds \
14090
extract_expsyms_cmds \
14091
old_archive_from_new_cmds \
14092
old_archive_from_expsyms_cmds \
14093
archive_cmds \
14094
archive_expsym_cmds \
14095
module_cmds \
14096
module_expsym_cmds \
14097
export_symbols_cmds \
14098
prelink_cmds \
14099
postinstall_cmds \
14100
postuninstall_cmds \
14101
finish_cmds \
14102
sys_lib_search_path_spec \
14103
sys_lib_dlsearch_path_spec; do
14104
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14105
    *[\\\\\\\`\\"\\\$]*)
14106
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14107
      ;;
14108
    *)
14109
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14110
      ;;
14111
    esac
14112
done
14113
 
14114
# Fix-up fallback echo if it was mangled by the above quoting rules.
14115
case \$lt_ECHO in
14116
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14117
  ;;
14118
esac
14119
 
14120
ac_aux_dir='$ac_aux_dir'
14121
xsi_shell='$xsi_shell'
14122
lt_shell_append='$lt_shell_append'
14123
 
14124
# See if we are running on zsh, and set the options which allow our
14125
# commands through without removal of \ escapes INIT.
14126
if test -n "\${ZSH_VERSION+set}" ; then
14127
   setopt NO_GLOB_SUBST
14128
fi
14129
 
14130
 
14131
    PACKAGE='$PACKAGE'
14132
    VERSION='$VERSION'
14133
    TIMESTAMP='$TIMESTAMP'
14134
    RM='$RM'
14135
    ofile='$ofile'
14136
 
14137
 
14138
 
14139 19 jeremybenn
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14140
 
14141
_ACEOF
14142
 
14143 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14144 19 jeremybenn
 
14145
# Handling of arguments.
14146
for ac_config_target in $ac_config_targets
14147
do
14148
  case $ac_config_target in
14149 82 jeremybenn
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14150 19 jeremybenn
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14151
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14152
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14153
    "argtable2/Makefile") CONFIG_FILES="$CONFIG_FILES argtable2/Makefile" ;;
14154
    "bpb/Makefile") CONFIG_FILES="$CONFIG_FILES bpb/Makefile" ;;
14155
    "cache/Makefile") CONFIG_FILES="$CONFIG_FILES cache/Makefile" ;;
14156
    "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
14157
    "cpu/common/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/common/Makefile" ;;
14158
    "cpu/or1k/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or1k/Makefile" ;;
14159
    "cuc/Makefile") CONFIG_FILES="$CONFIG_FILES cuc/Makefile" ;;
14160
    "debug/Makefile") CONFIG_FILES="$CONFIG_FILES debug/Makefile" ;;
14161
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14162
    "mmu/Makefile") CONFIG_FILES="$CONFIG_FILES mmu/Makefile" ;;
14163
    "peripheral/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/Makefile" ;;
14164
    "peripheral/channels/Makefile") CONFIG_FILES="$CONFIG_FILES peripheral/channels/Makefile" ;;
14165
    "pm/Makefile") CONFIG_FILES="$CONFIG_FILES pm/Makefile" ;;
14166
    "pic/Makefile") CONFIG_FILES="$CONFIG_FILES pic/Makefile" ;;
14167 90 jeremybenn
    "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
14168
    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14169
    "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14170
    "testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
14171
    "testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
14172
    "testsuite/libsim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libsim.tests/Makefile" ;;
14173
    "testsuite/or1ksim.tests/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/or1ksim.tests/Makefile" ;;
14174
    "testsuite/test-code/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/Makefile" ;;
14175
    "testsuite/test-code/lib-iftest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-iftest/Makefile" ;;
14176 93 jeremybenn
    "testsuite/test-code/lib-inttest/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-inttest/Makefile" ;;
14177 97 jeremybenn
    "testsuite/test-code/lib-jtag/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-jtag/Makefile" ;;
14178 93 jeremybenn
    "testsuite/test-code/lib-upcalls/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/test-code/lib-upcalls/Makefile" ;;
14179 90 jeremybenn
    "tick/Makefile") CONFIG_FILES="$CONFIG_FILES tick/Makefile" ;;
14180 19 jeremybenn
    "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14181
    "cpu/dlx/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/dlx/Makefile" ;;
14182
    "cpu/or32/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/or32/Makefile" ;;
14183
 
14184 118 jeremybenn
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14185 19 jeremybenn
  esac
14186
done
14187
 
14188
 
14189
# If the user did not use the arguments to specify the items to instantiate,
14190
# then the envvar interface is used.  Set only those that are not.
14191
# We use the long form for the default assignment because of an extremely
14192
# bizarre bug on SunOS 4.1.3.
14193
if $ac_need_defaults; then
14194
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14195
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14196
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14197
fi
14198
 
14199
# Have a temporary directory for convenience.  Make it in the build tree
14200
# simply because there is no reason against having it here, and in addition,
14201
# creating and moving files from /tmp can sometimes cause problems.
14202
# Hook for its removal unless debugging.
14203
# Note that there is a small window in which the directory will not be cleaned:
14204
# after its creation but before its name has been assigned to `$tmp'.
14205
$debug ||
14206
{
14207
  tmp=
14208
  trap 'exit_status=$?
14209
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14210
' 0
14211 118 jeremybenn
  trap 'as_fn_exit 1' 1 2 13 15
14212 19 jeremybenn
}
14213
# Create a (secure) tmp directory for tmp files.
14214
 
14215
{
14216
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14217
  test -n "$tmp" && test -d "$tmp"
14218
}  ||
14219
{
14220
  tmp=./conf$$-$RANDOM
14221
  (umask 077 && mkdir "$tmp")
14222 118 jeremybenn
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14223 19 jeremybenn
 
14224 82 jeremybenn
# Set up the scripts for CONFIG_FILES section.
14225
# No need to generate them if there are no CONFIG_FILES.
14226
# This happens for instance with `./config.status config.h'.
14227 19 jeremybenn
if test -n "$CONFIG_FILES"; then
14228
 
14229 82 jeremybenn
 
14230 118 jeremybenn
ac_cr=`echo X | tr X '\015'`
14231
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14232
# But we know of no other shell where ac_cr would be empty at this
14233
# point, so we can use a bashism as a fallback.
14234
if test "x$ac_cr" = x; then
14235
  eval ac_cr=\$\'\\r\'
14236
fi
14237 82 jeremybenn
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null`
14238
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14239 118 jeremybenn
  ac_cs_awk_cr='\r'
14240 82 jeremybenn
else
14241
  ac_cs_awk_cr=$ac_cr
14242
fi
14243
 
14244
echo 'BEGIN {' >"$tmp/subs1.awk" &&
14245 19 jeremybenn
_ACEOF
14246
 
14247
 
14248 82 jeremybenn
{
14249
  echo "cat >conf$$subs.awk <<_ACEOF" &&
14250
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14251
  echo "_ACEOF"
14252
} >conf$$subs.sh ||
14253 118 jeremybenn
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14254 82 jeremybenn
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14255 19 jeremybenn
ac_delim='%!_!# '
14256
for ac_last_try in false false false false false :; do
14257 82 jeremybenn
  . ./conf$$subs.sh ||
14258 118 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14259 19 jeremybenn
 
14260 82 jeremybenn
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14261
  if test $ac_delim_n = $ac_delim_num; then
14262 19 jeremybenn
    break
14263
  elif $ac_last_try; then
14264 118 jeremybenn
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14265 19 jeremybenn
  else
14266
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14267
  fi
14268
done
14269 82 jeremybenn
rm -f conf$$subs.sh
14270 19 jeremybenn
 
14271 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14272
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14273 19 jeremybenn
_ACEOF
14274 82 jeremybenn
sed -n '
14275
h
14276
s/^/S["/; s/!.*/"]=/
14277
p
14278
g
14279
s/^[^!]*!//
14280
:repl
14281
t repl
14282
s/'"$ac_delim"'$//
14283
t delim
14284
:nl
14285
h
14286 118 jeremybenn
s/\(.\{148\}\)..*/\1/
14287 82 jeremybenn
t more1
14288
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14289
p
14290
n
14291
b repl
14292
:more1
14293
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14294
p
14295
g
14296
s/.\{148\}//
14297
t nl
14298
:delim
14299
h
14300 118 jeremybenn
s/\(.\{148\}\)..*/\1/
14301 82 jeremybenn
t more2
14302
s/["\\]/\\&/g; s/^/"/; s/$/"/
14303
p
14304
b
14305
:more2
14306
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14307
p
14308
g
14309
s/.\{148\}//
14310
t delim
14311
' 
14312
/^[^""]/{
14313
  N
14314
  s/\n//
14315
}
14316
' >>$CONFIG_STATUS || ac_write_fail=1
14317
rm -f conf$$subs.awk
14318
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14319
_ACAWK
14320
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14321
  for (key in S) S_is_set[key] = 1
14322
  FS = ""
14323 19 jeremybenn
 
14324 82 jeremybenn
}
14325
{
14326
  line = $ 0
14327
  nfields = split(line, field, "@")
14328
  substed = 0
14329
  len = length(field[1])
14330
  for (i = 2; i < nfields; i++) {
14331
    key = field[i]
14332
    keylen = length(key)
14333
    if (S_is_set[key]) {
14334
      value = S[key]
14335
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14336
      len += length(value) + length(field[++i])
14337
      substed = 1
14338
    } else
14339
      len += 1 + keylen
14340
  }
14341 19 jeremybenn
 
14342 82 jeremybenn
  print line
14343
}
14344
 
14345
_ACAWK
14346 19 jeremybenn
_ACEOF
14347 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14348
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14349
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14350
else
14351
  cat
14352
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14353 118 jeremybenn
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14354 19 jeremybenn
_ACEOF
14355
 
14356
# VPATH may cause trouble with some makes, so we remove $(srcdir),
14357
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14358
# trailing colons and then remove the whole line if VPATH becomes empty
14359
# (actually we leave an empty line to preserve line numbers).
14360
if test "x$srcdir" = x.; then
14361
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14362
s/:*\$(srcdir):*/:/
14363
s/:*\${srcdir}:*/:/
14364
s/:*@srcdir@:*/:/
14365
s/^\([^=]*=[     ]*\):*/\1/
14366
s/:*$//
14367
s/^[^=]*=[       ]*$//
14368
}'
14369
fi
14370
 
14371 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372 19 jeremybenn
fi # test -n "$CONFIG_FILES"
14373
 
14374 82 jeremybenn
# Set up the scripts for CONFIG_HEADERS section.
14375
# No need to generate them if there are no CONFIG_HEADERS.
14376
# This happens for instance with `./config.status Makefile'.
14377
if test -n "$CONFIG_HEADERS"; then
14378
cat >"$tmp/defines.awk" <<\_ACAWK ||
14379
BEGIN {
14380
_ACEOF
14381 19 jeremybenn
 
14382 82 jeremybenn
# Transform confdefs.h into an awk script `defines.awk', embedded as
14383
# here-document in config.status, that substitutes the proper values into
14384
# config.h.in to produce config.h.
14385
 
14386
# Create a delimiter string that does not exist in confdefs.h, to ease
14387
# handling of long lines.
14388
ac_delim='%!_!# '
14389
for ac_last_try in false false :; do
14390
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14391
  if test -z "$ac_t"; then
14392
    break
14393
  elif $ac_last_try; then
14394 118 jeremybenn
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14395 82 jeremybenn
  else
14396
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14397
  fi
14398
done
14399
 
14400
# For the awk script, D is an array of macro values keyed by name,
14401
# likewise P contains macro parameters if any.  Preserve backslash
14402
# newline sequences.
14403
 
14404
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14405
sed -n '
14406
s/.\{148\}/&'"$ac_delim"'/g
14407
t rset
14408
:rset
14409
s/^[     ]*#[    ]*define[       ][      ]*/ /
14410
t def
14411
d
14412
:def
14413
s/\\$//
14414
t bsnl
14415
s/["\\]/\\&/g
14416
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14417
D["\1"]=" \3"/p
14418
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14419
d
14420
:bsnl
14421
s/["\\]/\\&/g
14422
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14423
D["\1"]=" \3\\\\\\n"\\/p
14424
t cont
14425
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14426
t cont
14427
d
14428
:cont
14429
n
14430
s/.\{148\}/&'"$ac_delim"'/g
14431
t clear
14432
:clear
14433
s/\\$//
14434
t bsnlc
14435
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14436
d
14437
:bsnlc
14438
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14439
b cont
14440
' 
14441
s/'"$ac_delim"'/"\\\
14442
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14443
 
14444
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14445
  for (key in D) D_is_set[key] = 1
14446
  FS = ""
14447
}
14448
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14449
  line = \$ 0
14450
  split(line, arg, " ")
14451
  if (arg[1] == "#") {
14452
    defundef = arg[2]
14453
    mac1 = arg[3]
14454
  } else {
14455
    defundef = substr(arg[1], 2)
14456
    mac1 = arg[2]
14457
  }
14458
  split(mac1, mac2, "(") #)
14459
  macro = mac2[1]
14460
  prefix = substr(line, 1, index(line, defundef) - 1)
14461
  if (D_is_set[macro]) {
14462
    # Preserve the white space surrounding the "#".
14463
    print prefix "define", macro P[macro] D[macro]
14464
    next
14465
  } else {
14466
    # Replace #undef with comments.  This is necessary, for example,
14467
    # in the case of _POSIX_SOURCE, which is predefined and required
14468
    # on some systems where configure will not decide to define it.
14469
    if (defundef == "undef") {
14470
      print "/*", prefix defundef, macro, "*/"
14471
      next
14472
    }
14473
  }
14474
}
14475
{ print }
14476
_ACAWK
14477
_ACEOF
14478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14479 118 jeremybenn
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14480 82 jeremybenn
fi # test -n "$CONFIG_HEADERS"
14481
 
14482
 
14483
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14484
shift
14485
for ac_tag
14486 19 jeremybenn
do
14487
  case $ac_tag in
14488
  :[FHLC]) ac_mode=$ac_tag; continue;;
14489
  esac
14490
  case $ac_mode$ac_tag in
14491
  :[FHL]*:*);;
14492 118 jeremybenn
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14493 19 jeremybenn
  :[FH]-) ac_tag=-:-;;
14494
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14495
  esac
14496
  ac_save_IFS=$IFS
14497
  IFS=:
14498
  set x $ac_tag
14499
  IFS=$ac_save_IFS
14500
  shift
14501
  ac_file=$1
14502
  shift
14503
 
14504
  case $ac_mode in
14505
  :L) ac_source=$1;;
14506
  :[FH])
14507
    ac_file_inputs=
14508
    for ac_f
14509
    do
14510
      case $ac_f in
14511
      -) ac_f="$tmp/stdin";;
14512
      *) # Look for the file first in the build tree, then in the source tree
14513
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
14514
         # because $ac_f cannot contain `:'.
14515
         test -f "$ac_f" ||
14516
           case $ac_f in
14517
           [\\/$]*) false;;
14518
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14519
           esac ||
14520 118 jeremybenn
           as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14521 19 jeremybenn
      esac
14522 82 jeremybenn
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14523 118 jeremybenn
      as_fn_append ac_file_inputs " '$ac_f'"
14524 19 jeremybenn
    done
14525
 
14526
    # Let's still pretend it is `configure' which instantiates (i.e., don't
14527
    # use $as_me), people would be surprised to read:
14528
    #    /* config.h.  Generated by config.status.  */
14529 82 jeremybenn
    configure_input='Generated from '`
14530
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14531
        `' by configure.'
14532 19 jeremybenn
    if test x"$ac_file" != x-; then
14533
      configure_input="$ac_file.  $configure_input"
14534 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14535 82 jeremybenn
$as_echo "$as_me: creating $ac_file" >&6;}
14536 19 jeremybenn
    fi
14537 82 jeremybenn
    # Neutralize special characters interpreted by sed in replacement strings.
14538
    case $configure_input in #(
14539
    *\&* | *\|* | *\\* )
14540
       ac_sed_conf_input=`$as_echo "$configure_input" |
14541
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14542
    *) ac_sed_conf_input=$configure_input;;
14543
    esac
14544 19 jeremybenn
 
14545
    case $ac_tag in
14546 82 jeremybenn
    *:-:* | *:-) cat >"$tmp/stdin" \
14547 118 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14548 19 jeremybenn
    esac
14549
    ;;
14550
  esac
14551
 
14552
  ac_dir=`$as_dirname -- "$ac_file" ||
14553
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14554
         X"$ac_file" : 'X\(//\)[^/]' \| \
14555
         X"$ac_file" : 'X\(//\)$' \| \
14556
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14557 82 jeremybenn
$as_echo X"$ac_file" |
14558 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14559
            s//\1/
14560
            q
14561
          }
14562
          /^X\(\/\/\)[^/].*/{
14563
            s//\1/
14564
            q
14565
          }
14566
          /^X\(\/\/\)$/{
14567
            s//\1/
14568
            q
14569
          }
14570
          /^X\(\/\).*/{
14571
            s//\1/
14572
            q
14573
          }
14574
          s/.*/./; q'`
14575 118 jeremybenn
  as_dir="$ac_dir"; as_fn_mkdir_p
14576 19 jeremybenn
  ac_builddir=.
14577
 
14578
case "$ac_dir" in
14579
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14580
*)
14581 82 jeremybenn
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14582 19 jeremybenn
  # A ".." for each directory in $ac_dir_suffix.
14583 82 jeremybenn
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14584 19 jeremybenn
  case $ac_top_builddir_sub in
14585
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14586
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14587
  esac ;;
14588
esac
14589
ac_abs_top_builddir=$ac_pwd
14590
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14591
# for backward compatibility:
14592
ac_top_builddir=$ac_top_build_prefix
14593
 
14594
case $srcdir in
14595
  .)  # We are building in place.
14596
    ac_srcdir=.
14597
    ac_top_srcdir=$ac_top_builddir_sub
14598
    ac_abs_top_srcdir=$ac_pwd ;;
14599
  [\\/]* | ?:[\\/]* )  # Absolute name.
14600
    ac_srcdir=$srcdir$ac_dir_suffix;
14601
    ac_top_srcdir=$srcdir
14602
    ac_abs_top_srcdir=$srcdir ;;
14603
  *) # Relative name.
14604
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14605
    ac_top_srcdir=$ac_top_build_prefix$srcdir
14606
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14607
esac
14608
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14609
 
14610
 
14611
  case $ac_mode in
14612
  :F)
14613
  #
14614
  # CONFIG_FILE
14615
  #
14616
 
14617
  case $INSTALL in
14618
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14619
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14620
  esac
14621
  ac_MKDIR_P=$MKDIR_P
14622
  case $MKDIR_P in
14623
  [\\/$]* | ?:[\\/]* ) ;;
14624
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14625
  esac
14626
_ACEOF
14627
 
14628 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14629 19 jeremybenn
# If the template does not know about datarootdir, expand it.
14630
# FIXME: This hack should be removed a few years after 2.60.
14631
ac_datarootdir_hack=; ac_datarootdir_seen=
14632 82 jeremybenn
ac_sed_dataroot='
14633
/datarootdir/ {
14634 19 jeremybenn
  p
14635
  q
14636
}
14637
/@datadir@/p
14638
/@docdir@/p
14639
/@infodir@/p
14640
/@localedir@/p
14641 118 jeremybenn
/@mandir@/p'
14642 82 jeremybenn
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14643 19 jeremybenn
*datarootdir*) ac_datarootdir_seen=yes;;
14644
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14645 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14646 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14647 19 jeremybenn
_ACEOF
14648 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 19 jeremybenn
  ac_datarootdir_hack='
14650
  s&@datadir@&$datadir&g
14651
  s&@docdir@&$docdir&g
14652
  s&@infodir@&$infodir&g
14653
  s&@localedir@&$localedir&g
14654
  s&@mandir@&$mandir&g
14655 118 jeremybenn
  s&\\\${datarootdir}&$datarootdir&g' ;;
14656 19 jeremybenn
esac
14657
_ACEOF
14658
 
14659
# Neutralize VPATH when `$srcdir' = `.'.
14660
# Shell code in configure.ac might set extrasub.
14661
# FIXME: do we really want to maintain this feature?
14662 82 jeremybenn
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14663
ac_sed_extra="$ac_vpsub
14664 19 jeremybenn
$extrasub
14665
_ACEOF
14666 82 jeremybenn
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14667 19 jeremybenn
:t
14668
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14669 82 jeremybenn
s|@configure_input@|$ac_sed_conf_input|;t t
14670 19 jeremybenn
s&@top_builddir@&$ac_top_builddir_sub&;t t
14671 82 jeremybenn
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14672 19 jeremybenn
s&@srcdir@&$ac_srcdir&;t t
14673
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14674
s&@top_srcdir@&$ac_top_srcdir&;t t
14675
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14676
s&@builddir@&$ac_builddir&;t t
14677
s&@abs_builddir@&$ac_abs_builddir&;t t
14678
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14679
s&@INSTALL@&$ac_INSTALL&;t t
14680
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14681
$ac_datarootdir_hack
14682 82 jeremybenn
"
14683
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14684 118 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14685 19 jeremybenn
 
14686
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14687
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14688
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14689 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14690 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&5
14691 82 jeremybenn
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14692 19 jeremybenn
which seems to be undefined.  Please make sure it is defined." >&2;}
14693
 
14694
  rm -f "$tmp/stdin"
14695
  case $ac_file in
14696 82 jeremybenn
  -) cat "$tmp/out" && rm -f "$tmp/out";;
14697
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14698
  esac \
14699 118 jeremybenn
  || as_fn_error "could not create $ac_file" "$LINENO" 5
14700 19 jeremybenn
 ;;
14701
  :H)
14702
  #
14703
  # CONFIG_HEADER
14704
  #
14705
  if test x"$ac_file" != x-; then
14706 82 jeremybenn
    {
14707
      $as_echo "/* $configure_input  */" \
14708
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14709
    } >"$tmp/config.h" \
14710 118 jeremybenn
      || as_fn_error "could not create $ac_file" "$LINENO" 5
14711 82 jeremybenn
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14712 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14713 82 jeremybenn
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14714 19 jeremybenn
    else
14715 82 jeremybenn
      rm -f "$ac_file"
14716
      mv "$tmp/config.h" "$ac_file" \
14717 118 jeremybenn
        || as_fn_error "could not create $ac_file" "$LINENO" 5
14718 19 jeremybenn
    fi
14719
  else
14720 82 jeremybenn
    $as_echo "/* $configure_input  */" \
14721
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14722 118 jeremybenn
      || as_fn_error "could not create -" "$LINENO" 5
14723 19 jeremybenn
  fi
14724 82 jeremybenn
# Compute "$ac_file"'s index in $config_headers.
14725
_am_arg="$ac_file"
14726 19 jeremybenn
_am_stamp_count=1
14727
for _am_header in $config_headers :; do
14728
  case $_am_header in
14729
    $_am_arg | $_am_arg:* )
14730
      break ;;
14731
    * )
14732
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14733
  esac
14734
done
14735
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14736
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14737
         X"$_am_arg" : 'X\(//\)[^/]' \| \
14738
         X"$_am_arg" : 'X\(//\)$' \| \
14739
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14740 82 jeremybenn
$as_echo X"$_am_arg" |
14741 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14742
            s//\1/
14743
            q
14744
          }
14745
          /^X\(\/\/\)[^/].*/{
14746
            s//\1/
14747
            q
14748
          }
14749
          /^X\(\/\/\)$/{
14750
            s//\1/
14751
            q
14752
          }
14753
          /^X\(\/\).*/{
14754
            s//\1/
14755
            q
14756
          }
14757
          s/.*/./; q'`/stamp-h$_am_stamp_count
14758
 ;;
14759
 
14760 118 jeremybenn
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14761 82 jeremybenn
$as_echo "$as_me: executing $ac_file commands" >&6;}
14762 19 jeremybenn
 ;;
14763
  esac
14764
 
14765
 
14766
  case $ac_file$ac_mode in
14767 82 jeremybenn
    "libtool":C)
14768
 
14769
    # See if we are running on zsh, and set the options which allow our
14770
    # commands through without removal of \ escapes.
14771
    if test -n "${ZSH_VERSION+set}" ; then
14772
      setopt NO_GLOB_SUBST
14773
    fi
14774
 
14775
    cfgfile="${ofile}T"
14776
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14777
    $RM "$cfgfile"
14778
 
14779
    cat <<_LT_EOF >> "$cfgfile"
14780
#! $SHELL
14781
 
14782
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14783
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14784
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14785
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14786
#
14787
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14788
#                 2006, 2007, 2008 Free Software Foundation, Inc.
14789
#   Written by Gordon Matzigkeit, 1996
14790
#
14791
#   This file is part of GNU Libtool.
14792
#
14793
# GNU Libtool is free software; you can redistribute it and/or
14794
# modify it under the terms of the GNU General Public License as
14795
# published by the Free Software Foundation; either version 2 of
14796
# the License, or (at your option) any later version.
14797
#
14798
# As a special exception to the GNU General Public License,
14799
# if you distribute this file as part of a program or library that
14800
# is built using GNU Libtool, you may include this file under the
14801
# same distribution terms that you use for the rest of that program.
14802
#
14803
# GNU Libtool is distributed in the hope that it will be useful,
14804
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14805
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14806
# GNU General Public License for more details.
14807
#
14808
# You should have received a copy of the GNU General Public License
14809
# along with GNU Libtool; see the file COPYING.  If not, a copy
14810
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14811
# obtained by writing to the Free Software Foundation, Inc.,
14812
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14813
 
14814
 
14815
# The names of the tagged configurations supported by this script.
14816
available_tags=""
14817
 
14818
# ### BEGIN LIBTOOL CONFIG
14819
 
14820
# Which release of libtool.m4 was used?
14821
macro_version=$macro_version
14822
macro_revision=$macro_revision
14823
 
14824
# Whether or not to build shared libraries.
14825
build_libtool_libs=$enable_shared
14826
 
14827
# Whether or not to build static libraries.
14828
build_old_libs=$enable_static
14829
 
14830
# What type of objects to build.
14831
pic_mode=$pic_mode
14832
 
14833
# Whether or not to optimize for fast installation.
14834
fast_install=$enable_fast_install
14835
 
14836
# The host system.
14837
host_alias=$host_alias
14838
host=$host
14839
host_os=$host_os
14840
 
14841
# The build system.
14842
build_alias=$build_alias
14843
build=$build
14844
build_os=$build_os
14845
 
14846
# A sed program that does not truncate output.
14847
SED=$lt_SED
14848
 
14849
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14850
Xsed="\$SED -e 1s/^X//"
14851
 
14852
# A grep program that handles long lines.
14853
GREP=$lt_GREP
14854
 
14855
# An ERE matcher.
14856
EGREP=$lt_EGREP
14857
 
14858
# A literal string matcher.
14859
FGREP=$lt_FGREP
14860
 
14861
# A BSD- or MS-compatible name lister.
14862
NM=$lt_NM
14863
 
14864
# Whether we need soft or hard links.
14865
LN_S=$lt_LN_S
14866
 
14867
# What is the maximum length of a command?
14868
max_cmd_len=$max_cmd_len
14869
 
14870
# Object file suffix (normally "o").
14871
objext=$ac_objext
14872
 
14873
# Executable file suffix (normally "").
14874
exeext=$exeext
14875
 
14876
# whether the shell understands "unset".
14877
lt_unset=$lt_unset
14878
 
14879
# turn spaces into newlines.
14880
SP2NL=$lt_lt_SP2NL
14881
 
14882
# turn newlines into spaces.
14883
NL2SP=$lt_lt_NL2SP
14884
 
14885
# How to create reloadable object files.
14886
reload_flag=$lt_reload_flag
14887
reload_cmds=$lt_reload_cmds
14888
 
14889
# An object symbol dumper.
14890
OBJDUMP=$lt_OBJDUMP
14891
 
14892
# Method to check whether dependent libraries are shared objects.
14893
deplibs_check_method=$lt_deplibs_check_method
14894
 
14895
# Command to use when deplibs_check_method == "file_magic".
14896
file_magic_cmd=$lt_file_magic_cmd
14897
 
14898
# The archiver.
14899
AR=$lt_AR
14900
AR_FLAGS=$lt_AR_FLAGS
14901
 
14902
# A symbol stripping program.
14903
STRIP=$lt_STRIP
14904
 
14905
# Commands used to install an old-style archive.
14906
RANLIB=$lt_RANLIB
14907
old_postinstall_cmds=$lt_old_postinstall_cmds
14908
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14909
 
14910
# A C compiler.
14911
LTCC=$lt_CC
14912
 
14913
# LTCC compiler flags.
14914
LTCFLAGS=$lt_CFLAGS
14915
 
14916
# Take the output of nm and produce a listing of raw symbols and C names.
14917
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14918
 
14919
# Transform the output of nm in a proper C declaration.
14920
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14921
 
14922
# Transform the output of nm in a C name address pair.
14923
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14924
 
14925
# Transform the output of nm in a C name address pair when lib prefix is needed.
14926
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14927
 
14928
# The name of the directory that contains temporary libtool files.
14929
objdir=$objdir
14930
 
14931
# Shell to use when invoking shell scripts.
14932
SHELL=$lt_SHELL
14933
 
14934
# An echo program that does not interpret backslashes.
14935
ECHO=$lt_ECHO
14936
 
14937
# Used to examine libraries when file_magic_cmd begins with "file".
14938
MAGIC_CMD=$MAGIC_CMD
14939
 
14940
# Must we lock files when doing compilation?
14941
need_locks=$lt_need_locks
14942
 
14943
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14944
DSYMUTIL=$lt_DSYMUTIL
14945
 
14946
# Tool to change global to local symbols on Mac OS X.
14947
NMEDIT=$lt_NMEDIT
14948
 
14949
# Tool to manipulate fat objects and archives on Mac OS X.
14950
LIPO=$lt_LIPO
14951
 
14952
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14953
OTOOL=$lt_OTOOL
14954
 
14955
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14956
OTOOL64=$lt_OTOOL64
14957
 
14958
# Old archive suffix (normally "a").
14959
libext=$libext
14960
 
14961
# Shared library suffix (normally ".so").
14962
shrext_cmds=$lt_shrext_cmds
14963
 
14964
# The commands to extract the exported symbol list from a shared archive.
14965
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14966
 
14967
# Variables whose values should be saved in libtool wrapper scripts and
14968
# restored at link time.
14969
variables_saved_for_relink=$lt_variables_saved_for_relink
14970
 
14971
# Do we need the "lib" prefix for modules?
14972
need_lib_prefix=$need_lib_prefix
14973
 
14974
# Do we need a version for libraries?
14975
need_version=$need_version
14976
 
14977
# Library versioning type.
14978
version_type=$version_type
14979
 
14980
# Shared library runtime path variable.
14981
runpath_var=$runpath_var
14982
 
14983
# Shared library path variable.
14984
shlibpath_var=$shlibpath_var
14985
 
14986
# Is shlibpath searched before the hard-coded library search path?
14987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14988
 
14989
# Format of library name prefix.
14990
libname_spec=$lt_libname_spec
14991
 
14992
# List of archive names.  First name is the real one, the rest are links.
14993
# The last name is the one that the linker finds with -lNAME
14994
library_names_spec=$lt_library_names_spec
14995
 
14996
# The coded name of the library, if different from the real name.
14997
soname_spec=$lt_soname_spec
14998
 
14999
# Command to use after installation of a shared archive.
15000
postinstall_cmds=$lt_postinstall_cmds
15001
 
15002
# Command to use after uninstallation of a shared archive.
15003
postuninstall_cmds=$lt_postuninstall_cmds
15004
 
15005
# Commands used to finish a libtool library installation in a directory.
15006
finish_cmds=$lt_finish_cmds
15007
 
15008
# As "finish_cmds", except a single script fragment to be evaled but
15009
# not shown.
15010
finish_eval=$lt_finish_eval
15011
 
15012
# Whether we should hardcode library paths into libraries.
15013
hardcode_into_libs=$hardcode_into_libs
15014
 
15015
# Compile-time system search path for libraries.
15016
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15017
 
15018
# Run-time system search path for libraries.
15019
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15020
 
15021
# Whether dlopen is supported.
15022
dlopen_support=$enable_dlopen
15023
 
15024
# Whether dlopen of programs is supported.
15025
dlopen_self=$enable_dlopen_self
15026
 
15027
# Whether dlopen of statically linked programs is supported.
15028
dlopen_self_static=$enable_dlopen_self_static
15029
 
15030
# Commands to strip libraries.
15031
old_striplib=$lt_old_striplib
15032
striplib=$lt_striplib
15033
 
15034
 
15035
# The linker used to build libraries.
15036
LD=$lt_LD
15037
 
15038
# Commands used to build an old-style archive.
15039
old_archive_cmds=$lt_old_archive_cmds
15040
 
15041
# A language specific compiler.
15042
CC=$lt_compiler
15043
 
15044
# Is the compiler the GNU compiler?
15045
with_gcc=$GCC
15046
 
15047
# Compiler flag to turn off builtin functions.
15048
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15049
 
15050
# How to pass a linker flag through the compiler.
15051
wl=$lt_lt_prog_compiler_wl
15052
 
15053
# Additional compiler flags for building library objects.
15054
pic_flag=$lt_lt_prog_compiler_pic
15055
 
15056
# Compiler flag to prevent dynamic linking.
15057
link_static_flag=$lt_lt_prog_compiler_static
15058
 
15059
# Does compiler simultaneously support -c and -o options?
15060
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15061
 
15062
# Whether or not to add -lc for building shared libraries.
15063
build_libtool_need_lc=$archive_cmds_need_lc
15064
 
15065
# Whether or not to disallow shared libs when runtime libs are static.
15066
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15067
 
15068
# Compiler flag to allow reflexive dlopens.
15069
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15070
 
15071
# Compiler flag to generate shared objects directly from archives.
15072
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15073
 
15074
# Whether the compiler copes with passing no objects directly.
15075
compiler_needs_object=$lt_compiler_needs_object
15076
 
15077
# Create an old-style archive from a shared archive.
15078
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15079
 
15080
# Create a temporary old-style archive to link instead of a shared archive.
15081
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15082
 
15083
# Commands used to build a shared archive.
15084
archive_cmds=$lt_archive_cmds
15085
archive_expsym_cmds=$lt_archive_expsym_cmds
15086
 
15087
# Commands used to build a loadable module if different from building
15088
# a shared archive.
15089
module_cmds=$lt_module_cmds
15090
module_expsym_cmds=$lt_module_expsym_cmds
15091
 
15092
# Whether we are building with GNU ld or not.
15093
with_gnu_ld=$lt_with_gnu_ld
15094
 
15095
# Flag that allows shared libraries with undefined symbols to be built.
15096
allow_undefined_flag=$lt_allow_undefined_flag
15097
 
15098
# Flag that enforces no undefined symbols.
15099
no_undefined_flag=$lt_no_undefined_flag
15100
 
15101
# Flag to hardcode \$libdir into a binary during linking.
15102
# This must work even if \$libdir does not exist
15103
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15104
 
15105
# If ld is used when linking, flag to hardcode \$libdir into a binary
15106
# during linking.  This must work even if \$libdir does not exist.
15107
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15108
 
15109
# Whether we need a single "-rpath" flag with a separated argument.
15110
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15111
 
15112
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15113
# DIR into the resulting binary.
15114
hardcode_direct=$hardcode_direct
15115
 
15116
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15117
# DIR into the resulting binary and the resulting library dependency is
15118
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15119
# library is relocated.
15120
hardcode_direct_absolute=$hardcode_direct_absolute
15121
 
15122
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15123
# into the resulting binary.
15124
hardcode_minus_L=$hardcode_minus_L
15125
 
15126
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15127
# into the resulting binary.
15128
hardcode_shlibpath_var=$hardcode_shlibpath_var
15129
 
15130
# Set to "yes" if building a shared library automatically hardcodes DIR
15131
# into the library and all subsequent libraries and executables linked
15132
# against it.
15133
hardcode_automatic=$hardcode_automatic
15134
 
15135
# Set to yes if linker adds runtime paths of dependent libraries
15136
# to runtime path list.
15137
inherit_rpath=$inherit_rpath
15138
 
15139
# Whether libtool must link a program against all its dependency libraries.
15140
link_all_deplibs=$link_all_deplibs
15141
 
15142
# Fix the shell variable \$srcfile for the compiler.
15143
fix_srcfile_path=$lt_fix_srcfile_path
15144
 
15145
# Set to "yes" if exported symbols are required.
15146
always_export_symbols=$always_export_symbols
15147
 
15148
# The commands to list exported symbols.
15149
export_symbols_cmds=$lt_export_symbols_cmds
15150
 
15151
# Symbols that should not be listed in the preloaded symbols.
15152
exclude_expsyms=$lt_exclude_expsyms
15153
 
15154
# Symbols that must always be exported.
15155
include_expsyms=$lt_include_expsyms
15156
 
15157
# Commands necessary for linking programs (against libraries) with templates.
15158
prelink_cmds=$lt_prelink_cmds
15159
 
15160
# Specify filename containing input files.
15161
file_list_spec=$lt_file_list_spec
15162
 
15163
# How to hardcode a shared library path into an executable.
15164
hardcode_action=$hardcode_action
15165
 
15166
# ### END LIBTOOL CONFIG
15167
 
15168
_LT_EOF
15169
 
15170
  case $host_os in
15171
  aix3*)
15172
    cat <<\_LT_EOF >> "$cfgfile"
15173
# AIX sometimes has problems with the GCC collect2 program.  For some
15174
# reason, if we set the COLLECT_NAMES environment variable, the problems
15175
# vanish in a puff of smoke.
15176
if test "X${COLLECT_NAMES+set}" != Xset; then
15177
  COLLECT_NAMES=
15178
  export COLLECT_NAMES
15179
fi
15180
_LT_EOF
15181
    ;;
15182
  esac
15183
 
15184
 
15185
ltmain="$ac_aux_dir/ltmain.sh"
15186
 
15187
 
15188
  # We use sed instead of cat because bash on DJGPP gets confused if
15189
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15190
  # text mode, it properly converts lines to CR/LF.  This bash problem
15191
  # is reportedly fixed, but why not run on old versions too?
15192
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15193
    || (rm -f "$cfgfile"; exit 1)
15194
 
15195
  case $xsi_shell in
15196
  yes)
15197
    cat << \_LT_EOF >> "$cfgfile"
15198
 
15199
# func_dirname file append nondir_replacement
15200
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15201
# otherwise set result to NONDIR_REPLACEMENT.
15202
func_dirname ()
15203
{
15204
  case ${1} in
15205
    */*) func_dirname_result="${1%/*}${2}" ;;
15206
    *  ) func_dirname_result="${3}" ;;
15207
  esac
15208
}
15209
 
15210
# func_basename file
15211
func_basename ()
15212
{
15213
  func_basename_result="${1##*/}"
15214
}
15215
 
15216
# func_dirname_and_basename file append nondir_replacement
15217
# perform func_basename and func_dirname in a single function
15218
# call:
15219
#   dirname:  Compute the dirname of FILE.  If nonempty,
15220
#             add APPEND to the result, otherwise set result
15221
#             to NONDIR_REPLACEMENT.
15222
#             value returned in "$func_dirname_result"
15223
#   basename: Compute filename of FILE.
15224
#             value retuned in "$func_basename_result"
15225
# Implementation must be kept synchronized with func_dirname
15226
# and func_basename. For efficiency, we do not delegate to
15227
# those functions but instead duplicate the functionality here.
15228
func_dirname_and_basename ()
15229
{
15230
  case ${1} in
15231
    */*) func_dirname_result="${1%/*}${2}" ;;
15232
    *  ) func_dirname_result="${3}" ;;
15233
  esac
15234
  func_basename_result="${1##*/}"
15235
}
15236
 
15237
# func_stripname prefix suffix name
15238
# strip PREFIX and SUFFIX off of NAME.
15239
# PREFIX and SUFFIX must not contain globbing or regex special
15240
# characters, hashes, percent signs, but SUFFIX may contain a leading
15241
# dot (in which case that matches only a dot).
15242
func_stripname ()
15243
{
15244
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15245
  # positional parameters, so assign one to ordinary parameter first.
15246
  func_stripname_result=${3}
15247
  func_stripname_result=${func_stripname_result#"${1}"}
15248
  func_stripname_result=${func_stripname_result%"${2}"}
15249
}
15250
 
15251
# func_opt_split
15252
func_opt_split ()
15253
{
15254
  func_opt_split_opt=${1%%=*}
15255
  func_opt_split_arg=${1#*=}
15256
}
15257
 
15258
# func_lo2o object
15259
func_lo2o ()
15260
{
15261
  case ${1} in
15262
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15263
    *)    func_lo2o_result=${1} ;;
15264
  esac
15265
}
15266
 
15267
# func_xform libobj-or-source
15268
func_xform ()
15269
{
15270
  func_xform_result=${1%.*}.lo
15271
}
15272
 
15273
# func_arith arithmetic-term...
15274
func_arith ()
15275
{
15276
  func_arith_result=$(( $* ))
15277
}
15278
 
15279
# func_len string
15280
# STRING may not start with a hyphen.
15281
func_len ()
15282
{
15283
  func_len_result=${#1}
15284
}
15285
 
15286
_LT_EOF
15287
    ;;
15288
  *) # Bourne compatible functions.
15289
    cat << \_LT_EOF >> "$cfgfile"
15290
 
15291
# func_dirname file append nondir_replacement
15292
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15293
# otherwise set result to NONDIR_REPLACEMENT.
15294
func_dirname ()
15295
{
15296
  # Extract subdirectory from the argument.
15297
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15298
  if test "X$func_dirname_result" = "X${1}"; then
15299
    func_dirname_result="${3}"
15300
  else
15301
    func_dirname_result="$func_dirname_result${2}"
15302
  fi
15303
}
15304
 
15305
# func_basename file
15306
func_basename ()
15307
{
15308
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15309
}
15310
 
15311
 
15312
# func_stripname prefix suffix name
15313
# strip PREFIX and SUFFIX off of NAME.
15314
# PREFIX and SUFFIX must not contain globbing or regex special
15315
# characters, hashes, percent signs, but SUFFIX may contain a leading
15316
# dot (in which case that matches only a dot).
15317
# func_strip_suffix prefix name
15318
func_stripname ()
15319
{
15320
  case ${2} in
15321
    .*) func_stripname_result=`$ECHO "X${3}" \
15322
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15323
    *)  func_stripname_result=`$ECHO "X${3}" \
15324
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15325
  esac
15326
}
15327
 
15328
# sed scripts:
15329
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15330
my_sed_long_arg='1s/^-[^=]*=//'
15331
 
15332
# func_opt_split
15333
func_opt_split ()
15334
{
15335
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15336
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15337
}
15338
 
15339
# func_lo2o object
15340
func_lo2o ()
15341
{
15342
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15343
}
15344
 
15345
# func_xform libobj-or-source
15346
func_xform ()
15347
{
15348
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15349
}
15350
 
15351
# func_arith arithmetic-term...
15352
func_arith ()
15353
{
15354
  func_arith_result=`expr "$@"`
15355
}
15356
 
15357
# func_len string
15358
# STRING may not start with a hyphen.
15359
func_len ()
15360
{
15361
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15362
}
15363
 
15364
_LT_EOF
15365
esac
15366
 
15367
case $lt_shell_append in
15368
  yes)
15369
    cat << \_LT_EOF >> "$cfgfile"
15370
 
15371
# func_append var value
15372
# Append VALUE to the end of shell variable VAR.
15373
func_append ()
15374
{
15375
  eval "$1+=\$2"
15376
}
15377
_LT_EOF
15378
    ;;
15379
  *)
15380
    cat << \_LT_EOF >> "$cfgfile"
15381
 
15382
# func_append var value
15383
# Append VALUE to the end of shell variable VAR.
15384
func_append ()
15385
{
15386
  eval "$1=\$$1\$2"
15387
}
15388
 
15389
_LT_EOF
15390
    ;;
15391
  esac
15392
 
15393
 
15394
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15395
    || (rm -f "$cfgfile"; exit 1)
15396
 
15397
  mv -f "$cfgfile" "$ofile" ||
15398
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15399
  chmod +x "$ofile"
15400
 
15401
 ;;
15402
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15403
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15404
  # are listed without --file.  Let's play safe and only enable the eval
15405
  # if we detect the quoting.
15406
  case $CONFIG_FILES in
15407
  *\'*) eval set x "$CONFIG_FILES" ;;
15408
  *)   set x $CONFIG_FILES ;;
15409
  esac
15410
  shift
15411
  for mf
15412
  do
15413
    # Strip MF so we end up with the name of the file.
15414
    mf=`echo "$mf" | sed -e 's/:.*$//'`
15415
    # Check whether this is an Automake generated Makefile or not.
15416
    # We used to match only the files named `Makefile.in', but
15417
    # some people rename them; so instead we look at the file content.
15418
    # Grep'ing the first line is not enough: some people post-process
15419
    # each Makefile.in and add a new line on top of each file to say so.
15420
    # Grep'ing the whole file is not good either: AIX grep has a line
15421
    # limit of 2048, but all sed's we know have understand at least 4000.
15422
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15423
      dirpart=`$as_dirname -- "$mf" ||
15424 19 jeremybenn
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425
         X"$mf" : 'X\(//\)[^/]' \| \
15426
         X"$mf" : 'X\(//\)$' \| \
15427
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15428 82 jeremybenn
$as_echo X"$mf" |
15429 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15430
            s//\1/
15431
            q
15432
          }
15433
          /^X\(\/\/\)[^/].*/{
15434
            s//\1/
15435
            q
15436
          }
15437
          /^X\(\/\/\)$/{
15438
            s//\1/
15439
            q
15440
          }
15441
          /^X\(\/\).*/{
15442
            s//\1/
15443
            q
15444
          }
15445
          s/.*/./; q'`
15446 82 jeremybenn
    else
15447
      continue
15448
    fi
15449
    # Extract the definition of DEPDIR, am__include, and am__quote
15450
    # from the Makefile without running `make'.
15451
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15452
    test -z "$DEPDIR" && continue
15453
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15454
    test -z "am__include" && continue
15455
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15456
    # When using ansi2knr, U may be empty or an underscore; expand it
15457
    U=`sed -n 's/^U = //p' < "$mf"`
15458
    # Find all dependency output files, they are included files with
15459
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15460
    # simplest approach to changing $(DEPDIR) to its actual value in the
15461
    # expansion.
15462
    for file in `sed -n "
15463
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15464
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15465
      # Make sure the directory exists.
15466
      test -f "$dirpart/$file" && continue
15467
      fdir=`$as_dirname -- "$file" ||
15468 19 jeremybenn
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15469
         X"$file" : 'X\(//\)[^/]' \| \
15470
         X"$file" : 'X\(//\)$' \| \
15471
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15472 82 jeremybenn
$as_echo X"$file" |
15473 19 jeremybenn
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15474
            s//\1/
15475
            q
15476
          }
15477
          /^X\(\/\/\)[^/].*/{
15478
            s//\1/
15479
            q
15480
          }
15481
          /^X\(\/\/\)$/{
15482
            s//\1/
15483
            q
15484
          }
15485
          /^X\(\/\).*/{
15486
            s//\1/
15487
            q
15488
          }
15489
          s/.*/./; q'`
15490 118 jeremybenn
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15491 82 jeremybenn
      # echo "creating $dirpart/$file"
15492
      echo '# dummy' > "$dirpart/$file"
15493
    done
15494 19 jeremybenn
  done
15495 82 jeremybenn
}
15496 19 jeremybenn
 ;;
15497
 
15498
  esac
15499
done # for ac_tag
15500
 
15501
 
15502 118 jeremybenn
as_fn_exit 0
15503 19 jeremybenn
_ACEOF
15504
ac_clean_files=$ac_clean_files_save
15505
 
15506 82 jeremybenn
test $ac_write_fail = 0 ||
15507 118 jeremybenn
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15508 19 jeremybenn
 
15509 82 jeremybenn
 
15510 19 jeremybenn
# configure is writing to config.log, and then calls config.status.
15511
# config.status does its own redirection, appending to config.log.
15512
# Unfortunately, on DOS this fails, as config.log is still kept open
15513
# by configure, so config.status won't be able to write to it; its
15514
# output is simply discarded.  So we exec the FD to /dev/null,
15515
# effectively closing config.log, so it can be properly (re)opened and
15516
# appended to by config.status.  When coming back to configure, we
15517
# need to make the FD available again.
15518
if test "$no_create" != yes; then
15519
  ac_cs_success=:
15520
  ac_config_status_args=
15521
  test "$silent" = yes &&
15522
    ac_config_status_args="$ac_config_status_args --quiet"
15523
  exec 5>/dev/null
15524
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15525
  exec 5>>config.log
15526
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15527
  # would make configure fail if this is the last instruction.
15528 118 jeremybenn
  $ac_cs_success || as_fn_exit $?
15529 19 jeremybenn
fi
15530
 
15531 82 jeremybenn
#
15532
# CONFIG_SUBDIRS section.
15533
#
15534
if test "$no_recursion" != yes; then
15535
 
15536
  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15537
  # so they do not pile up.
15538
  ac_sub_configure_args=
15539
  ac_prev=
15540
  eval "set x $ac_configure_args"
15541
  shift
15542
  for ac_arg
15543
  do
15544
    if test -n "$ac_prev"; then
15545
      ac_prev=
15546
      continue
15547
    fi
15548
    case $ac_arg in
15549
    -cache-file | --cache-file | --cache-fil | --cache-fi \
15550
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15551
      ac_prev=cache_file ;;
15552
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15553
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15554
    | --c=*)
15555
      ;;
15556
    --config-cache | -C)
15557
      ;;
15558
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15559
      ac_prev=srcdir ;;
15560
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15561
      ;;
15562
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15563
      ac_prev=prefix ;;
15564
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15565
      ;;
15566
    --disable-option-checking)
15567
      ;;
15568
    *)
15569
      case $ac_arg in
15570
      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571
      esac
15572 118 jeremybenn
      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15573 82 jeremybenn
    esac
15574
  done
15575
 
15576
  # Always prepend --prefix to ensure using the same prefix
15577
  # in subdir configurations.
15578
  ac_arg="--prefix=$prefix"
15579
  case $ac_arg in
15580
  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15581
  esac
15582
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15583
 
15584
  # Pass --silent
15585
  if test "$silent" = yes; then
15586
    ac_sub_configure_args="--silent $ac_sub_configure_args"
15587
  fi
15588
 
15589
  # Always prepend --disable-option-checking to silence warnings, since
15590
  # different subdirs can have different --enable and --with options.
15591
  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15592
 
15593
  ac_popdir=`pwd`
15594
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15595
 
15596
    # Do not complain, so a configure script can configure whichever
15597
    # parts of a large source tree are present.
15598
    test -d "$srcdir/$ac_dir" || continue
15599
 
15600
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15601 118 jeremybenn
    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15602 82 jeremybenn
    $as_echo "$ac_msg" >&6
15603 118 jeremybenn
    as_dir="$ac_dir"; as_fn_mkdir_p
15604 82 jeremybenn
    ac_builddir=.
15605
 
15606
case "$ac_dir" in
15607
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15608
*)
15609
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15610
  # A ".." for each directory in $ac_dir_suffix.
15611
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15612
  case $ac_top_builddir_sub in
15613
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15614
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15615
  esac ;;
15616
esac
15617
ac_abs_top_builddir=$ac_pwd
15618
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15619
# for backward compatibility:
15620
ac_top_builddir=$ac_top_build_prefix
15621
 
15622
case $srcdir in
15623
  .)  # We are building in place.
15624
    ac_srcdir=.
15625
    ac_top_srcdir=$ac_top_builddir_sub
15626
    ac_abs_top_srcdir=$ac_pwd ;;
15627
  [\\/]* | ?:[\\/]* )  # Absolute name.
15628
    ac_srcdir=$srcdir$ac_dir_suffix;
15629
    ac_top_srcdir=$srcdir
15630
    ac_abs_top_srcdir=$srcdir ;;
15631
  *) # Relative name.
15632
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15633
    ac_top_srcdir=$ac_top_build_prefix$srcdir
15634
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15635
esac
15636
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15637
 
15638
 
15639
    cd "$ac_dir"
15640
 
15641
    # Check for guested configure; otherwise get Cygnus style configure.
15642
    if test -f "$ac_srcdir/configure.gnu"; then
15643
      ac_sub_configure=$ac_srcdir/configure.gnu
15644
    elif test -f "$ac_srcdir/configure"; then
15645
      ac_sub_configure=$ac_srcdir/configure
15646
    elif test -f "$ac_srcdir/configure.in"; then
15647
      # This should be Cygnus configure.
15648
      ac_sub_configure=$ac_aux_dir/configure
15649
    else
15650 118 jeremybenn
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15651 82 jeremybenn
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15652
      ac_sub_configure=
15653
    fi
15654
 
15655
    # The recursion is here.
15656
    if test -n "$ac_sub_configure"; then
15657
      # Make the cache file name correct relative to the subdirectory.
15658
      case $cache_file in
15659
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15660
      *) # Relative name.
15661
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15662
      esac
15663
 
15664 118 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
15665 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;}
15666
      # The eval makes quoting arguments work.
15667
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15668
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15669 118 jeremybenn
        as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15670 82 jeremybenn
    fi
15671
 
15672
    cd "$ac_popdir"
15673
  done
15674
fi
15675
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15676 118 jeremybenn
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15677 82 jeremybenn
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15678
fi
15679
 

powered by: WebSVN 2.1.0

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