~ubuntu-branches/ubuntu/vivid/pam-pgsql/vivid-proposed

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Package Import Robot
  • Author(s): Jan Dittberner
  • Date: 2014-10-06 22:51:18 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20141006225118-iece9omtd4gez96o
Tags: 0.7.3.2-1
* New upstream version
* drop debian/patches/fix-698241-null-passwort-result-permits-
  login.patch applied upstream
* drop patch debian/patches/pwtype_md5_postgres_fix_757556.patch
  applied upstream
* bump Standards-Version to 3.9.6 (no changes)
* remove autoconf generated files and add extend-diff-ignore to
  debian/source/options
* debian/rules: use dh --with autotools_dev to simplify debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@%:@! /bin/sh
 
2
@%:@ Guess values for system-dependent variables and create Makefiles.
 
3
@%:@ Generated by GNU Autoconf 2.69 for pam-pgsql 0.7.3.2.
 
4
@%:@
 
5
@%:@ Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>.
 
6
@%:@ 
 
7
@%:@ 
 
8
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
9
@%:@ 
 
10
@%:@ 
 
11
@%:@ This configure script is free software; the Free Software Foundation
 
12
@%:@ gives unlimited permission to copy, distribute and modify it.
 
13
## -------------------- ##
 
14
## M4sh Initialization. ##
 
15
## -------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in @%:@(
 
28
  *posix*) :
 
29
    set -o posix ;; @%:@(
 
30
  *) :
 
31
     ;;
 
32
esac
 
33
fi
 
34
 
 
35
 
 
36
as_nl='
 
37
'
 
38
export as_nl
 
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
44
# but without wasting forks for bash or zsh.
 
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
46
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
47
  as_echo='print -r --'
 
48
  as_echo_n='print -rn --'
 
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in @%:@(
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
 
 
84
# IFS
 
85
# We need space, tab and new line, in precisely that order.  Quoting is
 
86
# there to prevent editors from complaining about space-tab.
 
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
88
# splitting by setting IFS to empty value.)
 
89
IFS=" ""        $as_nl"
 
90
 
 
91
# Find who we are.  Look in the path if we contain no directory separator.
 
92
as_myself=
 
93
case $0 in @%:@((
 
94
  *[\\/]* ) as_myself=$0 ;;
 
95
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
96
for as_dir in $PATH
 
97
do
 
98
  IFS=$as_save_IFS
 
99
  test -z "$as_dir" && as_dir=.
 
100
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
101
  done
 
102
IFS=$as_save_IFS
 
103
 
 
104
     ;;
 
105
esac
 
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
107
# in which case we are not to be found in the path.
 
108
if test "x$as_myself" = x; then
 
109
  as_myself=$0
 
110
fi
 
111
if test ! -f "$as_myself"; then
 
112
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
113
  exit 1
 
114
fi
 
115
 
 
116
# Unset variables that we do not need and which cause bugs (e.g. in
 
117
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
118
# suppresses any "Segmentation fault" message there.  '((' could
 
119
# trigger a bug in pdksh 5.2.14.
 
120
for as_var in BASH_ENV ENV MAIL MAILPATH
 
121
do eval test x\${$as_var+set} = xset \
 
122
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# CDPATH.
 
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
136
 
 
137
# Use a proper internal environment variable to ensure we don't fall
 
138
  # into an infinite loop, continuously re-executing ourselves.
 
139
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 
140
    _as_can_reexec=no; export _as_can_reexec;
 
141
    # We cannot yet assume a decent shell, so we have to provide a
 
142
# neutralization value for shells without unset; and this also
 
143
# works around shells that cannot unset nonexistent variables.
 
144
# Preserve -v and -x to the replacement shell.
 
145
BASH_ENV=/dev/null
 
146
ENV=/dev/null
 
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
148
case $- in @%:@ ((((
 
149
  *v*x* | *x*v* ) as_opts=-vx ;;
 
150
  *v* ) as_opts=-v ;;
 
151
  *x* ) as_opts=-x ;;
 
152
  * ) as_opts= ;;
 
153
esac
 
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
155
# Admittedly, this is quite paranoid, since all the known shells bail
 
156
# out after a failed `exec'.
 
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
158
as_fn_exit 255
 
159
  fi
 
160
  # We don't want this to propagate to other subprocesses.
 
161
          { _as_can_reexec=; unset _as_can_reexec;}
 
162
if test "x$CONFIG_SHELL" = x; then
 
163
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 
164
  emulate sh
 
165
  NULLCMD=:
 
166
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 
167
  # is contrary to our usage.  Disable this feature.
 
168
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
 
169
  setopt NO_GLOB_SUBST
 
170
else
 
171
  case \`(set -o) 2>/dev/null\` in @%:@(
 
172
  *posix*) :
 
173
    set -o posix ;; @%:@(
 
174
  *) :
 
175
     ;;
 
176
esac
 
177
fi
 
178
"
 
179
  as_required="as_fn_return () { (exit \$1); }
 
180
as_fn_success () { as_fn_return 0; }
 
181
as_fn_failure () { as_fn_return 1; }
 
182
as_fn_ret_success () { return 0; }
 
183
as_fn_ret_failure () { return 1; }
 
184
 
 
185
exitcode=0
 
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 
191
  
 
192
else
 
193
  exitcode=1; echo positional parameters were not saved.
 
194
fi
 
195
test x\$exitcode = x0 || exit 1
 
196
test -x / || exit 1"
 
197
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 
198
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 
199
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 
200
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 
201
 
 
202
  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
 
203
    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
204
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
205
    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
 
206
    PATH=/empty FPATH=/empty; export PATH FPATH
 
207
    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
 
208
      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
 
209
test \$(( 1 + 1 )) = 2 || exit 1"
 
210
  if (eval "$as_required") 2>/dev/null; then :
 
211
  as_have_required=yes
 
212
else
 
213
  as_have_required=no
 
214
fi
 
215
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 
216
  
 
217
else
 
218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
219
as_found=false
 
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
221
do
 
222
  IFS=$as_save_IFS
 
223
  test -z "$as_dir" && as_dir=.
 
224
  as_found=:
 
225
  case $as_dir in @%:@(
 
226
         /*)
 
227
           for as_base in sh bash ksh sh5; do
 
228
             # Try only shells that exist, to save several forks.
 
229
             as_shell=$as_dir/$as_base
 
230
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
231
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
232
  CONFIG_SHELL=$as_shell as_have_required=yes
 
233
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 
234
  break 2
 
235
fi
 
236
fi
 
237
           done;;
 
238
       esac
 
239
  as_found=false
 
240
done
 
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 
242
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 
243
  CONFIG_SHELL=$SHELL as_have_required=yes
 
244
fi; }
 
245
IFS=$as_save_IFS
 
246
 
 
247
 
 
248
      if test "x$CONFIG_SHELL" != x; then :
 
249
  export CONFIG_SHELL
 
250
             # We cannot yet assume a decent shell, so we have to provide a
 
251
# neutralization value for shells without unset; and this also
 
252
# works around shells that cannot unset nonexistent variables.
 
253
# Preserve -v and -x to the replacement shell.
 
254
BASH_ENV=/dev/null
 
255
ENV=/dev/null
 
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
257
case $- in @%:@ ((((
 
258
  *v*x* | *x*v* ) as_opts=-vx ;;
 
259
  *v* ) as_opts=-v ;;
 
260
  *x* ) as_opts=-x ;;
 
261
  * ) as_opts= ;;
 
262
esac
 
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 
264
# Admittedly, this is quite paranoid, since all the known shells bail
 
265
# out after a failed `exec'.
 
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 
267
exit 255
 
268
fi
 
269
 
 
270
    if test x$as_have_required = xno; then :
 
271
  $as_echo "$0: This script requires a shell more modern than all"
 
272
  $as_echo "$0: the shells that I found on your system."
 
273
  if test x${ZSH_VERSION+set} = xset ; then
 
274
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 
275
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 
276
  else
 
277
    $as_echo "$0: Please tell bug-autoconf@gnu.org and
 
278
$0: http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727
 
279
$0: about your system, including any error possibly output
 
280
$0: before this message. Then install a modern shell, or
 
281
$0: manually run the script under such a shell if you do
 
282
$0: have one."
 
283
  fi
 
284
  exit 1
 
285
fi
 
286
fi
 
287
fi
 
288
SHELL=${CONFIG_SHELL-/bin/sh}
 
289
export SHELL
 
290
# Unset more variables known to interfere with behavior of common tools.
 
291
CLICOLOR_FORCE= GREP_OPTIONS=
 
292
unset CLICOLOR_FORCE GREP_OPTIONS
 
293
 
 
294
## --------------------- ##
 
295
## M4sh Shell Functions. ##
 
296
## --------------------- ##
 
297
@%:@ as_fn_unset VAR
 
298
@%:@ ---------------
 
299
@%:@ Portably unset VAR.
 
300
as_fn_unset ()
 
301
{
 
302
  { eval $1=; unset $1;}
 
303
}
 
304
as_unset=as_fn_unset
 
305
 
 
306
@%:@ as_fn_set_status STATUS
 
307
@%:@ -----------------------
 
308
@%:@ Set @S|@? to STATUS, without forking.
 
309
as_fn_set_status ()
 
310
{
 
311
  return $1
 
312
} @%:@ as_fn_set_status
 
313
 
 
314
@%:@ as_fn_exit STATUS
 
315
@%:@ -----------------
 
316
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
317
as_fn_exit ()
 
318
{
 
319
  set +e
 
320
  as_fn_set_status $1
 
321
  exit $1
 
322
} @%:@ as_fn_exit
 
323
 
 
324
@%:@ as_fn_mkdir_p
 
325
@%:@ -------------
 
326
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
327
as_fn_mkdir_p ()
 
328
{
 
329
 
 
330
  case $as_dir in #(
 
331
  -*) as_dir=./$as_dir;;
 
332
  esac
 
333
  test -d "$as_dir" || eval $as_mkdir_p || {
 
334
    as_dirs=
 
335
    while :; do
 
336
      case $as_dir in #(
 
337
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
338
      *) as_qdir=$as_dir;;
 
339
      esac
 
340
      as_dirs="'$as_qdir' $as_dirs"
 
341
      as_dir=`$as_dirname -- "$as_dir" ||
 
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
343
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
344
         X"$as_dir" : 'X\(//\)$' \| \
 
345
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
346
$as_echo X"$as_dir" |
 
347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
348
            s//\1/
 
349
            q
 
350
          }
 
351
          /^X\(\/\/\)[^/].*/{
 
352
            s//\1/
 
353
            q
 
354
          }
 
355
          /^X\(\/\/\)$/{
 
356
            s//\1/
 
357
            q
 
358
          }
 
359
          /^X\(\/\).*/{
 
360
            s//\1/
 
361
            q
 
362
          }
 
363
          s/.*/./; q'`
 
364
      test -d "$as_dir" && break
 
365
    done
 
366
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
367
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
368
 
 
369
 
 
370
} @%:@ as_fn_mkdir_p
 
371
 
 
372
@%:@ as_fn_executable_p FILE
 
373
@%:@ -----------------------
 
374
@%:@ Test if FILE is an executable regular file.
 
375
as_fn_executable_p ()
 
376
{
 
377
  test -f "$1" && test -x "$1"
 
378
} @%:@ as_fn_executable_p
 
379
@%:@ as_fn_append VAR VALUE
 
380
@%:@ ----------------------
 
381
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
382
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
383
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
384
@%:@ implementations.
 
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
386
  eval 'as_fn_append ()
 
387
  {
 
388
    eval $1+=\$2
 
389
  }'
 
390
else
 
391
  as_fn_append ()
 
392
  {
 
393
    eval $1=\$$1\$2
 
394
  }
 
395
fi # as_fn_append
 
396
 
 
397
@%:@ as_fn_arith ARG...
 
398
@%:@ ------------------
 
399
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
400
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
401
@%:@ must be portable across @S|@(()) and expr.
 
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
403
  eval 'as_fn_arith ()
 
404
  {
 
405
    as_val=$(( $* ))
 
406
  }'
 
407
else
 
408
  as_fn_arith ()
 
409
  {
 
410
    as_val=`expr "$@" || test $? -eq 1`
 
411
  }
 
412
fi # as_fn_arith
 
413
 
 
414
 
 
415
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
416
@%:@ ----------------------------------------
 
417
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
418
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
419
@%:@ script with STATUS, using 1 if that was 0.
 
420
as_fn_error ()
 
421
{
 
422
  as_status=$1; test $as_status -eq 0 && as_status=1
 
423
  if test "$4"; then
 
424
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
425
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
426
  fi
 
427
  $as_echo "$as_me: error: $2" >&2
 
428
  as_fn_exit $as_status
 
429
} @%:@ as_fn_error
 
430
 
 
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
433
  as_expr=expr
 
434
else
 
435
  as_expr=false
 
436
fi
 
437
 
 
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
439
  as_basename=basename
 
440
else
 
441
  as_basename=false
 
442
fi
 
443
 
 
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
445
  as_dirname=dirname
 
446
else
 
447
  as_dirname=false
 
448
fi
 
449
 
 
450
as_me=`$as_basename -- "$0" ||
 
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
452
         X"$0" : 'X\(//\)$' \| \
 
453
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
454
$as_echo X/"$0" |
 
455
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
456
            s//\1/
 
457
            q
 
458
          }
 
459
          /^X\/\(\/\/\)$/{
 
460
            s//\1/
 
461
            q
 
462
          }
 
463
          /^X\/\(\/\).*/{
 
464
            s//\1/
 
465
            q
 
466
          }
 
467
          s/.*/./; q'`
 
468
 
 
469
# Avoid depending upon Character Ranges.
 
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
473
as_cr_digits='0123456789'
 
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
475
 
 
476
 
 
477
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
 
478
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
 
479
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 
480
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 
481
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 
482
  sed -n '
 
483
    p
 
484
    /[$]LINENO/=
 
485
  ' <$as_myself |
 
486
    sed '
 
487
      s/[$]LINENO.*/&-/
 
488
      t lineno
 
489
      b
 
490
      :lineno
 
491
      N
 
492
      :loop
 
493
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
494
      t loop
 
495
      s/-\n.*//
 
496
    ' >$as_me.lineno &&
 
497
  chmod +x "$as_me.lineno" ||
 
498
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 
499
 
 
500
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 
501
  # already done that, so ensure we don't try to do so again and fall
 
502
  # in an infinite loop.  This has already happened in practice.
 
503
  _as_can_reexec=no; export _as_can_reexec
 
504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
505
  # (the dirname of $[0] is not the place where we might find the
 
506
  # original and so on.  Autoconf is especially sensitive to this).
 
507
  . "./$as_me.lineno"
 
508
  # Exit status is that of the last command.
 
509
  exit
 
510
}
 
511
 
 
512
ECHO_C= ECHO_N= ECHO_T=
 
513
case `echo -n x` in @%:@(((((
 
514
-n*)
 
515
  case `echo 'xy\c'` in
 
516
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
517
  xy)  ECHO_C='\c';;
 
518
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
519
       ECHO_T=' ';;
 
520
  esac;;
 
521
*)
 
522
  ECHO_N='-n';;
 
523
esac
 
524
 
 
525
rm -f conf$$ conf$$.exe conf$$.file
 
526
if test -d conf$$.dir; then
 
527
  rm -f conf$$.dir/conf$$.file
 
528
else
 
529
  rm -f conf$$.dir
 
530
  mkdir conf$$.dir 2>/dev/null
 
531
fi
 
532
if (echo >conf$$.file) 2>/dev/null; then
 
533
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
534
    as_ln_s='ln -s'
 
535
    # ... but there are two gotchas:
 
536
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
537
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
538
    # In both cases, we have to default to `cp -pR'.
 
539
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
540
      as_ln_s='cp -pR'
 
541
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
542
    as_ln_s=ln
 
543
  else
 
544
    as_ln_s='cp -pR'
 
545
  fi
 
546
else
 
547
  as_ln_s='cp -pR'
 
548
fi
 
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
550
rmdir conf$$.dir 2>/dev/null
 
551
 
 
552
if mkdir -p . 2>/dev/null; then
 
553
  as_mkdir_p='mkdir -p "$as_dir"'
 
554
else
 
555
  test -d ./-p && rmdir ./-p
 
556
  as_mkdir_p=false
 
557
fi
 
558
 
 
559
as_test_x='test -x'
 
560
as_executable_p=as_fn_executable_p
 
561
 
 
562
# Sed expression to map a string onto a valid CPP name.
 
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
564
 
 
565
# Sed expression to map a string onto a valid variable name.
 
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
567
 
 
568
SHELL=${CONFIG_SHELL-/bin/sh}
 
569
 
 
570
 
 
571
test -n "$DJDIR" || exec 7<&0 </dev/null
 
572
exec 6>&1
 
573
 
 
574
# Name of the host.
 
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 
576
# so uname gets run too.
 
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
578
 
 
579
#
 
580
# Initializations.
 
581
#
 
582
ac_default_prefix=/usr/local
 
583
ac_clean_files=
 
584
ac_config_libobj_dir=.
 
585
LIB@&t@OBJS=
 
586
cross_compiling=no
 
587
subdirs=
 
588
MFLAGS=
 
589
MAKEFLAGS=
 
590
 
 
591
# Identity of this package.
 
592
PACKAGE_NAME='pam-pgsql'
 
593
PACKAGE_TARNAME='pam-pgsql'
 
594
PACKAGE_VERSION='0.7.3.2'
 
595
PACKAGE_STRING='pam-pgsql 0.7.3.2'
 
596
PACKAGE_BUGREPORT='http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727'
 
597
PACKAGE_URL=''
 
598
 
 
599
ac_unique_file="Makefile.am"
 
600
# Factoring default headers for most tests.
 
601
ac_includes_default="\
 
602
#include <stdio.h>
 
603
#ifdef HAVE_SYS_TYPES_H
 
604
# include <sys/types.h>
 
605
#endif
 
606
#ifdef HAVE_SYS_STAT_H
 
607
# include <sys/stat.h>
 
608
#endif
 
609
#ifdef STDC_HEADERS
 
610
# include <stdlib.h>
 
611
# include <stddef.h>
 
612
#else
 
613
# ifdef HAVE_STDLIB_H
 
614
#  include <stdlib.h>
 
615
# endif
 
616
#endif
 
617
#ifdef HAVE_STRING_H
 
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
619
#  include <memory.h>
 
620
# endif
 
621
# include <string.h>
 
622
#endif
 
623
#ifdef HAVE_STRINGS_H
 
624
# include <strings.h>
 
625
#endif
 
626
#ifdef HAVE_INTTYPES_H
 
627
# include <inttypes.h>
 
628
#endif
 
629
#ifdef HAVE_STDINT_H
 
630
# include <stdint.h>
 
631
#endif
 
632
#ifdef HAVE_UNISTD_H
 
633
# include <unistd.h>
 
634
#endif"
 
635
 
 
636
ac_header_list=
 
637
ac_subst_vars='am__EXEEXT_FALSE
 
638
am__EXEEXT_TRUE
 
639
LTLIBOBJS
 
640
LIB@&t@OBJS
 
641
LIBGCRYPT_LIBS
 
642
LIBGCRYPT_CFLAGS
 
643
LIBGCRYPT_CONFIG
 
644
POSTGRESQL_LDFLAGS
 
645
POSTGRESQL_CFLAGS
 
646
POSTGRESQL_VERSION
 
647
PG_CONFIG
 
648
HAVE_PAM_CONV_FALSE
 
649
HAVE_PAM_CONV_TRUE
 
650
PAMCONVLIB
 
651
pammoddir
 
652
VISIBILITY_CFLAG
 
653
LDFLAGS_NOUNDEFINED
 
654
CPP
 
655
OTOOL64
 
656
OTOOL
 
657
LIPO
 
658
NMEDIT
 
659
DSYMUTIL
 
660
MANIFEST_TOOL
 
661
RANLIB
 
662
ac_ct_AR
 
663
AR
 
664
DLLTOOL
 
665
OBJDUMP
 
666
LN_S
 
667
NM
 
668
ac_ct_DUMPBIN
 
669
DUMPBIN
 
670
LD
 
671
FGREP
 
672
EGREP
 
673
GREP
 
674
SED
 
675
am__fastdepCC_FALSE
 
676
am__fastdepCC_TRUE
 
677
CCDEPMODE
 
678
am__nodep
 
679
AMDEPBACKSLASH
 
680
AMDEP_FALSE
 
681
AMDEP_TRUE
 
682
am__quote
 
683
am__include
 
684
DEPDIR
 
685
OBJEXT
 
686
EXEEXT
 
687
ac_ct_CC
 
688
CPPFLAGS
 
689
LDFLAGS
 
690
CFLAGS
 
691
CC
 
692
host_os
 
693
host_vendor
 
694
host_cpu
 
695
host
 
696
build_os
 
697
build_vendor
 
698
build_cpu
 
699
build
 
700
LIBTOOL
 
701
MAINT
 
702
MAINTAINER_MODE_FALSE
 
703
MAINTAINER_MODE_TRUE
 
704
AM_BACKSLASH
 
705
AM_DEFAULT_VERBOSITY
 
706
AM_DEFAULT_V
 
707
AM_V
 
708
am__untar
 
709
am__tar
 
710
AMTAR
 
711
am__leading_dot
 
712
SET_MAKE
 
713
AWK
 
714
mkdir_p
 
715
MKDIR_P
 
716
INSTALL_STRIP_PROGRAM
 
717
STRIP
 
718
install_sh
 
719
MAKEINFO
 
720
AUTOHEADER
 
721
AUTOMAKE
 
722
AUTOCONF
 
723
ACLOCAL
 
724
VERSION
 
725
PACKAGE
 
726
CYGPATH_W
 
727
am__isrc
 
728
INSTALL_DATA
 
729
INSTALL_SCRIPT
 
730
INSTALL_PROGRAM
 
731
target_alias
 
732
host_alias
 
733
build_alias
 
734
LIBS
 
735
ECHO_T
 
736
ECHO_N
 
737
ECHO_C
 
738
DEFS
 
739
mandir
 
740
localedir
 
741
libdir
 
742
psdir
 
743
pdfdir
 
744
dvidir
 
745
htmldir
 
746
infodir
 
747
docdir
 
748
oldincludedir
 
749
includedir
 
750
localstatedir
 
751
sharedstatedir
 
752
sysconfdir
 
753
datadir
 
754
datarootdir
 
755
libexecdir
 
756
sbindir
 
757
bindir
 
758
program_transform_name
 
759
prefix
 
760
exec_prefix
 
761
PACKAGE_URL
 
762
PACKAGE_BUGREPORT
 
763
PACKAGE_STRING
 
764
PACKAGE_VERSION
 
765
PACKAGE_TARNAME
 
766
PACKAGE_NAME
 
767
PATH_SEPARATOR
 
768
SHELL'
 
769
ac_subst_files=''
 
770
ac_user_opts='
 
771
enable_option_checking
 
772
enable_silent_rules
 
773
enable_maintainer_mode
 
774
enable_static
 
775
enable_shared
 
776
with_pic
 
777
enable_fast_install
 
778
enable_dependency_tracking
 
779
with_gnu_ld
 
780
with_sysroot
 
781
enable_libtool_lock
 
782
with_postgresql
 
783
with_libgcrypt_prefix
 
784
'
 
785
      ac_precious_vars='build_alias
 
786
host_alias
 
787
target_alias
 
788
CC
 
789
CFLAGS
 
790
LDFLAGS
 
791
LIBS
 
792
CPPFLAGS
 
793
CPP'
 
794
 
 
795
 
 
796
# Initialize some variables set by options.
 
797
ac_init_help=
 
798
ac_init_version=false
 
799
ac_unrecognized_opts=
 
800
ac_unrecognized_sep=
 
801
# The variables have the same names as the options, with
 
802
# dashes changed to underlines.
 
803
cache_file=/dev/null
 
804
exec_prefix=NONE
 
805
no_create=
 
806
no_recursion=
 
807
prefix=NONE
 
808
program_prefix=NONE
 
809
program_suffix=NONE
 
810
program_transform_name=s,x,x,
 
811
silent=
 
812
site=
 
813
srcdir=
 
814
verbose=
 
815
x_includes=NONE
 
816
x_libraries=NONE
 
817
 
 
818
# Installation directory options.
 
819
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
820
# and all the variables that are supposed to be based on exec_prefix
 
821
# by default will actually change.
 
822
# Use braces instead of parens because sh, perl, etc. also accept them.
 
823
# (The list follows the same order as the GNU Coding Standards.)
 
824
bindir='${exec_prefix}/bin'
 
825
sbindir='${exec_prefix}/sbin'
 
826
libexecdir='${exec_prefix}/libexec'
 
827
datarootdir='${prefix}/share'
 
828
datadir='${datarootdir}'
 
829
sysconfdir='${prefix}/etc'
 
830
sharedstatedir='${prefix}/com'
 
831
localstatedir='${prefix}/var'
 
832
includedir='${prefix}/include'
 
833
oldincludedir='/usr/include'
 
834
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
835
infodir='${datarootdir}/info'
 
836
htmldir='${docdir}'
 
837
dvidir='${docdir}'
 
838
pdfdir='${docdir}'
 
839
psdir='${docdir}'
 
840
libdir='${exec_prefix}/lib'
 
841
localedir='${datarootdir}/locale'
 
842
mandir='${datarootdir}/man'
 
843
 
 
844
ac_prev=
 
845
ac_dashdash=
 
846
for ac_option
 
847
do
 
848
  # If the previous option needs an argument, assign it.
 
849
  if test -n "$ac_prev"; then
 
850
    eval $ac_prev=\$ac_option
 
851
    ac_prev=
 
852
    continue
 
853
  fi
 
854
 
 
855
  case $ac_option in
 
856
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
857
  *=)   ac_optarg= ;;
 
858
  *)    ac_optarg=yes ;;
 
859
  esac
 
860
 
 
861
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
862
 
 
863
  case $ac_dashdash$ac_option in
 
864
  --)
 
865
    ac_dashdash=yes ;;
 
866
 
 
867
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
868
    ac_prev=bindir ;;
 
869
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
870
    bindir=$ac_optarg ;;
 
871
 
 
872
  -build | --build | --buil | --bui | --bu)
 
873
    ac_prev=build_alias ;;
 
874
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
875
    build_alias=$ac_optarg ;;
 
876
 
 
877
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
878
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
879
    ac_prev=cache_file ;;
 
880
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
881
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
882
    cache_file=$ac_optarg ;;
 
883
 
 
884
  --config-cache | -C)
 
885
    cache_file=config.cache ;;
 
886
 
 
887
  -datadir | --datadir | --datadi | --datad)
 
888
    ac_prev=datadir ;;
 
889
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
890
    datadir=$ac_optarg ;;
 
891
 
 
892
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
893
  | --dataroo | --dataro | --datar)
 
894
    ac_prev=datarootdir ;;
 
895
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
896
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
897
    datarootdir=$ac_optarg ;;
 
898
 
 
899
  -disable-* | --disable-*)
 
900
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
901
    # Reject names that are not valid shell variable names.
 
902
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
903
      as_fn_error $? "invalid feature name: $ac_useropt"
 
904
    ac_useropt_orig=$ac_useropt
 
905
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
906
    case $ac_user_opts in
 
907
      *"
 
908
"enable_$ac_useropt"
 
909
"*) ;;
 
910
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
911
         ac_unrecognized_sep=', ';;
 
912
    esac
 
913
    eval enable_$ac_useropt=no ;;
 
914
 
 
915
  -docdir | --docdir | --docdi | --doc | --do)
 
916
    ac_prev=docdir ;;
 
917
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
918
    docdir=$ac_optarg ;;
 
919
 
 
920
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
921
    ac_prev=dvidir ;;
 
922
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
923
    dvidir=$ac_optarg ;;
 
924
 
 
925
  -enable-* | --enable-*)
 
926
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
927
    # Reject names that are not valid shell variable names.
 
928
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
929
      as_fn_error $? "invalid feature name: $ac_useropt"
 
930
    ac_useropt_orig=$ac_useropt
 
931
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
932
    case $ac_user_opts in
 
933
      *"
 
934
"enable_$ac_useropt"
 
935
"*) ;;
 
936
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
937
         ac_unrecognized_sep=', ';;
 
938
    esac
 
939
    eval enable_$ac_useropt=\$ac_optarg ;;
 
940
 
 
941
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
942
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
943
  | --exec | --exe | --ex)
 
944
    ac_prev=exec_prefix ;;
 
945
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
946
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
947
  | --exec=* | --exe=* | --ex=*)
 
948
    exec_prefix=$ac_optarg ;;
 
949
 
 
950
  -gas | --gas | --ga | --g)
 
951
    # Obsolete; use --with-gas.
 
952
    with_gas=yes ;;
 
953
 
 
954
  -help | --help | --hel | --he | -h)
 
955
    ac_init_help=long ;;
 
956
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
957
    ac_init_help=recursive ;;
 
958
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
959
    ac_init_help=short ;;
 
960
 
 
961
  -host | --host | --hos | --ho)
 
962
    ac_prev=host_alias ;;
 
963
  -host=* | --host=* | --hos=* | --ho=*)
 
964
    host_alias=$ac_optarg ;;
 
965
 
 
966
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
967
    ac_prev=htmldir ;;
 
968
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
969
  | --ht=*)
 
970
    htmldir=$ac_optarg ;;
 
971
 
 
972
  -includedir | --includedir | --includedi | --included | --include \
 
973
  | --includ | --inclu | --incl | --inc)
 
974
    ac_prev=includedir ;;
 
975
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
976
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
977
    includedir=$ac_optarg ;;
 
978
 
 
979
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
980
    ac_prev=infodir ;;
 
981
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
982
    infodir=$ac_optarg ;;
 
983
 
 
984
  -libdir | --libdir | --libdi | --libd)
 
985
    ac_prev=libdir ;;
 
986
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
987
    libdir=$ac_optarg ;;
 
988
 
 
989
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
990
  | --libexe | --libex | --libe)
 
991
    ac_prev=libexecdir ;;
 
992
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
993
  | --libexe=* | --libex=* | --libe=*)
 
994
    libexecdir=$ac_optarg ;;
 
995
 
 
996
  -localedir | --localedir | --localedi | --localed | --locale)
 
997
    ac_prev=localedir ;;
 
998
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
999
    localedir=$ac_optarg ;;
 
1000
 
 
1001
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1002
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1003
    ac_prev=localstatedir ;;
 
1004
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1005
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1006
    localstatedir=$ac_optarg ;;
 
1007
 
 
1008
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1009
    ac_prev=mandir ;;
 
1010
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1011
    mandir=$ac_optarg ;;
 
1012
 
 
1013
  -nfp | --nfp | --nf)
 
1014
    # Obsolete; use --without-fp.
 
1015
    with_fp=no ;;
 
1016
 
 
1017
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1018
  | --no-cr | --no-c | -n)
 
1019
    no_create=yes ;;
 
1020
 
 
1021
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1022
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1023
    no_recursion=yes ;;
 
1024
 
 
1025
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1026
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1027
  | --oldin | --oldi | --old | --ol | --o)
 
1028
    ac_prev=oldincludedir ;;
 
1029
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1030
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1031
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1032
    oldincludedir=$ac_optarg ;;
 
1033
 
 
1034
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1035
    ac_prev=prefix ;;
 
1036
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1037
    prefix=$ac_optarg ;;
 
1038
 
 
1039
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1040
  | --program-pre | --program-pr | --program-p)
 
1041
    ac_prev=program_prefix ;;
 
1042
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1043
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1044
    program_prefix=$ac_optarg ;;
 
1045
 
 
1046
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1047
  | --program-suf | --program-su | --program-s)
 
1048
    ac_prev=program_suffix ;;
 
1049
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1050
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1051
    program_suffix=$ac_optarg ;;
 
1052
 
 
1053
  -program-transform-name | --program-transform-name \
 
1054
  | --program-transform-nam | --program-transform-na \
 
1055
  | --program-transform-n | --program-transform- \
 
1056
  | --program-transform | --program-transfor \
 
1057
  | --program-transfo | --program-transf \
 
1058
  | --program-trans | --program-tran \
 
1059
  | --progr-tra | --program-tr | --program-t)
 
1060
    ac_prev=program_transform_name ;;
 
1061
  -program-transform-name=* | --program-transform-name=* \
 
1062
  | --program-transform-nam=* | --program-transform-na=* \
 
1063
  | --program-transform-n=* | --program-transform-=* \
 
1064
  | --program-transform=* | --program-transfor=* \
 
1065
  | --program-transfo=* | --program-transf=* \
 
1066
  | --program-trans=* | --program-tran=* \
 
1067
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1068
    program_transform_name=$ac_optarg ;;
 
1069
 
 
1070
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1071
    ac_prev=pdfdir ;;
 
1072
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1073
    pdfdir=$ac_optarg ;;
 
1074
 
 
1075
  -psdir | --psdir | --psdi | --psd | --ps)
 
1076
    ac_prev=psdir ;;
 
1077
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1078
    psdir=$ac_optarg ;;
 
1079
 
 
1080
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1081
  | -silent | --silent | --silen | --sile | --sil)
 
1082
    silent=yes ;;
 
1083
 
 
1084
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1085
    ac_prev=sbindir ;;
 
1086
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1087
  | --sbi=* | --sb=*)
 
1088
    sbindir=$ac_optarg ;;
 
1089
 
 
1090
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1091
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1092
  | --sharedst | --shareds | --shared | --share | --shar \
 
1093
  | --sha | --sh)
 
1094
    ac_prev=sharedstatedir ;;
 
1095
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1096
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1097
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1098
  | --sha=* | --sh=*)
 
1099
    sharedstatedir=$ac_optarg ;;
 
1100
 
 
1101
  -site | --site | --sit)
 
1102
    ac_prev=site ;;
 
1103
  -site=* | --site=* | --sit=*)
 
1104
    site=$ac_optarg ;;
 
1105
 
 
1106
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1107
    ac_prev=srcdir ;;
 
1108
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1109
    srcdir=$ac_optarg ;;
 
1110
 
 
1111
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1112
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1113
    ac_prev=sysconfdir ;;
 
1114
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1115
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1116
    sysconfdir=$ac_optarg ;;
 
1117
 
 
1118
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1119
    ac_prev=target_alias ;;
 
1120
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1121
    target_alias=$ac_optarg ;;
 
1122
 
 
1123
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1124
    verbose=yes ;;
 
1125
 
 
1126
  -version | --version | --versio | --versi | --vers | -V)
 
1127
    ac_init_version=: ;;
 
1128
 
 
1129
  -with-* | --with-*)
 
1130
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1131
    # Reject names that are not valid shell variable names.
 
1132
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1133
      as_fn_error $? "invalid package name: $ac_useropt"
 
1134
    ac_useropt_orig=$ac_useropt
 
1135
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1136
    case $ac_user_opts in
 
1137
      *"
 
1138
"with_$ac_useropt"
 
1139
"*) ;;
 
1140
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1141
         ac_unrecognized_sep=', ';;
 
1142
    esac
 
1143
    eval with_$ac_useropt=\$ac_optarg ;;
 
1144
 
 
1145
  -without-* | --without-*)
 
1146
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1147
    # Reject names that are not valid shell variable names.
 
1148
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1149
      as_fn_error $? "invalid package name: $ac_useropt"
 
1150
    ac_useropt_orig=$ac_useropt
 
1151
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1152
    case $ac_user_opts in
 
1153
      *"
 
1154
"with_$ac_useropt"
 
1155
"*) ;;
 
1156
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1157
         ac_unrecognized_sep=', ';;
 
1158
    esac
 
1159
    eval with_$ac_useropt=no ;;
 
1160
 
 
1161
  --x)
 
1162
    # Obsolete; use --with-x.
 
1163
    with_x=yes ;;
 
1164
 
 
1165
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1166
  | --x-incl | --x-inc | --x-in | --x-i)
 
1167
    ac_prev=x_includes ;;
 
1168
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1169
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1170
    x_includes=$ac_optarg ;;
 
1171
 
 
1172
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1173
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1174
    ac_prev=x_libraries ;;
 
1175
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1176
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1177
    x_libraries=$ac_optarg ;;
 
1178
 
 
1179
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
 
1180
Try \`$0 --help' for more information"
 
1181
    ;;
 
1182
 
 
1183
  *=*)
 
1184
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1185
    # Reject names that are not valid shell variable names.
 
1186
    case $ac_envvar in #(
 
1187
      '' | [0-9]* | *[!_$as_cr_alnum]* )
 
1188
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 
1189
    esac
 
1190
    eval $ac_envvar=\$ac_optarg
 
1191
    export $ac_envvar ;;
 
1192
 
 
1193
  *)
 
1194
    # FIXME: should be removed in autoconf 3.0.
 
1195
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1196
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1197
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1198
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 
1199
    ;;
 
1200
 
 
1201
  esac
 
1202
done
 
1203
 
 
1204
if test -n "$ac_prev"; then
 
1205
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1206
  as_fn_error $? "missing argument to $ac_option"
 
1207
fi
 
1208
 
 
1209
if test -n "$ac_unrecognized_opts"; then
 
1210
  case $enable_option_checking in
 
1211
    no) ;;
 
1212
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 
1213
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1214
  esac
 
1215
fi
 
1216
 
 
1217
# Check all directory arguments for consistency.
 
1218
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1219
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1220
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1221
                libdir localedir mandir
 
1222
do
 
1223
  eval ac_val=\$$ac_var
 
1224
  # Remove trailing slashes.
 
1225
  case $ac_val in
 
1226
    */ )
 
1227
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1228
      eval $ac_var=\$ac_val;;
 
1229
  esac
 
1230
  # Be sure to have absolute directory names.
 
1231
  case $ac_val in
 
1232
    [\\/$]* | ?:[\\/]* )  continue;;
 
1233
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1234
  esac
 
1235
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 
1236
done
 
1237
 
 
1238
# There might be people who depend on the old broken behavior: `$host'
 
1239
# used to hold the argument of --host etc.
 
1240
# FIXME: To remove some day.
 
1241
build=$build_alias
 
1242
host=$host_alias
 
1243
target=$target_alias
 
1244
 
 
1245
# FIXME: To remove some day.
 
1246
if test "x$host_alias" != x; then
 
1247
  if test "x$build_alias" = x; then
 
1248
    cross_compiling=maybe
 
1249
  elif test "x$build_alias" != "x$host_alias"; then
 
1250
    cross_compiling=yes
 
1251
  fi
 
1252
fi
 
1253
 
 
1254
ac_tool_prefix=
 
1255
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1256
 
 
1257
test "$silent" = yes && exec 6>/dev/null
 
1258
 
 
1259
 
 
1260
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1261
ac_ls_di=`ls -di .` &&
 
1262
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1263
  as_fn_error $? "working directory cannot be determined"
 
1264
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1265
  as_fn_error $? "pwd does not report name of working directory"
 
1266
 
 
1267
 
 
1268
# Find the source files, if location was not specified.
 
1269
if test -z "$srcdir"; then
 
1270
  ac_srcdir_defaulted=yes
 
1271
  # Try the directory containing this script, then the parent directory.
 
1272
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1273
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1274
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1275
         X"$as_myself" : 'X\(//\)$' \| \
 
1276
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1277
$as_echo X"$as_myself" |
 
1278
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1279
            s//\1/
 
1280
            q
 
1281
          }
 
1282
          /^X\(\/\/\)[^/].*/{
 
1283
            s//\1/
 
1284
            q
 
1285
          }
 
1286
          /^X\(\/\/\)$/{
 
1287
            s//\1/
 
1288
            q
 
1289
          }
 
1290
          /^X\(\/\).*/{
 
1291
            s//\1/
 
1292
            q
 
1293
          }
 
1294
          s/.*/./; q'`
 
1295
  srcdir=$ac_confdir
 
1296
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1297
    srcdir=..
 
1298
  fi
 
1299
else
 
1300
  ac_srcdir_defaulted=no
 
1301
fi
 
1302
if test ! -r "$srcdir/$ac_unique_file"; then
 
1303
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1304
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 
1305
fi
 
1306
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1307
ac_abs_confdir=`(
 
1308
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 
1309
        pwd)`
 
1310
# When building in place, set srcdir=.
 
1311
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1312
  srcdir=.
 
1313
fi
 
1314
# Remove unnecessary trailing slashes from srcdir.
 
1315
# Double slashes in file names in object file debugging info
 
1316
# mess up M-x gdb in Emacs.
 
1317
case $srcdir in
 
1318
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1319
esac
 
1320
for ac_var in $ac_precious_vars; do
 
1321
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1322
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1323
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1324
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1325
done
 
1326
 
 
1327
#
 
1328
# Report the --help message.
 
1329
#
 
1330
if test "$ac_init_help" = "long"; then
 
1331
  # Omit some internal or obsolete options to make the list less imposing.
 
1332
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1333
  cat <<_ACEOF
 
1334
\`configure' configures pam-pgsql 0.7.3.2 to adapt to many kinds of systems.
 
1335
 
 
1336
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1337
 
 
1338
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1339
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1340
 
 
1341
Defaults for the options are specified in brackets.
 
1342
 
 
1343
Configuration:
 
1344
  -h, --help              display this help and exit
 
1345
      --help=short        display options specific to this package
 
1346
      --help=recursive    display the short help of all the included packages
 
1347
  -V, --version           display version information and exit
 
1348
  -q, --quiet, --silent   do not print \`checking ...' messages
 
1349
      --cache-file=FILE   cache test results in FILE [disabled]
 
1350
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1351
  -n, --no-create         do not create output files
 
1352
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1353
 
 
1354
Installation directories:
 
1355
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1356
                          @<:@@S|@ac_default_prefix@:>@
 
1357
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1358
                          @<:@PREFIX@:>@
 
1359
 
 
1360
By default, \`make install' will install all the files in
 
1361
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1362
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1363
for instance \`--prefix=\$HOME'.
 
1364
 
 
1365
For better control, use the options below.
 
1366
 
 
1367
Fine tuning of the installation directories:
 
1368
  --bindir=DIR            user executables [EPREFIX/bin]
 
1369
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1370
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1371
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1372
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1373
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1374
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1375
  --includedir=DIR        C header files [PREFIX/include]
 
1376
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1377
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1378
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1379
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1380
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1381
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1382
  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/pam-pgsql@:>@
 
1383
  --htmldir=DIR           html documentation [DOCDIR]
 
1384
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1385
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1386
  --psdir=DIR             ps documentation [DOCDIR]
 
1387
_ACEOF
 
1388
 
 
1389
  cat <<\_ACEOF
 
1390
 
 
1391
Program names:
 
1392
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1393
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1394
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1395
 
 
1396
System types:
 
1397
  --build=BUILD     configure for building on BUILD [guessed]
 
1398
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1399
_ACEOF
 
1400
fi
 
1401
 
 
1402
if test -n "$ac_init_help"; then
 
1403
  case $ac_init_help in
 
1404
     short | recursive ) echo "Configuration of pam-pgsql 0.7.3.2:";;
 
1405
   esac
 
1406
  cat <<\_ACEOF
 
1407
 
 
1408
Optional Features:
 
1409
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1410
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1411
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1412
  --enable-silent-rules   less verbose build output (undo: "make V=1")
 
1413
  --disable-silent-rules  verbose build output (undo: "make V=0")
 
1414
  --enable-maintainer-mode 
 
1415
                          enable make rules and dependencies not useful (and
 
1416
                          sometimes confusing) to the casual installer
 
1417
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=no@:>@
 
1418
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1419
  --enable-fast-install@<:@=PKGS@:>@ 
 
1420
                          optimize for fast installation @<:@default=yes@:>@
 
1421
  --enable-dependency-tracking 
 
1422
                          do not reject slow dependency extractors
 
1423
  --disable-dependency-tracking 
 
1424
                          speeds up one-time build
 
1425
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1426
 
 
1427
Optional Packages:
 
1428
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1429
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1430
  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
 
1431
                          both@:>@
 
1432
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1433
  --with-sysroot=DIR Search for dependent libraries within DIR
 
1434
                        (or the compiler's sysroot if not specified).
 
1435
  --with-postgresql=@<:@ARG@:>@ use PostgreSQL library @<:@default=yes@:>@, optionally
 
1436
                          specify path to pg_config
 
1437
  --with-libgcrypt-prefix=PFX 
 
1438
                          prefix where LIBGCRYPT is installed (optional)
 
1439
 
 
1440
Some influential environment variables:
 
1441
  CC          C compiler command
 
1442
  CFLAGS      C compiler flags
 
1443
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1444
              nonstandard directory <lib dir>
 
1445
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1446
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 
1447
              you have headers in a nonstandard directory <include dir>
 
1448
  CPP         C preprocessor
 
1449
 
 
1450
Use these variables to override the choices made by `configure' or to help
 
1451
it to find libraries and programs with nonstandard names/locations.
 
1452
 
 
1453
Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>.
 
1454
_ACEOF
 
1455
ac_status=$?
 
1456
fi
 
1457
 
 
1458
if test "$ac_init_help" = "recursive"; then
 
1459
  # If there are subdirs, report their specific --help.
 
1460
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1461
    test -d "$ac_dir" ||
 
1462
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1463
      continue
 
1464
    ac_builddir=.
 
1465
 
 
1466
case "$ac_dir" in
 
1467
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1468
*)
 
1469
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1470
  # A ".." for each directory in $ac_dir_suffix.
 
1471
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1472
  case $ac_top_builddir_sub in
 
1473
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1474
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1475
  esac ;;
 
1476
esac
 
1477
ac_abs_top_builddir=$ac_pwd
 
1478
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1479
# for backward compatibility:
 
1480
ac_top_builddir=$ac_top_build_prefix
 
1481
 
 
1482
case $srcdir in
 
1483
  .)  # We are building in place.
 
1484
    ac_srcdir=.
 
1485
    ac_top_srcdir=$ac_top_builddir_sub
 
1486
    ac_abs_top_srcdir=$ac_pwd ;;
 
1487
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1488
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1489
    ac_top_srcdir=$srcdir
 
1490
    ac_abs_top_srcdir=$srcdir ;;
 
1491
  *) # Relative name.
 
1492
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1493
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1494
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1495
esac
 
1496
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1497
 
 
1498
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1499
    # Check for guested configure.
 
1500
    if test -f "$ac_srcdir/configure.gnu"; then
 
1501
      echo &&
 
1502
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1503
    elif test -f "$ac_srcdir/configure"; then
 
1504
      echo &&
 
1505
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1506
    else
 
1507
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1508
    fi || ac_status=$?
 
1509
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1510
  done
 
1511
fi
 
1512
 
 
1513
test -n "$ac_init_help" && exit $ac_status
 
1514
if $ac_init_version; then
 
1515
  cat <<\_ACEOF
 
1516
pam-pgsql configure 0.7.3.2
 
1517
generated by GNU Autoconf 2.69
 
1518
 
 
1519
Copyright (C) 2012 Free Software Foundation, Inc.
 
1520
This configure script is free software; the Free Software Foundation
 
1521
gives unlimited permission to copy, distribute and modify it.
 
1522
_ACEOF
 
1523
  exit
 
1524
fi
 
1525
 
 
1526
## ------------------------ ##
 
1527
## Autoconf initialization. ##
 
1528
## ------------------------ ##
 
1529
 
 
1530
@%:@ ac_fn_c_try_compile LINENO
 
1531
@%:@ --------------------------
 
1532
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
 
1533
ac_fn_c_try_compile ()
 
1534
{
 
1535
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1536
  rm -f conftest.$ac_objext
 
1537
  if { { ac_try="$ac_compile"
 
1538
case "(($ac_try" in
 
1539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1540
  *) ac_try_echo=$ac_try;;
 
1541
esac
 
1542
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1543
$as_echo "$ac_try_echo"; } >&5
 
1544
  (eval "$ac_compile") 2>conftest.err
 
1545
  ac_status=$?
 
1546
  if test -s conftest.err; then
 
1547
    grep -v '^ *+' conftest.err >conftest.er1
 
1548
    cat conftest.er1 >&5
 
1549
    mv -f conftest.er1 conftest.err
 
1550
  fi
 
1551
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1552
  test $ac_status = 0; } && {
 
1553
         test -z "$ac_c_werror_flag" ||
 
1554
         test ! -s conftest.err
 
1555
       } && test -s conftest.$ac_objext; then :
 
1556
  ac_retval=0
 
1557
else
 
1558
  $as_echo "$as_me: failed program was:" >&5
 
1559
sed 's/^/| /' conftest.$ac_ext >&5
 
1560
 
 
1561
        ac_retval=1
 
1562
fi
 
1563
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1564
  as_fn_set_status $ac_retval
 
1565
 
 
1566
} @%:@ ac_fn_c_try_compile
 
1567
 
 
1568
@%:@ ac_fn_c_try_link LINENO
 
1569
@%:@ -----------------------
 
1570
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
 
1571
ac_fn_c_try_link ()
 
1572
{
 
1573
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1574
  rm -f conftest.$ac_objext conftest$ac_exeext
 
1575
  if { { ac_try="$ac_link"
 
1576
case "(($ac_try" in
 
1577
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1578
  *) ac_try_echo=$ac_try;;
 
1579
esac
 
1580
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1581
$as_echo "$ac_try_echo"; } >&5
 
1582
  (eval "$ac_link") 2>conftest.err
 
1583
  ac_status=$?
 
1584
  if test -s conftest.err; then
 
1585
    grep -v '^ *+' conftest.err >conftest.er1
 
1586
    cat conftest.er1 >&5
 
1587
    mv -f conftest.er1 conftest.err
 
1588
  fi
 
1589
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1590
  test $ac_status = 0; } && {
 
1591
         test -z "$ac_c_werror_flag" ||
 
1592
         test ! -s conftest.err
 
1593
       } && test -s conftest$ac_exeext && {
 
1594
         test "$cross_compiling" = yes ||
 
1595
         test -x conftest$ac_exeext
 
1596
       }; then :
 
1597
  ac_retval=0
 
1598
else
 
1599
  $as_echo "$as_me: failed program was:" >&5
 
1600
sed 's/^/| /' conftest.$ac_ext >&5
 
1601
 
 
1602
        ac_retval=1
 
1603
fi
 
1604
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 
1605
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 
1606
  # interfere with the next link command; also delete a directory that is
 
1607
  # left behind by Apple's compiler.  We do this before executing the actions.
 
1608
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1609
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1610
  as_fn_set_status $ac_retval
 
1611
 
 
1612
} @%:@ ac_fn_c_try_link
 
1613
 
 
1614
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 
1615
@%:@ -------------------------------------------------------
 
1616
@%:@ Tests whether HEADER exists and can be compiled using the include files in
 
1617
@%:@ INCLUDES, setting the cache variable VAR accordingly.
 
1618
ac_fn_c_check_header_compile ()
 
1619
{
 
1620
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1621
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1622
$as_echo_n "checking for $2... " >&6; }
 
1623
if eval \${$3+:} false; then :
 
1624
  $as_echo_n "(cached) " >&6
 
1625
else
 
1626
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1627
/* end confdefs.h.  */
 
1628
$4
 
1629
@%:@include <$2>
 
1630
_ACEOF
 
1631
if ac_fn_c_try_compile "$LINENO"; then :
 
1632
  eval "$3=yes"
 
1633
else
 
1634
  eval "$3=no"
 
1635
fi
 
1636
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
1637
fi
 
1638
eval ac_res=\$$3
 
1639
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1640
$as_echo "$ac_res" >&6; }
 
1641
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1642
 
 
1643
} @%:@ ac_fn_c_check_header_compile
 
1644
 
 
1645
@%:@ ac_fn_c_try_cpp LINENO
 
1646
@%:@ ----------------------
 
1647
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
 
1648
ac_fn_c_try_cpp ()
 
1649
{
 
1650
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1651
  if { { ac_try="$ac_cpp conftest.$ac_ext"
 
1652
case "(($ac_try" in
 
1653
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1654
  *) ac_try_echo=$ac_try;;
 
1655
esac
 
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1657
$as_echo "$ac_try_echo"; } >&5
 
1658
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 
1659
  ac_status=$?
 
1660
  if test -s conftest.err; then
 
1661
    grep -v '^ *+' conftest.err >conftest.er1
 
1662
    cat conftest.er1 >&5
 
1663
    mv -f conftest.er1 conftest.err
 
1664
  fi
 
1665
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1666
  test $ac_status = 0; } > conftest.i && {
 
1667
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
1668
         test ! -s conftest.err
 
1669
       }; then :
 
1670
  ac_retval=0
 
1671
else
 
1672
  $as_echo "$as_me: failed program was:" >&5
 
1673
sed 's/^/| /' conftest.$ac_ext >&5
 
1674
 
 
1675
    ac_retval=1
 
1676
fi
 
1677
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1678
  as_fn_set_status $ac_retval
 
1679
 
 
1680
} @%:@ ac_fn_c_try_cpp
 
1681
 
 
1682
@%:@ ac_fn_c_try_run LINENO
 
1683
@%:@ ----------------------
 
1684
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
 
1685
@%:@ that executables *can* be run.
 
1686
ac_fn_c_try_run ()
 
1687
{
 
1688
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1689
  if { { ac_try="$ac_link"
 
1690
case "(($ac_try" in
 
1691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1692
  *) ac_try_echo=$ac_try;;
 
1693
esac
 
1694
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1695
$as_echo "$ac_try_echo"; } >&5
 
1696
  (eval "$ac_link") 2>&5
 
1697
  ac_status=$?
 
1698
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1699
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
 
1700
  { { case "(($ac_try" in
 
1701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
1702
  *) ac_try_echo=$ac_try;;
 
1703
esac
 
1704
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
1705
$as_echo "$ac_try_echo"; } >&5
 
1706
  (eval "$ac_try") 2>&5
 
1707
  ac_status=$?
 
1708
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
1709
  test $ac_status = 0; }; }; then :
 
1710
  ac_retval=0
 
1711
else
 
1712
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
1713
       $as_echo "$as_me: failed program was:" >&5
 
1714
sed 's/^/| /' conftest.$ac_ext >&5
 
1715
 
 
1716
       ac_retval=$ac_status
 
1717
fi
 
1718
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 
1719
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1720
  as_fn_set_status $ac_retval
 
1721
 
 
1722
} @%:@ ac_fn_c_try_run
 
1723
 
 
1724
@%:@ ac_fn_c_check_func LINENO FUNC VAR
 
1725
@%:@ ----------------------------------
 
1726
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
 
1727
ac_fn_c_check_func ()
 
1728
{
 
1729
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
1730
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 
1731
$as_echo_n "checking for $2... " >&6; }
 
1732
if eval \${$3+:} false; then :
 
1733
  $as_echo_n "(cached) " >&6
 
1734
else
 
1735
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
1736
/* end confdefs.h.  */
 
1737
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 
1738
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
1739
#define $2 innocuous_$2
 
1740
 
 
1741
/* System header to define __stub macros and hopefully few prototypes,
 
1742
    which can conflict with char $2 (); below.
 
1743
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
1744
    <limits.h> exists even on freestanding compilers.  */
 
1745
 
 
1746
#ifdef __STDC__
 
1747
# include <limits.h>
 
1748
#else
 
1749
# include <assert.h>
 
1750
#endif
 
1751
 
 
1752
#undef $2
 
1753
 
 
1754
/* Override any GCC internal prototype to avoid an error.
 
1755
   Use char because int might match the return type of a GCC
 
1756
   builtin and then its argument prototype would still apply.  */
 
1757
#ifdef __cplusplus
 
1758
extern "C"
 
1759
#endif
 
1760
char $2 ();
 
1761
/* The GNU C library defines this for functions which it implements
 
1762
    to always fail with ENOSYS.  Some functions are actually named
 
1763
    something starting with __ and the normal name is an alias.  */
 
1764
#if defined __stub_$2 || defined __stub___$2
 
1765
choke me
 
1766
#endif
 
1767
 
 
1768
int
 
1769
main ()
 
1770
{
 
1771
return $2 ();
 
1772
  ;
 
1773
  return 0;
 
1774
}
 
1775
_ACEOF
 
1776
if ac_fn_c_try_link "$LINENO"; then :
 
1777
  eval "$3=yes"
 
1778
else
 
1779
  eval "$3=no"
 
1780
fi
 
1781
rm -f core conftest.err conftest.$ac_objext \
 
1782
    conftest$ac_exeext conftest.$ac_ext
 
1783
fi
 
1784
eval ac_res=\$$3
 
1785
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
1786
$as_echo "$ac_res" >&6; }
 
1787
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 
1788
 
 
1789
} @%:@ ac_fn_c_check_func
 
1790
cat >config.log <<_ACEOF
 
1791
This file contains any messages produced by compilers while
 
1792
running configure, to aid debugging if configure makes a mistake.
 
1793
 
 
1794
It was created by pam-pgsql $as_me 0.7.3.2, which was
 
1795
generated by GNU Autoconf 2.69.  Invocation command line was
 
1796
 
 
1797
  $ $0 $@
 
1798
 
 
1799
_ACEOF
 
1800
exec 5>>config.log
 
1801
{
 
1802
cat <<_ASUNAME
 
1803
## --------- ##
 
1804
## Platform. ##
 
1805
## --------- ##
 
1806
 
 
1807
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1808
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1809
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1810
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1811
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1812
 
 
1813
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1814
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1815
 
 
1816
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1817
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1818
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1819
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1820
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1821
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1822
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1823
 
 
1824
_ASUNAME
 
1825
 
 
1826
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1827
for as_dir in $PATH
 
1828
do
 
1829
  IFS=$as_save_IFS
 
1830
  test -z "$as_dir" && as_dir=.
 
1831
    $as_echo "PATH: $as_dir"
 
1832
  done
 
1833
IFS=$as_save_IFS
 
1834
 
 
1835
} >&5
 
1836
 
 
1837
cat >&5 <<_ACEOF
 
1838
 
 
1839
 
 
1840
## ----------- ##
 
1841
## Core tests. ##
 
1842
## ----------- ##
 
1843
 
 
1844
_ACEOF
 
1845
 
 
1846
 
 
1847
# Keep a trace of the command line.
 
1848
# Strip out --no-create and --no-recursion so they do not pile up.
 
1849
# Strip out --silent because we don't want to record it for future runs.
 
1850
# Also quote any args containing shell meta-characters.
 
1851
# Make two passes to allow for proper duplicate-argument suppression.
 
1852
ac_configure_args=
 
1853
ac_configure_args0=
 
1854
ac_configure_args1=
 
1855
ac_must_keep_next=false
 
1856
for ac_pass in 1 2
 
1857
do
 
1858
  for ac_arg
 
1859
  do
 
1860
    case $ac_arg in
 
1861
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1862
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1863
    | -silent | --silent | --silen | --sile | --sil)
 
1864
      continue ;;
 
1865
    *\'*)
 
1866
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1867
    esac
 
1868
    case $ac_pass in
 
1869
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 
1870
    2)
 
1871
      as_fn_append ac_configure_args1 " '$ac_arg'"
 
1872
      if test $ac_must_keep_next = true; then
 
1873
        ac_must_keep_next=false # Got value, back to normal.
 
1874
      else
 
1875
        case $ac_arg in
 
1876
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1877
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1878
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1879
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1880
            case "$ac_configure_args0 " in
 
1881
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1882
            esac
 
1883
            ;;
 
1884
          -* ) ac_must_keep_next=true ;;
 
1885
        esac
 
1886
      fi
 
1887
      as_fn_append ac_configure_args " '$ac_arg'"
 
1888
      ;;
 
1889
    esac
 
1890
  done
 
1891
done
 
1892
{ ac_configure_args0=; unset ac_configure_args0;}
 
1893
{ ac_configure_args1=; unset ac_configure_args1;}
 
1894
 
 
1895
# When interrupted or exit'd, cleanup temporary files, and complete
 
1896
# config.log.  We remove comments because anyway the quotes in there
 
1897
# would cause problems or look ugly.
 
1898
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1899
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1900
trap 'exit_status=$?
 
1901
  # Save into config.log some information that might help in debugging.
 
1902
  {
 
1903
    echo
 
1904
 
 
1905
    $as_echo "## ---------------- ##
 
1906
## Cache variables. ##
 
1907
## ---------------- ##"
 
1908
    echo
 
1909
    # The following way of writing the cache mishandles newlines in values,
 
1910
(
 
1911
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1912
    eval ac_val=\$$ac_var
 
1913
    case $ac_val in #(
 
1914
    *${as_nl}*)
 
1915
      case $ac_var in #(
 
1916
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
1917
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1918
      esac
 
1919
      case $ac_var in #(
 
1920
      _ | IFS | as_nl) ;; #(
 
1921
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1922
      *) { eval $ac_var=; unset $ac_var;} ;;
 
1923
      esac ;;
 
1924
    esac
 
1925
  done
 
1926
  (set) 2>&1 |
 
1927
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1928
    *${as_nl}ac_space=\ *)
 
1929
      sed -n \
 
1930
        "s/'\''/'\''\\\\'\'''\''/g;
 
1931
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1932
      ;; #(
 
1933
    *)
 
1934
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1935
      ;;
 
1936
    esac |
 
1937
    sort
 
1938
)
 
1939
    echo
 
1940
 
 
1941
    $as_echo "## ----------------- ##
 
1942
## Output variables. ##
 
1943
## ----------------- ##"
 
1944
    echo
 
1945
    for ac_var in $ac_subst_vars
 
1946
    do
 
1947
      eval ac_val=\$$ac_var
 
1948
      case $ac_val in
 
1949
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1950
      esac
 
1951
      $as_echo "$ac_var='\''$ac_val'\''"
 
1952
    done | sort
 
1953
    echo
 
1954
 
 
1955
    if test -n "$ac_subst_files"; then
 
1956
      $as_echo "## ------------------- ##
 
1957
## File substitutions. ##
 
1958
## ------------------- ##"
 
1959
      echo
 
1960
      for ac_var in $ac_subst_files
 
1961
      do
 
1962
        eval ac_val=\$$ac_var
 
1963
        case $ac_val in
 
1964
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1965
        esac
 
1966
        $as_echo "$ac_var='\''$ac_val'\''"
 
1967
      done | sort
 
1968
      echo
 
1969
    fi
 
1970
 
 
1971
    if test -s confdefs.h; then
 
1972
      $as_echo "## ----------- ##
 
1973
## confdefs.h. ##
 
1974
## ----------- ##"
 
1975
      echo
 
1976
      cat confdefs.h
 
1977
      echo
 
1978
    fi
 
1979
    test "$ac_signal" != 0 &&
 
1980
      $as_echo "$as_me: caught signal $ac_signal"
 
1981
    $as_echo "$as_me: exit $exit_status"
 
1982
  } >&5
 
1983
  rm -f core *.core core.conftest.* &&
 
1984
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1985
    exit $exit_status
 
1986
' 0
 
1987
for ac_signal in 1 2 13 15; do
 
1988
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 
1989
done
 
1990
ac_signal=0
 
1991
 
 
1992
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1993
rm -f -r conftest* confdefs.h
 
1994
 
 
1995
$as_echo "/* confdefs.h */" > confdefs.h
 
1996
 
 
1997
# Predefined preprocessor variables.
 
1998
 
 
1999
cat >>confdefs.h <<_ACEOF
 
2000
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
2001
_ACEOF
 
2002
 
 
2003
cat >>confdefs.h <<_ACEOF
 
2004
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2005
_ACEOF
 
2006
 
 
2007
cat >>confdefs.h <<_ACEOF
 
2008
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2009
_ACEOF
 
2010
 
 
2011
cat >>confdefs.h <<_ACEOF
 
2012
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
2013
_ACEOF
 
2014
 
 
2015
cat >>confdefs.h <<_ACEOF
 
2016
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2017
_ACEOF
 
2018
 
 
2019
cat >>confdefs.h <<_ACEOF
 
2020
@%:@define PACKAGE_URL "$PACKAGE_URL"
 
2021
_ACEOF
 
2022
 
 
2023
 
 
2024
# Let the site file select an alternate cache file if it wants to.
 
2025
# Prefer an explicitly selected file to automatically selected ones.
 
2026
ac_site_file1=NONE
 
2027
ac_site_file2=NONE
 
2028
if test -n "$CONFIG_SITE"; then
 
2029
  # We do not want a PATH search for config.site.
 
2030
  case $CONFIG_SITE in @%:@((
 
2031
    -*)  ac_site_file1=./$CONFIG_SITE;;
 
2032
    */*) ac_site_file1=$CONFIG_SITE;;
 
2033
    *)   ac_site_file1=./$CONFIG_SITE;;
 
2034
  esac
 
2035
elif test "x$prefix" != xNONE; then
 
2036
  ac_site_file1=$prefix/share/config.site
 
2037
  ac_site_file2=$prefix/etc/config.site
 
2038
else
 
2039
  ac_site_file1=$ac_default_prefix/share/config.site
 
2040
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2041
fi
 
2042
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2043
do
 
2044
  test "x$ac_site_file" = xNONE && continue
 
2045
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 
2046
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 
2047
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2048
    sed 's/^/| /' "$ac_site_file" >&5
 
2049
    . "$ac_site_file" \
 
2050
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2051
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2052
as_fn_error $? "failed to load site script $ac_site_file
 
2053
See \`config.log' for more details" "$LINENO" 5; }
 
2054
  fi
 
2055
done
 
2056
 
 
2057
if test -r "$cache_file"; then
 
2058
  # Some versions of bash will fail to source /dev/null (special files
 
2059
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 
2060
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 
2061
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 
2062
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2063
    case $cache_file in
 
2064
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2065
      *)                      . "./$cache_file";;
 
2066
    esac
 
2067
  fi
 
2068
else
 
2069
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 
2070
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2071
  >$cache_file
 
2072
fi
 
2073
 
 
2074
as_fn_append ac_header_list " security/pam_modules.h"
 
2075
as_fn_append ac_header_list " security/openpam.h"
 
2076
as_fn_append ac_header_list " security/pam_misc.h"
 
2077
# Check that the precious variables saved in the cache have kept the same
 
2078
# value.
 
2079
ac_cache_corrupted=false
 
2080
for ac_var in $ac_precious_vars; do
 
2081
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2082
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2083
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2084
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2085
  case $ac_old_set,$ac_new_set in
 
2086
    set,)
 
2087
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2088
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2089
      ac_cache_corrupted=: ;;
 
2090
    ,set)
 
2091
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 
2092
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2093
      ac_cache_corrupted=: ;;
 
2094
    ,);;
 
2095
    *)
 
2096
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2097
        # differences in whitespace do not lead to failure.
 
2098
        ac_old_val_w=`echo x $ac_old_val`
 
2099
        ac_new_val_w=`echo x $ac_new_val`
 
2100
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2101
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 
2102
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2103
          ac_cache_corrupted=:
 
2104
        else
 
2105
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2106
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2107
          eval $ac_var=\$ac_old_val
 
2108
        fi
 
2109
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 
2110
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2111
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 
2112
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2113
      fi;;
 
2114
  esac
 
2115
  # Pass precious variables to config.status.
 
2116
  if test "$ac_new_set" = set; then
 
2117
    case $ac_new_val in
 
2118
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2119
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2120
    esac
 
2121
    case " $ac_configure_args " in
 
2122
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2123
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 
2124
    esac
 
2125
  fi
 
2126
done
 
2127
if $ac_cache_corrupted; then
 
2128
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
2129
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2130
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 
2131
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2132
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 
2133
fi
 
2134
## -------------------- ##
 
2135
## Main body of script. ##
 
2136
## -------------------- ##
 
2137
 
 
2138
ac_ext=c
 
2139
ac_cpp='$CPP $CPPFLAGS'
 
2140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2143
 
 
2144
 
 
2145
 
 
2146
 
 
2147
 
 
2148
ac_config_headers="$ac_config_headers config.h"
 
2149
 
 
2150
 
 
2151
am__api_version='1.14'
 
2152
 
 
2153
ac_aux_dir=
 
2154
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2155
  if test -f "$ac_dir/install-sh"; then
 
2156
    ac_aux_dir=$ac_dir
 
2157
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2158
    break
 
2159
  elif test -f "$ac_dir/install.sh"; then
 
2160
    ac_aux_dir=$ac_dir
 
2161
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2162
    break
 
2163
  elif test -f "$ac_dir/shtool"; then
 
2164
    ac_aux_dir=$ac_dir
 
2165
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2166
    break
 
2167
  fi
 
2168
done
 
2169
if test -z "$ac_aux_dir"; then
 
2170
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 
2171
fi
 
2172
 
 
2173
# These three variables are undocumented and unsupported,
 
2174
# and are intended to be withdrawn in a future Autoconf release.
 
2175
# They can cause serious problems if a builder's source tree is in a directory
 
2176
# whose full name contains unusual characters.
 
2177
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2178
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2179
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2180
 
 
2181
 
 
2182
# Find a good install program.  We prefer a C program (faster),
 
2183
# so one script is as good as another.  But avoid the broken or
 
2184
# incompatible versions:
 
2185
# SysV /etc/install, /usr/sbin/install
 
2186
# SunOS /usr/etc/install
 
2187
# IRIX /sbin/install
 
2188
# AIX /bin/install
 
2189
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2190
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2191
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2192
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2193
# OS/2's system install, which has a completely different semantic
 
2194
# ./install, which can be erroneously created by make from ./install.sh.
 
2195
# Reject install programs that cannot install multiple files.
 
2196
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 
2197
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2198
if test -z "$INSTALL"; then
 
2199
if ${ac_cv_path_install+:} false; then :
 
2200
  $as_echo_n "(cached) " >&6
 
2201
else
 
2202
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2203
for as_dir in $PATH
 
2204
do
 
2205
  IFS=$as_save_IFS
 
2206
  test -z "$as_dir" && as_dir=.
 
2207
    # Account for people who put trailing slashes in PATH elements.
 
2208
case $as_dir/ in @%:@((
 
2209
  ./ | .// | /[cC]/* | \
 
2210
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2211
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 
2212
  /usr/ucb/* ) ;;
 
2213
  *)
 
2214
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2215
    # Don't use installbsd from OSF since it installs stuff as root
 
2216
    # by default.
 
2217
    for ac_prog in ginstall scoinst install; do
 
2218
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2219
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2220
          if test $ac_prog = install &&
 
2221
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2222
            # AIX install.  It has an incompatible calling convention.
 
2223
            :
 
2224
          elif test $ac_prog = install &&
 
2225
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2226
            # program-specific install script used by HP pwplus--don't use.
 
2227
            :
 
2228
          else
 
2229
            rm -rf conftest.one conftest.two conftest.dir
 
2230
            echo one > conftest.one
 
2231
            echo two > conftest.two
 
2232
            mkdir conftest.dir
 
2233
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2234
              test -s conftest.one && test -s conftest.two &&
 
2235
              test -s conftest.dir/conftest.one &&
 
2236
              test -s conftest.dir/conftest.two
 
2237
            then
 
2238
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2239
              break 3
 
2240
            fi
 
2241
          fi
 
2242
        fi
 
2243
      done
 
2244
    done
 
2245
    ;;
 
2246
esac
 
2247
 
 
2248
  done
 
2249
IFS=$as_save_IFS
 
2250
 
 
2251
rm -rf conftest.one conftest.two conftest.dir
 
2252
 
 
2253
fi
 
2254
  if test "${ac_cv_path_install+set}" = set; then
 
2255
    INSTALL=$ac_cv_path_install
 
2256
  else
 
2257
    # As a last resort, use the slow shell script.  Don't cache a
 
2258
    # value for INSTALL within a source directory, because that will
 
2259
    # break other packages using the cache if that directory is
 
2260
    # removed, or if the value is a relative name.
 
2261
    INSTALL=$ac_install_sh
 
2262
  fi
 
2263
fi
 
2264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 
2265
$as_echo "$INSTALL" >&6; }
 
2266
 
 
2267
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2268
# It thinks the first close brace ends the variable substitution.
 
2269
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2270
 
 
2271
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2272
 
 
2273
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2274
 
 
2275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 
2276
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2277
# Reject unsafe characters in $srcdir or the absolute working directory
 
2278
# name.  Accept space and tab only in the latter.
 
2279
am_lf='
 
2280
'
 
2281
case `pwd` in
 
2282
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2283
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 
2284
esac
 
2285
case $srcdir in
 
2286
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2287
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 
2288
esac
 
2289
 
 
2290
# Do 'set' in a subshell so we don't clobber the current shell's
 
2291
# arguments.  Must try -L first in case configure is actually a
 
2292
# symlink; some systems play weird games with the mod time of symlinks
 
2293
# (eg FreeBSD returns the mod time of the symlink's containing
 
2294
# directory).
 
2295
if (
 
2296
   am_has_slept=no
 
2297
   for am_try in 1 2; do
 
2298
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
2299
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2300
     if test "$*" = "X"; then
 
2301
        # -L didn't work.
 
2302
        set X `ls -t "$srcdir/configure" conftest.file`
 
2303
     fi
 
2304
     if test "$*" != "X $srcdir/configure conftest.file" \
 
2305
        && test "$*" != "X conftest.file $srcdir/configure"; then
 
2306
 
 
2307
        # If neither matched, then we have a broken ls.  This can happen
 
2308
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2309
        # broken ls alias from the environment.  This has actually
 
2310
        # happened.  Such a system could not be considered "sane".
 
2311
        as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 
2312
  alias in your environment" "$LINENO" 5
 
2313
     fi
 
2314
     if test "$2" = conftest.file || test $am_try -eq 2; then
 
2315
       break
 
2316
     fi
 
2317
     # Just in case.
 
2318
     sleep 1
 
2319
     am_has_slept=yes
 
2320
   done
 
2321
   test "$2" = conftest.file
 
2322
   )
 
2323
then
 
2324
   # Ok.
 
2325
   :
 
2326
else
 
2327
   as_fn_error $? "newly created file is older than distributed files!
 
2328
Check your system clock" "$LINENO" 5
 
2329
fi
 
2330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2331
$as_echo "yes" >&6; }
 
2332
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
2333
# generated files are strictly newer.
 
2334
am_sleep_pid=
 
2335
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
2336
  ( sleep 1 ) &
 
2337
  am_sleep_pid=$!
 
2338
fi
 
2339
 
 
2340
rm -f conftest.file
 
2341
 
 
2342
test "$program_prefix" != NONE &&
 
2343
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2344
# Use a double $ so make ignores it.
 
2345
test "$program_suffix" != NONE &&
 
2346
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2347
# Double any \ or $.
 
2348
# By default was `s,x,x', remove it if useless.
 
2349
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2350
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2351
 
 
2352
# expand $ac_aux_dir to an absolute path
 
2353
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2354
 
 
2355
if test x"${MISSING+set}" != xset; then
 
2356
  case $am_aux_dir in
 
2357
  *\ * | *\     *)
 
2358
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2359
  *)
 
2360
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2361
  esac
 
2362
fi
 
2363
# Use eval to expand $SHELL
 
2364
if eval "$MISSING --is-lightweight"; then
 
2365
  am_missing_run="$MISSING "
 
2366
else
 
2367
  am_missing_run=
 
2368
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 
2369
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 
2370
fi
 
2371
 
 
2372
if test x"${install_sh}" != xset; then
 
2373
  case $am_aux_dir in
 
2374
  *\ * | *\     *)
 
2375
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2376
  *)
 
2377
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2378
  esac
 
2379
fi
 
2380
 
 
2381
# Installed binaries are usually stripped using 'strip' when the user
 
2382
# run "make install-strip".  However 'strip' might not be the right
 
2383
# tool to use in cross-compilation environments, therefore Automake
 
2384
# will honor the 'STRIP' environment variable to overrule this program.
 
2385
if test "$cross_compiling" != no; then
 
2386
  if test -n "$ac_tool_prefix"; then
 
2387
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2388
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2390
$as_echo_n "checking for $ac_word... " >&6; }
 
2391
if ${ac_cv_prog_STRIP+:} false; then :
 
2392
  $as_echo_n "(cached) " >&6
 
2393
else
 
2394
  if test -n "$STRIP"; then
 
2395
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2396
else
 
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2398
for as_dir in $PATH
 
2399
do
 
2400
  IFS=$as_save_IFS
 
2401
  test -z "$as_dir" && as_dir=.
 
2402
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2403
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2404
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2405
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2406
    break 2
 
2407
  fi
 
2408
done
 
2409
  done
 
2410
IFS=$as_save_IFS
 
2411
 
 
2412
fi
 
2413
fi
 
2414
STRIP=$ac_cv_prog_STRIP
 
2415
if test -n "$STRIP"; then
 
2416
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
2417
$as_echo "$STRIP" >&6; }
 
2418
else
 
2419
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2420
$as_echo "no" >&6; }
 
2421
fi
 
2422
 
 
2423
 
 
2424
fi
 
2425
if test -z "$ac_cv_prog_STRIP"; then
 
2426
  ac_ct_STRIP=$STRIP
 
2427
  # Extract the first word of "strip", so it can be a program name with args.
 
2428
set dummy strip; ac_word=$2
 
2429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2430
$as_echo_n "checking for $ac_word... " >&6; }
 
2431
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
2432
  $as_echo_n "(cached) " >&6
 
2433
else
 
2434
  if test -n "$ac_ct_STRIP"; then
 
2435
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2436
else
 
2437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2438
for as_dir in $PATH
 
2439
do
 
2440
  IFS=$as_save_IFS
 
2441
  test -z "$as_dir" && as_dir=.
 
2442
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2443
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2444
    ac_cv_prog_ac_ct_STRIP="strip"
 
2445
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2446
    break 2
 
2447
  fi
 
2448
done
 
2449
  done
 
2450
IFS=$as_save_IFS
 
2451
 
 
2452
fi
 
2453
fi
 
2454
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2455
if test -n "$ac_ct_STRIP"; then
 
2456
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
2457
$as_echo "$ac_ct_STRIP" >&6; }
 
2458
else
 
2459
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2460
$as_echo "no" >&6; }
 
2461
fi
 
2462
 
 
2463
  if test "x$ac_ct_STRIP" = x; then
 
2464
    STRIP=":"
 
2465
  else
 
2466
    case $cross_compiling:$ac_tool_warned in
 
2467
yes:)
 
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
2469
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2470
ac_tool_warned=yes ;;
 
2471
esac
 
2472
    STRIP=$ac_ct_STRIP
 
2473
  fi
 
2474
else
 
2475
  STRIP="$ac_cv_prog_STRIP"
 
2476
fi
 
2477
 
 
2478
fi
 
2479
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2480
 
 
2481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 
2482
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2483
if test -z "$MKDIR_P"; then
 
2484
  if ${ac_cv_path_mkdir+:} false; then :
 
2485
  $as_echo_n "(cached) " >&6
 
2486
else
 
2487
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2488
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2489
do
 
2490
  IFS=$as_save_IFS
 
2491
  test -z "$as_dir" && as_dir=.
 
2492
    for ac_prog in mkdir gmkdir; do
 
2493
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2494
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
2495
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2496
             'mkdir (GNU coreutils) '* | \
 
2497
             'mkdir (coreutils) '* | \
 
2498
             'mkdir (fileutils) '4.1*)
 
2499
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2500
               break 3;;
 
2501
           esac
 
2502
         done
 
2503
       done
 
2504
  done
 
2505
IFS=$as_save_IFS
 
2506
 
 
2507
fi
 
2508
 
 
2509
  test -d ./--version && rmdir ./--version
 
2510
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2511
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2512
  else
 
2513
    # As a last resort, use the slow shell script.  Don't cache a
 
2514
    # value for MKDIR_P within a source directory, because that will
 
2515
    # break other packages using the cache if that directory is
 
2516
    # removed, or if the value is a relative name.
 
2517
    MKDIR_P="$ac_install_sh -d"
 
2518
  fi
 
2519
fi
 
2520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
2521
$as_echo "$MKDIR_P" >&6; }
 
2522
 
 
2523
for ac_prog in gawk mawk nawk awk
 
2524
do
 
2525
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2526
set dummy $ac_prog; ac_word=$2
 
2527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
2528
$as_echo_n "checking for $ac_word... " >&6; }
 
2529
if ${ac_cv_prog_AWK+:} false; then :
 
2530
  $as_echo_n "(cached) " >&6
 
2531
else
 
2532
  if test -n "$AWK"; then
 
2533
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2534
else
 
2535
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2536
for as_dir in $PATH
 
2537
do
 
2538
  IFS=$as_save_IFS
 
2539
  test -z "$as_dir" && as_dir=.
 
2540
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2541
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2542
    ac_cv_prog_AWK="$ac_prog"
 
2543
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2544
    break 2
 
2545
  fi
 
2546
done
 
2547
  done
 
2548
IFS=$as_save_IFS
 
2549
 
 
2550
fi
 
2551
fi
 
2552
AWK=$ac_cv_prog_AWK
 
2553
if test -n "$AWK"; then
 
2554
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 
2555
$as_echo "$AWK" >&6; }
 
2556
else
 
2557
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2558
$as_echo "no" >&6; }
 
2559
fi
 
2560
 
 
2561
 
 
2562
  test -n "$AWK" && break
 
2563
done
 
2564
 
 
2565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2566
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2567
set x ${MAKE-make}
 
2568
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2569
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 
2570
  $as_echo_n "(cached) " >&6
 
2571
else
 
2572
  cat >conftest.make <<\_ACEOF
 
2573
SHELL = /bin/sh
 
2574
all:
 
2575
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2576
_ACEOF
 
2577
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 
2578
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2579
  *@@@%%%=?*=@@@%%%*)
 
2580
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2581
  *)
 
2582
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2583
esac
 
2584
rm -f conftest.make
 
2585
fi
 
2586
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2587
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
2588
$as_echo "yes" >&6; }
 
2589
  SET_MAKE=
 
2590
else
 
2591
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
2592
$as_echo "no" >&6; }
 
2593
  SET_MAKE="MAKE=${MAKE-make}"
 
2594
fi
 
2595
 
 
2596
rm -rf .tst 2>/dev/null
 
2597
mkdir .tst 2>/dev/null
 
2598
if test -d .tst; then
 
2599
  am__leading_dot=.
 
2600
else
 
2601
  am__leading_dot=_
 
2602
fi
 
2603
rmdir .tst 2>/dev/null
 
2604
 
 
2605
@%:@ Check whether --enable-silent-rules was given.
 
2606
if test "${enable_silent_rules+set}" = set; then :
 
2607
  enableval=$enable_silent_rules; 
 
2608
fi
 
2609
 
 
2610
case $enable_silent_rules in @%:@ (((
 
2611
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2612
   no) AM_DEFAULT_VERBOSITY=1;;
 
2613
    *) AM_DEFAULT_VERBOSITY=1;;
 
2614
esac
 
2615
am_make=${MAKE-make}
 
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2617
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2618
if ${am_cv_make_support_nested_variables+:} false; then :
 
2619
  $as_echo_n "(cached) " >&6
 
2620
else
 
2621
  if $as_echo 'TRUE=$(BAR$(V))
 
2622
BAR0=false
 
2623
BAR1=true
 
2624
V=1
 
2625
am__doit:
 
2626
        @$(TRUE)
 
2627
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2628
  am_cv_make_support_nested_variables=yes
 
2629
else
 
2630
  am_cv_make_support_nested_variables=no
 
2631
fi
 
2632
fi
 
2633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2634
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2635
if test $am_cv_make_support_nested_variables = yes; then
 
2636
    AM_V='$(V)'
 
2637
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2638
else
 
2639
  AM_V=$AM_DEFAULT_VERBOSITY
 
2640
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2641
fi
 
2642
AM_BACKSLASH='\'
 
2643
 
 
2644
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2645
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2646
  # is not polluted with repeated "-I."
 
2647
  am__isrc=' -I$(srcdir)'
 
2648
  # test to see if srcdir already configured
 
2649
  if test -f $srcdir/config.status; then
 
2650
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 
2651
  fi
 
2652
fi
 
2653
 
 
2654
# test whether we have cygpath
 
2655
if test -z "$CYGPATH_W"; then
 
2656
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2657
    CYGPATH_W='cygpath -w'
 
2658
  else
 
2659
    CYGPATH_W=echo
 
2660
  fi
 
2661
fi
 
2662
 
 
2663
 
 
2664
# Define the identity of the package.
 
2665
 PACKAGE='pam-pgsql'
 
2666
 VERSION='0.7.3.2'
 
2667
 
 
2668
 
 
2669
cat >>confdefs.h <<_ACEOF
 
2670
@%:@define PACKAGE "$PACKAGE"
 
2671
_ACEOF
 
2672
 
 
2673
 
 
2674
cat >>confdefs.h <<_ACEOF
 
2675
@%:@define VERSION "$VERSION"
 
2676
_ACEOF
 
2677
 
 
2678
# Some tools Automake needs.
 
2679
 
 
2680
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2681
 
 
2682
 
 
2683
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2684
 
 
2685
 
 
2686
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2687
 
 
2688
 
 
2689
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2690
 
 
2691
 
 
2692
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2693
 
 
2694
# For better backward compatibility.  To be removed once Automake 1.9.x
 
2695
# dies out for good.  For more background, see:
 
2696
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
2697
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
2698
mkdir_p='$(MKDIR_P)'
 
2699
 
 
2700
# We need awk for the "check" target.  The system "awk" is bad on
 
2701
# some platforms.
 
2702
# Always define AMTAR for backward compatibility.  Yes, it's still used
 
2703
# in the wild :-(  We should find a proper way to deprecate it ...
 
2704
AMTAR='$${TAR-tar}'
 
2705
 
 
2706
 
 
2707
# We'll loop over all known methods to create a tar archive until one works.
 
2708
_am_tools='gnutar  pax cpio none'
 
2709
 
 
2710
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
 
2711
 
 
2712
 
 
2713
 
 
2714
 
 
2715
 
 
2716
 
 
2717
# POSIX will say in a future version that running "rm -f" with no argument
 
2718
# is OK; and we want to be able to make that assumption in our Makefile
 
2719
# recipes.  So use an aggressive probe to check that the usage we want is
 
2720
# actually supported "in the wild" to an acceptable degree.
 
2721
# See automake bug#10828.
 
2722
# To make any issue more visible, cause the running configure to be aborted
 
2723
# by default if the 'rm' program in use doesn't match our expectations; the
 
2724
# user can still override this though.
 
2725
if rm -f && rm -fr && rm -rf; then : OK; else
 
2726
  cat >&2 <<'END'
 
2727
Oops!
 
2728
 
 
2729
Your 'rm' program seems unable to run without file operands specified
 
2730
on the command line, even when the '-f' option is present.  This is contrary
 
2731
to the behaviour of most rm programs out there, and not conforming with
 
2732
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
2733
 
 
2734
Please tell bug-automake@gnu.org about your system, including the value
 
2735
of your $PATH and any error possibly output before this message.  This
 
2736
can help us improve future automake versions.
 
2737
 
 
2738
END
 
2739
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
2740
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
2741
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
2742
    echo >&2
 
2743
  else
 
2744
    cat >&2 <<'END'
 
2745
Aborting the configuration process, to ensure you take notice of the issue.
 
2746
 
 
2747
You can download and install GNU coreutils to get an 'rm' implementation
 
2748
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
2749
 
 
2750
If you want to complete the configuration process using your problematic
 
2751
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
2752
to "yes", and re-run configure.
 
2753
 
 
2754
END
 
2755
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 
2756
  fi
 
2757
fi
 
2758
@%:@ Check whether --enable-silent-rules was given.
 
2759
if test "${enable_silent_rules+set}" = set; then :
 
2760
  enableval=$enable_silent_rules; 
 
2761
fi
 
2762
 
 
2763
case $enable_silent_rules in @%:@ (((
 
2764
  yes) AM_DEFAULT_VERBOSITY=0;;
 
2765
   no) AM_DEFAULT_VERBOSITY=1;;
 
2766
    *) AM_DEFAULT_VERBOSITY=0;;
 
2767
esac
 
2768
am_make=${MAKE-make}
 
2769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 
2770
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
 
2771
if ${am_cv_make_support_nested_variables+:} false; then :
 
2772
  $as_echo_n "(cached) " >&6
 
2773
else
 
2774
  if $as_echo 'TRUE=$(BAR$(V))
 
2775
BAR0=false
 
2776
BAR1=true
 
2777
V=1
 
2778
am__doit:
 
2779
        @$(TRUE)
 
2780
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 
2781
  am_cv_make_support_nested_variables=yes
 
2782
else
 
2783
  am_cv_make_support_nested_variables=no
 
2784
fi
 
2785
fi
 
2786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 
2787
$as_echo "$am_cv_make_support_nested_variables" >&6; }
 
2788
if test $am_cv_make_support_nested_variables = yes; then
 
2789
    AM_V='$(V)'
 
2790
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
2791
else
 
2792
  AM_V=$AM_DEFAULT_VERBOSITY
 
2793
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
2794
fi
 
2795
AM_BACKSLASH='\'
 
2796
 
 
2797
 
 
2798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2799
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2800
    @%:@ Check whether --enable-maintainer-mode was given.
 
2801
if test "${enable_maintainer_mode+set}" = set; then :
 
2802
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2803
else
 
2804
  USE_MAINTAINER_MODE=no
 
2805
fi
 
2806
 
 
2807
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 
2808
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2809
   if test $USE_MAINTAINER_MODE = yes; then
 
2810
  MAINTAINER_MODE_TRUE=
 
2811
  MAINTAINER_MODE_FALSE='#'
 
2812
else
 
2813
  MAINTAINER_MODE_TRUE='#'
 
2814
  MAINTAINER_MODE_FALSE=
 
2815
fi
 
2816
 
 
2817
  MAINT=$MAINTAINER_MODE_TRUE
 
2818
  
 
2819
 
 
2820
 
 
2821
case `pwd` in
 
2822
  *\ * | *\     *)
 
2823
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
2824
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
2825
esac
 
2826
 
 
2827
 
 
2828
 
 
2829
macro_version='2.4.2'
 
2830
macro_revision='1.3337'
 
2831
 
 
2832
    
 
2833
    
 
2834
    
 
2835
 
 
2836
 
 
2837
    
 
2838
    
 
2839
    
 
2840
 
 
2841
 
 
2842
 
 
2843
 
 
2844
ltmain="$ac_aux_dir/ltmain.sh"
 
2845
 
 
2846
# Make sure we can run config.sub.
 
2847
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2848
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
 
2849
 
 
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 
2851
$as_echo_n "checking build system type... " >&6; }
 
2852
if ${ac_cv_build+:} false; then :
 
2853
  $as_echo_n "(cached) " >&6
 
2854
else
 
2855
  ac_build_alias=$build_alias
 
2856
test "x$ac_build_alias" = x &&
 
2857
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2858
test "x$ac_build_alias" = x &&
 
2859
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 
2860
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2861
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
 
2862
 
 
2863
fi
 
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 
2865
$as_echo "$ac_cv_build" >&6; }
 
2866
case $ac_cv_build in
 
2867
*-*-*) ;;
 
2868
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 
2869
esac
 
2870
build=$ac_cv_build
 
2871
ac_save_IFS=$IFS; IFS='-'
 
2872
set x $ac_cv_build
 
2873
shift
 
2874
build_cpu=$1
 
2875
build_vendor=$2
 
2876
shift; shift
 
2877
# Remember, the first character of IFS is used to create $*,
 
2878
# except with old shells:
 
2879
build_os=$*
 
2880
IFS=$ac_save_IFS
 
2881
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2882
 
 
2883
 
 
2884
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 
2885
$as_echo_n "checking host system type... " >&6; }
 
2886
if ${ac_cv_host+:} false; then :
 
2887
  $as_echo_n "(cached) " >&6
 
2888
else
 
2889
  if test "x$host_alias" = x; then
 
2890
  ac_cv_host=$ac_cv_build
 
2891
else
 
2892
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2893
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
 
2894
fi
 
2895
 
 
2896
fi
 
2897
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 
2898
$as_echo "$ac_cv_host" >&6; }
 
2899
case $ac_cv_host in
 
2900
*-*-*) ;;
 
2901
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 
2902
esac
 
2903
host=$ac_cv_host
 
2904
ac_save_IFS=$IFS; IFS='-'
 
2905
set x $ac_cv_host
 
2906
shift
 
2907
host_cpu=$1
 
2908
host_vendor=$2
 
2909
shift; shift
 
2910
# Remember, the first character of IFS is used to create $*,
 
2911
# except with old shells:
 
2912
host_os=$*
 
2913
IFS=$ac_save_IFS
 
2914
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2915
 
 
2916
 
 
2917
# Backslashify metacharacters that are still active within
 
2918
# double-quoted strings.
 
2919
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
2920
 
 
2921
# Same as above, but do not quote variable references.
 
2922
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
2923
 
 
2924
# Sed substitution to delay expansion of an escaped shell variable in a
 
2925
# double_quote_subst'ed string.
 
2926
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
2927
 
 
2928
# Sed substitution to delay expansion of an escaped single quote.
 
2929
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
2930
 
 
2931
# Sed substitution to avoid accidental globbing in evaled expressions
 
2932
no_glob_subst='s/\*/\\\*/g'
 
2933
 
 
2934
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
2935
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 
2936
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 
2937
 
 
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
 
2939
$as_echo_n "checking how to print strings... " >&6; }
 
2940
# Test print first, because it will be a builtin if present.
 
2941
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 
2942
   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2943
  ECHO='print -r --'
 
2944
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 
2945
  ECHO='printf %s\n'
 
2946
else
 
2947
  # Use this function as a fallback that always works.
 
2948
  func_fallback_echo ()
 
2949
  {
 
2950
    eval 'cat <<_LTECHO_EOF
 
2951
$1
 
2952
_LTECHO_EOF'
 
2953
  }
 
2954
  ECHO='func_fallback_echo'
 
2955
fi
 
2956
 
 
2957
# func_echo_all arg...
 
2958
# Invoke $ECHO with all args, space-separated.
 
2959
func_echo_all ()
 
2960
{
 
2961
    $ECHO "" 
 
2962
}
 
2963
 
 
2964
case "$ECHO" in
 
2965
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
 
2966
$as_echo "printf" >&6; } ;;
 
2967
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
 
2968
$as_echo "print -r" >&6; } ;;
 
2969
  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
 
2970
$as_echo "cat" >&6; } ;;
 
2971
esac
 
2972
 
 
2973
 
 
2974
 
 
2975
 
 
2976
    
 
2977
    
 
2978
    
 
2979
 
 
2980
 
 
2981
    
 
2982
    
 
2983
    
 
2984
 
 
2985
 
 
2986
DEPDIR="${am__leading_dot}deps"
 
2987
 
 
2988
ac_config_commands="$ac_config_commands depfiles"
 
2989
 
 
2990
 
 
2991
am_make=${MAKE-make}
 
2992
cat > confinc << 'END'
 
2993
am__doit:
 
2994
        @echo this is the am__doit target
 
2995
.PHONY: am__doit
 
2996
END
 
2997
# If we don't find an include directive, just comment out the code.
 
2998
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
 
2999
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3000
am__include="#"
 
3001
am__quote=
 
3002
_am_result=none
 
3003
# First try GNU make style include.
 
3004
echo "include confinc" > confmf
 
3005
# Ignore all kinds of additional output from 'make'.
 
3006
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3007
*the\ am__doit\ target*)
 
3008
  am__include=include
 
3009
  am__quote=
 
3010
  _am_result=GNU
 
3011
  ;;
 
3012
esac
 
3013
# Now try BSD make style include.
 
3014
if test "$am__include" = "#"; then
 
3015
   echo '.include "confinc"' > confmf
 
3016
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3017
   *the\ am__doit\ target*)
 
3018
     am__include=.include
 
3019
     am__quote="\""
 
3020
     _am_result=BSD
 
3021
     ;;
 
3022
   esac
 
3023
fi
 
3024
 
 
3025
 
 
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
 
3027
$as_echo "$_am_result" >&6; }
 
3028
rm -f confinc confmf
 
3029
 
 
3030
@%:@ Check whether --enable-dependency-tracking was given.
 
3031
if test "${enable_dependency_tracking+set}" = set; then :
 
3032
  enableval=$enable_dependency_tracking; 
 
3033
fi
 
3034
 
 
3035
if test "x$enable_dependency_tracking" != xno; then
 
3036
  am_depcomp="$ac_aux_dir/depcomp"
 
3037
  AMDEPBACKSLASH='\'
 
3038
  am__nodep='_no'
 
3039
fi
 
3040
 if test "x$enable_dependency_tracking" != xno; then
 
3041
  AMDEP_TRUE=
 
3042
  AMDEP_FALSE='#'
 
3043
else
 
3044
  AMDEP_TRUE='#'
 
3045
  AMDEP_FALSE=
 
3046
fi
 
3047
 
 
3048
 
 
3049
ac_ext=c
 
3050
ac_cpp='$CPP $CPPFLAGS'
 
3051
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3052
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3053
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3054
if test -n "$ac_tool_prefix"; then
 
3055
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3056
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3058
$as_echo_n "checking for $ac_word... " >&6; }
 
3059
if ${ac_cv_prog_CC+:} false; then :
 
3060
  $as_echo_n "(cached) " >&6
 
3061
else
 
3062
  if test -n "$CC"; then
 
3063
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3064
else
 
3065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3066
for as_dir in $PATH
 
3067
do
 
3068
  IFS=$as_save_IFS
 
3069
  test -z "$as_dir" && as_dir=.
 
3070
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3071
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3072
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3073
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3074
    break 2
 
3075
  fi
 
3076
done
 
3077
  done
 
3078
IFS=$as_save_IFS
 
3079
 
 
3080
fi
 
3081
fi
 
3082
CC=$ac_cv_prog_CC
 
3083
if test -n "$CC"; then
 
3084
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3085
$as_echo "$CC" >&6; }
 
3086
else
 
3087
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3088
$as_echo "no" >&6; }
 
3089
fi
 
3090
 
 
3091
 
 
3092
fi
 
3093
if test -z "$ac_cv_prog_CC"; then
 
3094
  ac_ct_CC=$CC
 
3095
  # Extract the first word of "gcc", so it can be a program name with args.
 
3096
set dummy gcc; ac_word=$2
 
3097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3098
$as_echo_n "checking for $ac_word... " >&6; }
 
3099
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3100
  $as_echo_n "(cached) " >&6
 
3101
else
 
3102
  if test -n "$ac_ct_CC"; then
 
3103
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3104
else
 
3105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3106
for as_dir in $PATH
 
3107
do
 
3108
  IFS=$as_save_IFS
 
3109
  test -z "$as_dir" && as_dir=.
 
3110
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3111
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3112
    ac_cv_prog_ac_ct_CC="gcc"
 
3113
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3114
    break 2
 
3115
  fi
 
3116
done
 
3117
  done
 
3118
IFS=$as_save_IFS
 
3119
 
 
3120
fi
 
3121
fi
 
3122
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3123
if test -n "$ac_ct_CC"; then
 
3124
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3125
$as_echo "$ac_ct_CC" >&6; }
 
3126
else
 
3127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3128
$as_echo "no" >&6; }
 
3129
fi
 
3130
 
 
3131
  if test "x$ac_ct_CC" = x; then
 
3132
    CC=""
 
3133
  else
 
3134
    case $cross_compiling:$ac_tool_warned in
 
3135
yes:)
 
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3138
ac_tool_warned=yes ;;
 
3139
esac
 
3140
    CC=$ac_ct_CC
 
3141
  fi
 
3142
else
 
3143
  CC="$ac_cv_prog_CC"
 
3144
fi
 
3145
 
 
3146
if test -z "$CC"; then
 
3147
          if test -n "$ac_tool_prefix"; then
 
3148
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3149
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3150
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3151
$as_echo_n "checking for $ac_word... " >&6; }
 
3152
if ${ac_cv_prog_CC+:} false; then :
 
3153
  $as_echo_n "(cached) " >&6
 
3154
else
 
3155
  if test -n "$CC"; then
 
3156
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3157
else
 
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3159
for as_dir in $PATH
 
3160
do
 
3161
  IFS=$as_save_IFS
 
3162
  test -z "$as_dir" && as_dir=.
 
3163
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3164
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3165
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3166
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3167
    break 2
 
3168
  fi
 
3169
done
 
3170
  done
 
3171
IFS=$as_save_IFS
 
3172
 
 
3173
fi
 
3174
fi
 
3175
CC=$ac_cv_prog_CC
 
3176
if test -n "$CC"; then
 
3177
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3178
$as_echo "$CC" >&6; }
 
3179
else
 
3180
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3181
$as_echo "no" >&6; }
 
3182
fi
 
3183
 
 
3184
 
 
3185
  fi
 
3186
fi
 
3187
if test -z "$CC"; then
 
3188
  # Extract the first word of "cc", so it can be a program name with args.
 
3189
set dummy cc; ac_word=$2
 
3190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3191
$as_echo_n "checking for $ac_word... " >&6; }
 
3192
if ${ac_cv_prog_CC+:} false; then :
 
3193
  $as_echo_n "(cached) " >&6
 
3194
else
 
3195
  if test -n "$CC"; then
 
3196
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3197
else
 
3198
  ac_prog_rejected=no
 
3199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3200
for as_dir in $PATH
 
3201
do
 
3202
  IFS=$as_save_IFS
 
3203
  test -z "$as_dir" && as_dir=.
 
3204
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3205
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3206
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3207
       ac_prog_rejected=yes
 
3208
       continue
 
3209
     fi
 
3210
    ac_cv_prog_CC="cc"
 
3211
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3212
    break 2
 
3213
  fi
 
3214
done
 
3215
  done
 
3216
IFS=$as_save_IFS
 
3217
 
 
3218
if test $ac_prog_rejected = yes; then
 
3219
  # We found a bogon in the path, so make sure we never use it.
 
3220
  set dummy $ac_cv_prog_CC
 
3221
  shift
 
3222
  if test $@%:@ != 0; then
 
3223
    # We chose a different compiler from the bogus one.
 
3224
    # However, it has the same basename, so the bogon will be chosen
 
3225
    # first if we set CC to just the basename; use the full file name.
 
3226
    shift
 
3227
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3228
  fi
 
3229
fi
 
3230
fi
 
3231
fi
 
3232
CC=$ac_cv_prog_CC
 
3233
if test -n "$CC"; then
 
3234
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3235
$as_echo "$CC" >&6; }
 
3236
else
 
3237
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3238
$as_echo "no" >&6; }
 
3239
fi
 
3240
 
 
3241
 
 
3242
fi
 
3243
if test -z "$CC"; then
 
3244
  if test -n "$ac_tool_prefix"; then
 
3245
  for ac_prog in cl.exe
 
3246
  do
 
3247
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3248
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3250
$as_echo_n "checking for $ac_word... " >&6; }
 
3251
if ${ac_cv_prog_CC+:} false; then :
 
3252
  $as_echo_n "(cached) " >&6
 
3253
else
 
3254
  if test -n "$CC"; then
 
3255
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3256
else
 
3257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3258
for as_dir in $PATH
 
3259
do
 
3260
  IFS=$as_save_IFS
 
3261
  test -z "$as_dir" && as_dir=.
 
3262
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3263
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3264
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3266
    break 2
 
3267
  fi
 
3268
done
 
3269
  done
 
3270
IFS=$as_save_IFS
 
3271
 
 
3272
fi
 
3273
fi
 
3274
CC=$ac_cv_prog_CC
 
3275
if test -n "$CC"; then
 
3276
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
3277
$as_echo "$CC" >&6; }
 
3278
else
 
3279
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3280
$as_echo "no" >&6; }
 
3281
fi
 
3282
 
 
3283
 
 
3284
    test -n "$CC" && break
 
3285
  done
 
3286
fi
 
3287
if test -z "$CC"; then
 
3288
  ac_ct_CC=$CC
 
3289
  for ac_prog in cl.exe
 
3290
do
 
3291
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3292
set dummy $ac_prog; ac_word=$2
 
3293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
3294
$as_echo_n "checking for $ac_word... " >&6; }
 
3295
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
3296
  $as_echo_n "(cached) " >&6
 
3297
else
 
3298
  if test -n "$ac_ct_CC"; then
 
3299
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3300
else
 
3301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3302
for as_dir in $PATH
 
3303
do
 
3304
  IFS=$as_save_IFS
 
3305
  test -z "$as_dir" && as_dir=.
 
3306
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3307
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3308
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3309
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3310
    break 2
 
3311
  fi
 
3312
done
 
3313
  done
 
3314
IFS=$as_save_IFS
 
3315
 
 
3316
fi
 
3317
fi
 
3318
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3319
if test -n "$ac_ct_CC"; then
 
3320
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
3321
$as_echo "$ac_ct_CC" >&6; }
 
3322
else
 
3323
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3324
$as_echo "no" >&6; }
 
3325
fi
 
3326
 
 
3327
 
 
3328
  test -n "$ac_ct_CC" && break
 
3329
done
 
3330
 
 
3331
  if test "x$ac_ct_CC" = x; then
 
3332
    CC=""
 
3333
  else
 
3334
    case $cross_compiling:$ac_tool_warned in
 
3335
yes:)
 
3336
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
3337
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3338
ac_tool_warned=yes ;;
 
3339
esac
 
3340
    CC=$ac_ct_CC
 
3341
  fi
 
3342
fi
 
3343
 
 
3344
fi
 
3345
 
 
3346
 
 
3347
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3349
as_fn_error $? "no acceptable C compiler found in \$PATH
 
3350
See \`config.log' for more details" "$LINENO" 5; }
 
3351
 
 
3352
# Provide some information about the compiler.
 
3353
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
3354
set X $ac_compile
 
3355
ac_compiler=$2
 
3356
for ac_option in --version -v -V -qversion; do
 
3357
  { { ac_try="$ac_compiler $ac_option >&5"
 
3358
case "(($ac_try" in
 
3359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3360
  *) ac_try_echo=$ac_try;;
 
3361
esac
 
3362
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3363
$as_echo "$ac_try_echo"; } >&5
 
3364
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
3365
  ac_status=$?
 
3366
  if test -s conftest.err; then
 
3367
    sed '10a\
 
3368
... rest of stderr output deleted ...
 
3369
         10q' conftest.err >conftest.er1
 
3370
    cat conftest.er1 >&5
 
3371
  fi
 
3372
  rm -f conftest.er1 conftest.err
 
3373
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3374
  test $ac_status = 0; }
 
3375
done
 
3376
 
 
3377
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3378
/* end confdefs.h.  */
 
3379
 
 
3380
int
 
3381
main ()
 
3382
{
 
3383
 
 
3384
  ;
 
3385
  return 0;
 
3386
}
 
3387
_ACEOF
 
3388
ac_clean_files_save=$ac_clean_files
 
3389
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3390
# Try to create an executable without -o first, disregard a.out.
 
3391
# It will help us diagnose broken compilers, and finding out an intuition
 
3392
# of exeext.
 
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 
3394
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3395
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3396
 
 
3397
# The possible output files:
 
3398
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3399
 
 
3400
ac_rmfiles=
 
3401
for ac_file in $ac_files
 
3402
do
 
3403
  case $ac_file in
 
3404
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3405
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3406
  esac
 
3407
done
 
3408
rm -f $ac_rmfiles
 
3409
 
 
3410
if { { ac_try="$ac_link_default"
 
3411
case "(($ac_try" in
 
3412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3413
  *) ac_try_echo=$ac_try;;
 
3414
esac
 
3415
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3416
$as_echo "$ac_try_echo"; } >&5
 
3417
  (eval "$ac_link_default") 2>&5
 
3418
  ac_status=$?
 
3419
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3420
  test $ac_status = 0; }; then :
 
3421
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3422
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3423
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3424
# so that the user can short-circuit this test for compilers unknown to
 
3425
# Autoconf.
 
3426
for ac_file in $ac_files ''
 
3427
do
 
3428
  test -f "$ac_file" || continue
 
3429
  case $ac_file in
 
3430
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3431
        ;;
 
3432
    [ab].out )
 
3433
        # We found the default executable, but exeext='' is most
 
3434
        # certainly right.
 
3435
        break;;
 
3436
    *.* )
 
3437
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3438
        then :; else
 
3439
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3440
        fi
 
3441
        # We set ac_cv_exeext here because the later test for it is not
 
3442
        # safe: cross compilers may not add the suffix if given an `-o'
 
3443
        # argument, so we may need to know it at that point already.
 
3444
        # Even if this section looks crufty: it has the advantage of
 
3445
        # actually working.
 
3446
        break;;
 
3447
    * )
 
3448
        break;;
 
3449
  esac
 
3450
done
 
3451
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3452
 
 
3453
else
 
3454
  ac_file=''
 
3455
fi
 
3456
if test -z "$ac_file"; then :
 
3457
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
3458
$as_echo "no" >&6; }
 
3459
$as_echo "$as_me: failed program was:" >&5
 
3460
sed 's/^/| /' conftest.$ac_ext >&5
 
3461
 
 
3462
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3463
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3464
as_fn_error 77 "C compiler cannot create executables
 
3465
See \`config.log' for more details" "$LINENO" 5; }
 
3466
else
 
3467
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
3468
$as_echo "yes" >&6; }
 
3469
fi
 
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 
3471
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 
3473
$as_echo "$ac_file" >&6; }
 
3474
ac_exeext=$ac_cv_exeext
 
3475
 
 
3476
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3477
ac_clean_files=$ac_clean_files_save
 
3478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 
3479
$as_echo_n "checking for suffix of executables... " >&6; }
 
3480
if { { ac_try="$ac_link"
 
3481
case "(($ac_try" in
 
3482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3483
  *) ac_try_echo=$ac_try;;
 
3484
esac
 
3485
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3486
$as_echo "$ac_try_echo"; } >&5
 
3487
  (eval "$ac_link") 2>&5
 
3488
  ac_status=$?
 
3489
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3490
  test $ac_status = 0; }; then :
 
3491
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3492
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3493
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3494
# `rm'.
 
3495
for ac_file in conftest.exe conftest conftest.*; do
 
3496
  test -f "$ac_file" || continue
 
3497
  case $ac_file in
 
3498
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3499
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3500
          break;;
 
3501
    * ) break;;
 
3502
  esac
 
3503
done
 
3504
else
 
3505
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3506
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3507
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 
3508
See \`config.log' for more details" "$LINENO" 5; }
 
3509
fi
 
3510
rm -f conftest conftest$ac_cv_exeext
 
3511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 
3512
$as_echo "$ac_cv_exeext" >&6; }
 
3513
 
 
3514
rm -f conftest.$ac_ext
 
3515
EXEEXT=$ac_cv_exeext
 
3516
ac_exeext=$EXEEXT
 
3517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3518
/* end confdefs.h.  */
 
3519
@%:@include <stdio.h>
 
3520
int
 
3521
main ()
 
3522
{
 
3523
FILE *f = fopen ("conftest.out", "w");
 
3524
 return ferror (f) || fclose (f) != 0;
 
3525
 
 
3526
  ;
 
3527
  return 0;
 
3528
}
 
3529
_ACEOF
 
3530
ac_clean_files="$ac_clean_files conftest.out"
 
3531
# Check that the compiler produces executables we can run.  If not, either
 
3532
# the compiler is broken, or we cross compile.
 
3533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 
3534
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3535
if test "$cross_compiling" != yes; then
 
3536
  { { ac_try="$ac_link"
 
3537
case "(($ac_try" in
 
3538
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3539
  *) ac_try_echo=$ac_try;;
 
3540
esac
 
3541
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3542
$as_echo "$ac_try_echo"; } >&5
 
3543
  (eval "$ac_link") 2>&5
 
3544
  ac_status=$?
 
3545
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3546
  test $ac_status = 0; }
 
3547
  if { ac_try='./conftest$ac_cv_exeext'
 
3548
  { { case "(($ac_try" in
 
3549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3550
  *) ac_try_echo=$ac_try;;
 
3551
esac
 
3552
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3553
$as_echo "$ac_try_echo"; } >&5
 
3554
  (eval "$ac_try") 2>&5
 
3555
  ac_status=$?
 
3556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3557
  test $ac_status = 0; }; }; then
 
3558
    cross_compiling=no
 
3559
  else
 
3560
    if test "$cross_compiling" = maybe; then
 
3561
        cross_compiling=yes
 
3562
    else
 
3563
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3564
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3565
as_fn_error $? "cannot run C compiled programs.
 
3566
If you meant to cross compile, use \`--host'.
 
3567
See \`config.log' for more details" "$LINENO" 5; }
 
3568
    fi
 
3569
  fi
 
3570
fi
 
3571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 
3572
$as_echo "$cross_compiling" >&6; }
 
3573
 
 
3574
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 
3575
ac_clean_files=$ac_clean_files_save
 
3576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 
3577
$as_echo_n "checking for suffix of object files... " >&6; }
 
3578
if ${ac_cv_objext+:} false; then :
 
3579
  $as_echo_n "(cached) " >&6
 
3580
else
 
3581
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3582
/* end confdefs.h.  */
 
3583
 
 
3584
int
 
3585
main ()
 
3586
{
 
3587
 
 
3588
  ;
 
3589
  return 0;
 
3590
}
 
3591
_ACEOF
 
3592
rm -f conftest.o conftest.obj
 
3593
if { { ac_try="$ac_compile"
 
3594
case "(($ac_try" in
 
3595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3596
  *) ac_try_echo=$ac_try;;
 
3597
esac
 
3598
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
3599
$as_echo "$ac_try_echo"; } >&5
 
3600
  (eval "$ac_compile") 2>&5
 
3601
  ac_status=$?
 
3602
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
3603
  test $ac_status = 0; }; then :
 
3604
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3605
  test -f "$ac_file" || continue;
 
3606
  case $ac_file in
 
3607
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3608
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3609
       break;;
 
3610
  esac
 
3611
done
 
3612
else
 
3613
  $as_echo "$as_me: failed program was:" >&5
 
3614
sed 's/^/| /' conftest.$ac_ext >&5
 
3615
 
 
3616
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
3617
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3618
as_fn_error $? "cannot compute suffix of object files: cannot compile
 
3619
See \`config.log' for more details" "$LINENO" 5; }
 
3620
fi
 
3621
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3622
fi
 
3623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 
3624
$as_echo "$ac_cv_objext" >&6; }
 
3625
OBJEXT=$ac_cv_objext
 
3626
ac_objext=$OBJEXT
 
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
3628
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3629
if ${ac_cv_c_compiler_gnu+:} false; then :
 
3630
  $as_echo_n "(cached) " >&6
 
3631
else
 
3632
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3633
/* end confdefs.h.  */
 
3634
 
 
3635
int
 
3636
main ()
 
3637
{
 
3638
#ifndef __GNUC__
 
3639
       choke me
 
3640
#endif
 
3641
 
 
3642
  ;
 
3643
  return 0;
 
3644
}
 
3645
_ACEOF
 
3646
if ac_fn_c_try_compile "$LINENO"; then :
 
3647
  ac_compiler_gnu=yes
 
3648
else
 
3649
  ac_compiler_gnu=no
 
3650
fi
 
3651
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3652
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3653
 
 
3654
fi
 
3655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
3656
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3657
if test $ac_compiler_gnu = yes; then
 
3658
  GCC=yes
 
3659
else
 
3660
  GCC=
 
3661
fi
 
3662
ac_test_CFLAGS=${CFLAGS+set}
 
3663
ac_save_CFLAGS=$CFLAGS
 
3664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
3665
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3666
if ${ac_cv_prog_cc_g+:} false; then :
 
3667
  $as_echo_n "(cached) " >&6
 
3668
else
 
3669
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3670
   ac_c_werror_flag=yes
 
3671
   ac_cv_prog_cc_g=no
 
3672
   CFLAGS="-g"
 
3673
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3674
/* end confdefs.h.  */
 
3675
 
 
3676
int
 
3677
main ()
 
3678
{
 
3679
 
 
3680
  ;
 
3681
  return 0;
 
3682
}
 
3683
_ACEOF
 
3684
if ac_fn_c_try_compile "$LINENO"; then :
 
3685
  ac_cv_prog_cc_g=yes
 
3686
else
 
3687
  CFLAGS=""
 
3688
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3689
/* end confdefs.h.  */
 
3690
 
 
3691
int
 
3692
main ()
 
3693
{
 
3694
 
 
3695
  ;
 
3696
  return 0;
 
3697
}
 
3698
_ACEOF
 
3699
if ac_fn_c_try_compile "$LINENO"; then :
 
3700
  
 
3701
else
 
3702
  ac_c_werror_flag=$ac_save_c_werror_flag
 
3703
         CFLAGS="-g"
 
3704
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3705
/* end confdefs.h.  */
 
3706
 
 
3707
int
 
3708
main ()
 
3709
{
 
3710
 
 
3711
  ;
 
3712
  return 0;
 
3713
}
 
3714
_ACEOF
 
3715
if ac_fn_c_try_compile "$LINENO"; then :
 
3716
  ac_cv_prog_cc_g=yes
 
3717
fi
 
3718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3719
fi
 
3720
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3721
fi
 
3722
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3723
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3724
fi
 
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
3726
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3727
if test "$ac_test_CFLAGS" = set; then
 
3728
  CFLAGS=$ac_save_CFLAGS
 
3729
elif test $ac_cv_prog_cc_g = yes; then
 
3730
  if test "$GCC" = yes; then
 
3731
    CFLAGS="-g -O2"
 
3732
  else
 
3733
    CFLAGS="-g"
 
3734
  fi
 
3735
else
 
3736
  if test "$GCC" = yes; then
 
3737
    CFLAGS="-O2"
 
3738
  else
 
3739
    CFLAGS=
 
3740
  fi
 
3741
fi
 
3742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
3743
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3744
if ${ac_cv_prog_cc_c89+:} false; then :
 
3745
  $as_echo_n "(cached) " >&6
 
3746
else
 
3747
  ac_cv_prog_cc_c89=no
 
3748
ac_save_CC=$CC
 
3749
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3750
/* end confdefs.h.  */
 
3751
#include <stdarg.h>
 
3752
#include <stdio.h>
 
3753
struct stat;
 
3754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3755
struct buf { int x; };
 
3756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3757
static char *e (p, i)
 
3758
     char **p;
 
3759
     int i;
 
3760
{
 
3761
  return p[i];
 
3762
}
 
3763
static char *f (char * (*g) (char **, int), char **p, ...)
 
3764
{
 
3765
  char *s;
 
3766
  va_list v;
 
3767
  va_start (v,p);
 
3768
  s = g (p, va_arg (v,int));
 
3769
  va_end (v);
 
3770
  return s;
 
3771
}
 
3772
 
 
3773
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3774
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3775
   These don't provoke an error unfortunately, instead are silently treated
 
3776
   as 'x'.  The following induces an error, until -std is added to get
 
3777
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3778
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3779
   that's true only with -std.  */
 
3780
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3781
 
 
3782
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3783
   inside strings and character constants.  */
 
3784
#define FOO(x) 'x'
 
3785
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3786
 
 
3787
int test (int i, double x);
 
3788
struct s1 {int (*f) (int a);};
 
3789
struct s2 {int (*f) (double a);};
 
3790
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3791
int argc;
 
3792
char **argv;
 
3793
int
 
3794
main ()
 
3795
{
 
3796
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3797
  ;
 
3798
  return 0;
 
3799
}
 
3800
_ACEOF
 
3801
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3802
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3803
do
 
3804
  CC="$ac_save_CC $ac_arg"
 
3805
  if ac_fn_c_try_compile "$LINENO"; then :
 
3806
  ac_cv_prog_cc_c89=$ac_arg
 
3807
fi
 
3808
rm -f core conftest.err conftest.$ac_objext
 
3809
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3810
done
 
3811
rm -f conftest.$ac_ext
 
3812
CC=$ac_save_CC
 
3813
 
 
3814
fi
 
3815
# AC_CACHE_VAL
 
3816
case "x$ac_cv_prog_cc_c89" in
 
3817
  x)
 
3818
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
3819
$as_echo "none needed" >&6; } ;;
 
3820
  xno)
 
3821
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
3822
$as_echo "unsupported" >&6; } ;;
 
3823
  *)
 
3824
    CC="$CC $ac_cv_prog_cc_c89"
 
3825
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
3826
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3827
esac
 
3828
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
3829
  
 
3830
fi
 
3831
 
 
3832
ac_ext=c
 
3833
ac_cpp='$CPP $CPPFLAGS'
 
3834
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3835
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3836
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3837
 
 
3838
ac_ext=c
 
3839
ac_cpp='$CPP $CPPFLAGS'
 
3840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
3844
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
3845
if ${am_cv_prog_cc_c_o+:} false; then :
 
3846
  $as_echo_n "(cached) " >&6
 
3847
else
 
3848
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
3849
/* end confdefs.h.  */
 
3850
 
 
3851
int
 
3852
main ()
 
3853
{
 
3854
 
 
3855
  ;
 
3856
  return 0;
 
3857
}
 
3858
_ACEOF
 
3859
  # Make sure it works both with $CC and with simple cc.
 
3860
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
3861
  # compilers refuse to overwrite an existing .o file with -o,
 
3862
  # though they will create one.
 
3863
  am_cv_prog_cc_c_o=yes
 
3864
  for am_i in 1 2; do
 
3865
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
3866
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
3867
   ac_status=$?
 
3868
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3869
   (exit $ac_status); } \
 
3870
         && test -f conftest2.$ac_objext; then
 
3871
      : OK
 
3872
    else
 
3873
      am_cv_prog_cc_c_o=no
 
3874
      break
 
3875
    fi
 
3876
  done
 
3877
  rm -f core conftest*
 
3878
  unset am_i
 
3879
fi
 
3880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
3881
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
3882
if test "$am_cv_prog_cc_c_o" != yes; then
 
3883
   # Losing compiler, so override with the script.
 
3884
   # FIXME: It is wrong to rewrite CC.
 
3885
   # But if we don't then we get into trouble of one sort or another.
 
3886
   # A longer-term fix would be to have automake use am__CC in this case,
 
3887
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3888
   CC="$am_aux_dir/compile $CC"
 
3889
fi
 
3890
ac_ext=c
 
3891
ac_cpp='$CPP $CPPFLAGS'
 
3892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3895
 
 
3896
 
 
3897
depcc="$CC"   am_compiler_list=
 
3898
 
 
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
3900
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3901
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
3902
  $as_echo_n "(cached) " >&6
 
3903
else
 
3904
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3905
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3906
  # making bogus files that we don't know about and never remove.  For
 
3907
  # instance it was reported that on HP-UX the gcc test will end up
 
3908
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
3909
  # in D".
 
3910
  rm -rf conftest.dir
 
3911
  mkdir conftest.dir
 
3912
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3913
  # using a relative directory.
 
3914
  cp "$am_depcomp" conftest.dir
 
3915
  cd conftest.dir
 
3916
  # We will build objects and dependencies in a subdirectory because
 
3917
  # it helps to detect inapplicable dependency modes.  For instance
 
3918
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3919
  # side effect of compilation, but ICC will put the dependencies in
 
3920
  # the current directory while Tru64 will put them in the object
 
3921
  # directory.
 
3922
  mkdir sub
 
3923
 
 
3924
  am_cv_CC_dependencies_compiler_type=none
 
3925
  if test "$am_compiler_list" = ""; then
 
3926
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3927
  fi
 
3928
  am__universal=false
 
3929
  case " $depcc " in #(
 
3930
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3931
     esac
 
3932
 
 
3933
  for depmode in $am_compiler_list; do
 
3934
    # Setup a source with many dependencies, because some compilers
 
3935
    # like to wrap large dependency lists on column 80 (with \), and
 
3936
    # we should not choose a depcomp mode which is confused by this.
 
3937
    #
 
3938
    # We need to recreate these files for each test, as the compiler may
 
3939
    # overwrite some of them when testing with obscure command lines.
 
3940
    # This happens at least with the AIX C compiler.
 
3941
    : > sub/conftest.c
 
3942
    for i in 1 2 3 4 5 6; do
 
3943
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3944
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
3945
      # Solaris 10 /bin/sh.
 
3946
      echo '/* dummy */' > sub/conftst$i.h
 
3947
    done
 
3948
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3949
 
 
3950
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
3951
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3952
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
3953
    # versions had trouble with output in subdirs.
 
3954
    am__obj=sub/conftest.${OBJEXT-o}
 
3955
    am__minus_obj="-o $am__obj"
 
3956
    case $depmode in
 
3957
    gcc)
 
3958
      # This depmode causes a compiler race in universal mode.
 
3959
      test "$am__universal" = false || continue
 
3960
      ;;
 
3961
    nosideeffect)
 
3962
      # After this tag, mechanisms are not by side-effect, so they'll
 
3963
      # only be used when explicitly requested.
 
3964
      if test "x$enable_dependency_tracking" = xyes; then
 
3965
        continue
 
3966
      else
 
3967
        break
 
3968
      fi
 
3969
      ;;
 
3970
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
3971
      # This compiler won't grok '-c -o', but also, the minuso test has
 
3972
      # not run yet.  These depmodes are late enough in the game, and
 
3973
      # so weak that their functioning should not be impacted.
 
3974
      am__obj=conftest.${OBJEXT-o}
 
3975
      am__minus_obj=
 
3976
      ;;
 
3977
    none) break ;;
 
3978
    esac
 
3979
    if depmode=$depmode \
 
3980
       source=sub/conftest.c object=$am__obj \
 
3981
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3982
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3983
         >/dev/null 2>conftest.err &&
 
3984
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3985
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3986
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3987
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3988
      # icc doesn't choke on unknown options, it will just issue warnings
 
3989
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3990
      # that says an option was ignored or not supported.
 
3991
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3992
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3993
      # The diagnosis changed in icc 8.0:
 
3994
      #   icc: Command line remark: option '-MP' not supported
 
3995
      if (grep 'ignoring option' conftest.err ||
 
3996
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3997
        am_cv_CC_dependencies_compiler_type=$depmode
 
3998
        break
 
3999
      fi
 
4000
    fi
 
4001
  done
 
4002
 
 
4003
  cd ..
 
4004
  rm -rf conftest.dir
 
4005
else
 
4006
  am_cv_CC_dependencies_compiler_type=none
 
4007
fi
 
4008
 
 
4009
fi
 
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4011
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4012
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4013
 
 
4014
 if 
 
4015
  test "x$enable_dependency_tracking" != xno \
 
4016
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4017
  am__fastdepCC_TRUE=
 
4018
  am__fastdepCC_FALSE='#'
 
4019
else
 
4020
  am__fastdepCC_TRUE='#'
 
4021
  am__fastdepCC_FALSE=
 
4022
fi
 
4023
 
 
4024
 
 
4025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
 
4026
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4027
if ${ac_cv_path_SED+:} false; then :
 
4028
  $as_echo_n "(cached) " >&6
 
4029
else
 
4030
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
4031
     for ac_i in 1 2 3 4 5 6 7; do
 
4032
       ac_script="$ac_script$as_nl$ac_script"
 
4033
     done
 
4034
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
 
4035
     { ac_script=; unset ac_script;}
 
4036
     if test -z "$SED"; then
 
4037
  ac_path_SED_found=false
 
4038
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4039
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4040
for as_dir in $PATH
 
4041
do
 
4042
  IFS=$as_save_IFS
 
4043
  test -z "$as_dir" && as_dir=.
 
4044
    for ac_prog in sed gsed; do
 
4045
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4046
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
4047
      as_fn_executable_p "$ac_path_SED" || continue
 
4048
# Check for GNU ac_path_SED and select it if it is found.
 
4049
  # Check for GNU $ac_path_SED
 
4050
case `"$ac_path_SED" --version 2>&1` in
 
4051
*GNU*)
 
4052
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
4053
*)
 
4054
  ac_count=0
 
4055
  $as_echo_n 0123456789 >"conftest.in"
 
4056
  while :
 
4057
  do
 
4058
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4059
    mv "conftest.tmp" "conftest.in"
 
4060
    cp "conftest.in" "conftest.nl"
 
4061
    $as_echo '' >> "conftest.nl"
 
4062
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4063
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4064
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4065
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
4066
      # Best one so far, save it but keep looking for a better one
 
4067
      ac_cv_path_SED="$ac_path_SED"
 
4068
      ac_path_SED_max=$ac_count
 
4069
    fi
 
4070
    # 10*(2^10) chars as input seems more than enough
 
4071
    test $ac_count -gt 10 && break
 
4072
  done
 
4073
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4074
esac
 
4075
 
 
4076
      $ac_path_SED_found && break 3
 
4077
    done
 
4078
  done
 
4079
  done
 
4080
IFS=$as_save_IFS
 
4081
  if test -z "$ac_cv_path_SED"; then
 
4082
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
 
4083
  fi
 
4084
else
 
4085
  ac_cv_path_SED=$SED
 
4086
fi
 
4087
 
 
4088
fi
 
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
 
4090
$as_echo "$ac_cv_path_SED" >&6; }
 
4091
 SED="$ac_cv_path_SED"
 
4092
  rm -f conftest.sed
 
4093
 
 
4094
test -z "$SED" && SED=sed
 
4095
Xsed="$SED -e 1s/^X//"
 
4096
 
 
4097
    
 
4098
    
 
4099
    
 
4100
 
 
4101
 
 
4102
    
 
4103
    
 
4104
    
 
4105
 
 
4106
 
 
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 
4108
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4109
if ${ac_cv_path_GREP+:} false; then :
 
4110
  $as_echo_n "(cached) " >&6
 
4111
else
 
4112
  if test -z "$GREP"; then
 
4113
  ac_path_GREP_found=false
 
4114
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4115
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4116
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4117
do
 
4118
  IFS=$as_save_IFS
 
4119
  test -z "$as_dir" && as_dir=.
 
4120
    for ac_prog in grep ggrep; do
 
4121
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4122
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4123
      as_fn_executable_p "$ac_path_GREP" || continue
 
4124
# Check for GNU ac_path_GREP and select it if it is found.
 
4125
  # Check for GNU $ac_path_GREP
 
4126
case `"$ac_path_GREP" --version 2>&1` in
 
4127
*GNU*)
 
4128
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4129
*)
 
4130
  ac_count=0
 
4131
  $as_echo_n 0123456789 >"conftest.in"
 
4132
  while :
 
4133
  do
 
4134
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4135
    mv "conftest.tmp" "conftest.in"
 
4136
    cp "conftest.in" "conftest.nl"
 
4137
    $as_echo 'GREP' >> "conftest.nl"
 
4138
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4139
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4140
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4141
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4142
      # Best one so far, save it but keep looking for a better one
 
4143
      ac_cv_path_GREP="$ac_path_GREP"
 
4144
      ac_path_GREP_max=$ac_count
 
4145
    fi
 
4146
    # 10*(2^10) chars as input seems more than enough
 
4147
    test $ac_count -gt 10 && break
 
4148
  done
 
4149
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4150
esac
 
4151
 
 
4152
      $ac_path_GREP_found && break 3
 
4153
    done
 
4154
  done
 
4155
  done
 
4156
IFS=$as_save_IFS
 
4157
  if test -z "$ac_cv_path_GREP"; then
 
4158
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4159
  fi
 
4160
else
 
4161
  ac_cv_path_GREP=$GREP
 
4162
fi
 
4163
 
 
4164
fi
 
4165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
 
4166
$as_echo "$ac_cv_path_GREP" >&6; }
 
4167
 GREP="$ac_cv_path_GREP"
 
4168
 
 
4169
 
 
4170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
 
4171
$as_echo_n "checking for egrep... " >&6; }
 
4172
if ${ac_cv_path_EGREP+:} false; then :
 
4173
  $as_echo_n "(cached) " >&6
 
4174
else
 
4175
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4176
   then ac_cv_path_EGREP="$GREP -E"
 
4177
   else
 
4178
     if test -z "$EGREP"; then
 
4179
  ac_path_EGREP_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
    for ac_prog in egrep; do
 
4187
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4188
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4189
      as_fn_executable_p "$ac_path_EGREP" || continue
 
4190
# Check for GNU ac_path_EGREP and select it if it is found.
 
4191
  # Check for GNU $ac_path_EGREP
 
4192
case `"$ac_path_EGREP" --version 2>&1` in
 
4193
*GNU*)
 
4194
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
 
4204
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4205
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4206
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4207
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4208
      # Best one so far, save it but keep looking for a better one
 
4209
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4210
      ac_path_EGREP_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_EGREP_found && break 3
 
4219
    done
 
4220
  done
 
4221
  done
 
4222
IFS=$as_save_IFS
 
4223
  if test -z "$ac_cv_path_EGREP"; then
 
4224
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4225
  fi
 
4226
else
 
4227
  ac_cv_path_EGREP=$EGREP
 
4228
fi
 
4229
 
 
4230
   fi
 
4231
fi
 
4232
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
 
4233
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4234
 EGREP="$ac_cv_path_EGREP"
 
4235
 
 
4236
 
 
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
 
4238
$as_echo_n "checking for fgrep... " >&6; }
 
4239
if ${ac_cv_path_FGREP+:} false; then :
 
4240
  $as_echo_n "(cached) " >&6
 
4241
else
 
4242
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
4243
   then ac_cv_path_FGREP="$GREP -F"
 
4244
   else
 
4245
     if test -z "$FGREP"; then
 
4246
  ac_path_FGREP_found=false
 
4247
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4248
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4249
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4250
do
 
4251
  IFS=$as_save_IFS
 
4252
  test -z "$as_dir" && as_dir=.
 
4253
    for ac_prog in fgrep; do
 
4254
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4255
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4256
      as_fn_executable_p "$ac_path_FGREP" || continue
 
4257
# Check for GNU ac_path_FGREP and select it if it is found.
 
4258
  # Check for GNU $ac_path_FGREP
 
4259
case `"$ac_path_FGREP" --version 2>&1` in
 
4260
*GNU*)
 
4261
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
4262
*)
 
4263
  ac_count=0
 
4264
  $as_echo_n 0123456789 >"conftest.in"
 
4265
  while :
 
4266
  do
 
4267
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4268
    mv "conftest.tmp" "conftest.in"
 
4269
    cp "conftest.in" "conftest.nl"
 
4270
    $as_echo 'FGREP' >> "conftest.nl"
 
4271
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4272
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4273
    as_fn_arith $ac_count + 1 && ac_count=$as_val
 
4274
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
4275
      # Best one so far, save it but keep looking for a better one
 
4276
      ac_cv_path_FGREP="$ac_path_FGREP"
 
4277
      ac_path_FGREP_max=$ac_count
 
4278
    fi
 
4279
    # 10*(2^10) chars as input seems more than enough
 
4280
    test $ac_count -gt 10 && break
 
4281
  done
 
4282
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4283
esac
 
4284
 
 
4285
      $ac_path_FGREP_found && break 3
 
4286
    done
 
4287
  done
 
4288
  done
 
4289
IFS=$as_save_IFS
 
4290
  if test -z "$ac_cv_path_FGREP"; then
 
4291
    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
 
4292
  fi
 
4293
else
 
4294
  ac_cv_path_FGREP=$FGREP
 
4295
fi
 
4296
 
 
4297
   fi
 
4298
fi
 
4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
 
4300
$as_echo "$ac_cv_path_FGREP" >&6; }
 
4301
 FGREP="$ac_cv_path_FGREP"
 
4302
 
 
4303
 
 
4304
test -z "$GREP" && GREP=grep
 
4305
 
 
4306
    
 
4307
    
 
4308
    
 
4309
 
 
4310
 
 
4311
    
 
4312
    
 
4313
    
 
4314
 
 
4315
 
 
4316
    
 
4317
    
 
4318
    
 
4319
 
 
4320
 
 
4321
 
 
4322
 
 
4323
 
 
4324
@%:@ Check whether --with-gnu-ld was given.
 
4325
if test "${with_gnu_ld+set}" = set; then :
 
4326
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4327
else
 
4328
  with_gnu_ld=no
 
4329
fi
 
4330
 
 
4331
ac_prog=ld
 
4332
if test "$GCC" = yes; then
 
4333
  # Check if gcc -print-prog-name=ld gives a path.
 
4334
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
 
4335
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4336
  case $host in
 
4337
  *-*-mingw*)
 
4338
    # gcc leaves a trailing carriage return which upsets mingw
 
4339
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4340
  *)
 
4341
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4342
  esac
 
4343
  case $ac_prog in
 
4344
    # Accept absolute paths.
 
4345
    [\\/]* | ?:[\\/]*)
 
4346
      re_direlt='/[^/][^/]*/\.\./'
 
4347
      # Canonicalize the pathname of ld
 
4348
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
4349
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
4350
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
4351
      done
 
4352
      test -z "$LD" && LD="$ac_prog"
 
4353
      ;;
 
4354
  "")
 
4355
    # If it fails, then pretend we aren't using GCC.
 
4356
    ac_prog=ld
 
4357
    ;;
 
4358
  *)
 
4359
    # If it is relative, then search for the first ld in PATH.
 
4360
    with_gnu_ld=unknown
 
4361
    ;;
 
4362
  esac
 
4363
elif test "$with_gnu_ld" = yes; then
 
4364
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
 
4365
$as_echo_n "checking for GNU ld... " >&6; }
 
4366
else
 
4367
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
 
4368
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4369
fi
 
4370
if ${lt_cv_path_LD+:} false; then :
 
4371
  $as_echo_n "(cached) " >&6
 
4372
else
 
4373
  if test -z "$LD"; then
 
4374
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4375
  for ac_dir in $PATH; do
 
4376
    IFS="$lt_save_ifs"
 
4377
    test -z "$ac_dir" && ac_dir=.
 
4378
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4379
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4380
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4381
      # but apparently some variants of GNU ld only accept -v.
 
4382
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4383
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4384
      *GNU* | *'with BFD'*)
 
4385
        test "$with_gnu_ld" != no && break
 
4386
        ;;
 
4387
      *)
 
4388
        test "$with_gnu_ld" != yes && break
 
4389
        ;;
 
4390
      esac
 
4391
    fi
 
4392
  done
 
4393
  IFS="$lt_save_ifs"
 
4394
else
 
4395
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4396
fi
 
4397
fi
 
4398
 
 
4399
LD="$lt_cv_path_LD"
 
4400
if test -n "$LD"; then
 
4401
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
 
4402
$as_echo "$LD" >&6; }
 
4403
else
 
4404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4405
$as_echo "no" >&6; }
 
4406
fi
 
4407
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
 
4408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
 
4409
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4410
if ${lt_cv_prog_gnu_ld+:} false; then :
 
4411
  $as_echo_n "(cached) " >&6
 
4412
else
 
4413
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4414
case `$LD -v 2>&1 </dev/null` in
 
4415
*GNU* | *'with BFD'*)
 
4416
  lt_cv_prog_gnu_ld=yes
 
4417
  ;;
 
4418
*)
 
4419
  lt_cv_prog_gnu_ld=no
 
4420
  ;;
 
4421
esac
 
4422
fi
 
4423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
 
4424
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4425
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4426
 
 
4427
 
 
4428
 
 
4429
 
 
4430
    
 
4431
    
 
4432
    
 
4433
 
 
4434
 
 
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
 
4436
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
 
4437
if ${lt_cv_path_NM+:} false; then :
 
4438
  $as_echo_n "(cached) " >&6
 
4439
else
 
4440
  if test -n "$NM"; then
 
4441
  # Let the user override the test.
 
4442
  lt_cv_path_NM="$NM"
 
4443
else
 
4444
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4445
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4446
    lt_nm_to_check="$lt_nm_to_check nm"
 
4447
  fi
 
4448
  for lt_tmp_nm in $lt_nm_to_check; do
 
4449
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4450
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4451
      IFS="$lt_save_ifs"
 
4452
      test -z "$ac_dir" && ac_dir=.
 
4453
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4454
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4455
        # Check to see if the nm accepts a BSD-compat flag.
 
4456
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4457
        #   nm: unknown option "B" ignored
 
4458
        # Tru64's nm complains that /dev/null is an invalid object file
 
4459
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4460
        */dev/null* | *'Invalid file or object type'*)
 
4461
          lt_cv_path_NM="$tmp_nm -B"
 
4462
          break
 
4463
          ;;
 
4464
        *)
 
4465
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4466
          */dev/null*)
 
4467
            lt_cv_path_NM="$tmp_nm -p"
 
4468
            break
 
4469
            ;;
 
4470
          *)
 
4471
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4472
            continue # so that we can try to find one that supports BSD flags
 
4473
            ;;
 
4474
          esac
 
4475
          ;;
 
4476
        esac
 
4477
      fi
 
4478
    done
 
4479
    IFS="$lt_save_ifs"
 
4480
  done
 
4481
  : ${lt_cv_path_NM=no}
 
4482
fi
 
4483
fi
 
4484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
 
4485
$as_echo "$lt_cv_path_NM" >&6; }
 
4486
if test "$lt_cv_path_NM" != "no"; then
 
4487
  NM="$lt_cv_path_NM"
 
4488
else
 
4489
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
4490
  if test -n "$DUMPBIN"; then :
 
4491
    # Let the user override the test.
 
4492
  else
 
4493
    if test -n "$ac_tool_prefix"; then
 
4494
  for ac_prog in dumpbin "link -dump"
 
4495
  do
 
4496
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4497
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4499
$as_echo_n "checking for $ac_word... " >&6; }
 
4500
if ${ac_cv_prog_DUMPBIN+:} false; then :
 
4501
  $as_echo_n "(cached) " >&6
 
4502
else
 
4503
  if test -n "$DUMPBIN"; then
 
4504
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
4505
else
 
4506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4507
for as_dir in $PATH
 
4508
do
 
4509
  IFS=$as_save_IFS
 
4510
  test -z "$as_dir" && as_dir=.
 
4511
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4512
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4513
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
4514
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4515
    break 2
 
4516
  fi
 
4517
done
 
4518
  done
 
4519
IFS=$as_save_IFS
 
4520
 
 
4521
fi
 
4522
fi
 
4523
DUMPBIN=$ac_cv_prog_DUMPBIN
 
4524
if test -n "$DUMPBIN"; then
 
4525
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
 
4526
$as_echo "$DUMPBIN" >&6; }
 
4527
else
 
4528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4529
$as_echo "no" >&6; }
 
4530
fi
 
4531
 
 
4532
 
 
4533
    test -n "$DUMPBIN" && break
 
4534
  done
 
4535
fi
 
4536
if test -z "$DUMPBIN"; then
 
4537
  ac_ct_DUMPBIN=$DUMPBIN
 
4538
  for ac_prog in dumpbin "link -dump"
 
4539
do
 
4540
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4541
set dummy $ac_prog; ac_word=$2
 
4542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4543
$as_echo_n "checking for $ac_word... " >&6; }
 
4544
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
 
4545
  $as_echo_n "(cached) " >&6
 
4546
else
 
4547
  if test -n "$ac_ct_DUMPBIN"; then
 
4548
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
4549
else
 
4550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4551
for as_dir in $PATH
 
4552
do
 
4553
  IFS=$as_save_IFS
 
4554
  test -z "$as_dir" && as_dir=.
 
4555
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4556
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4557
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
4558
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4559
    break 2
 
4560
  fi
 
4561
done
 
4562
  done
 
4563
IFS=$as_save_IFS
 
4564
 
 
4565
fi
 
4566
fi
 
4567
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
4568
if test -n "$ac_ct_DUMPBIN"; then
 
4569
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
 
4570
$as_echo "$ac_ct_DUMPBIN" >&6; }
 
4571
else
 
4572
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4573
$as_echo "no" >&6; }
 
4574
fi
 
4575
 
 
4576
 
 
4577
  test -n "$ac_ct_DUMPBIN" && break
 
4578
done
 
4579
 
 
4580
  if test "x$ac_ct_DUMPBIN" = x; then
 
4581
    DUMPBIN=":"
 
4582
  else
 
4583
    case $cross_compiling:$ac_tool_warned in
 
4584
yes:)
 
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
4586
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
4587
ac_tool_warned=yes ;;
 
4588
esac
 
4589
    DUMPBIN=$ac_ct_DUMPBIN
 
4590
  fi
 
4591
fi
 
4592
 
 
4593
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
4594
    *COFF*)
 
4595
      DUMPBIN="$DUMPBIN -symbols"
 
4596
      ;;
 
4597
    *)
 
4598
      DUMPBIN=:
 
4599
      ;;
 
4600
    esac
 
4601
  fi
 
4602
  
 
4603
  if test "$DUMPBIN" != ":"; then
 
4604
    NM="$DUMPBIN"
 
4605
  fi
 
4606
fi
 
4607
test -z "$NM" && NM=nm
 
4608
 
 
4609
 
 
4610
    
 
4611
    
 
4612
    
 
4613
 
 
4614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
 
4615
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
 
4616
if ${lt_cv_nm_interface+:} false; then :
 
4617
  $as_echo_n "(cached) " >&6
 
4618
else
 
4619
  lt_cv_nm_interface="BSD nm"
 
4620
  echo "int some_variable = 0;" > conftest.$ac_ext
 
4621
  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
 
4622
  (eval "$ac_compile" 2>conftest.err)
 
4623
  cat conftest.err >&5
 
4624
  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
4625
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
4626
  cat conftest.err >&5
 
4627
  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
 
4628
  cat conftest.out >&5
 
4629
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
4630
    lt_cv_nm_interface="MS dumpbin"
 
4631
  fi
 
4632
  rm -f conftest*
 
4633
fi
 
4634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
 
4635
$as_echo "$lt_cv_nm_interface" >&6; }
 
4636
 
 
4637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
 
4638
$as_echo_n "checking whether ln -s works... " >&6; }
 
4639
LN_S=$as_ln_s
 
4640
if test "$LN_S" = "ln -s"; then
 
4641
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
4642
$as_echo "yes" >&6; }
 
4643
else
 
4644
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
 
4645
$as_echo "no, using $LN_S" >&6; }
 
4646
fi
 
4647
 
 
4648
# find the maximum length of command line arguments
 
4649
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
 
4650
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
4651
if ${lt_cv_sys_max_cmd_len+:} false; then :
 
4652
  $as_echo_n "(cached) " >&6
 
4653
else
 
4654
    i=0
 
4655
  teststring="ABCD"
 
4656
 
 
4657
  case $build_os in
 
4658
  msdosdjgpp*)
 
4659
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4660
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4661
    # during glob expansion).  Even if it were fixed, the result of this
 
4662
    # check would be larger than it should be.
 
4663
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4664
    ;;
 
4665
 
 
4666
  gnu*)
 
4667
    # Under GNU Hurd, this test is not required because there is
 
4668
    # no limit to the length of command line arguments.
 
4669
    # Libtool will interpret -1 as no limit whatsoever
 
4670
    lt_cv_sys_max_cmd_len=-1;
 
4671
    ;;
 
4672
 
 
4673
  cygwin* | mingw* | cegcc*)
 
4674
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4675
    # about 5 minutes as the teststring grows exponentially.
 
4676
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4677
    # you end up with a "frozen" computer, even though with patience
 
4678
    # the test eventually succeeds (with a max line length of 256k).
 
4679
    # Instead, let's just punt: use the minimum linelength reported by
 
4680
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4681
    lt_cv_sys_max_cmd_len=8192;
 
4682
    ;;
 
4683
 
 
4684
  mint*)
 
4685
    # On MiNT this can take a long time and run out of memory.
 
4686
    lt_cv_sys_max_cmd_len=8192;
 
4687
    ;;
 
4688
 
 
4689
  amigaos*)
 
4690
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4691
    # So we just punt and use a minimum line length of 8192.
 
4692
    lt_cv_sys_max_cmd_len=8192;
 
4693
    ;;
 
4694
 
 
4695
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4696
    # This has been around since 386BSD, at least.  Likely further.
 
4697
    if test -x /sbin/sysctl; then
 
4698
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4699
    elif test -x /usr/sbin/sysctl; then
 
4700
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4701
    else
 
4702
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4703
    fi
 
4704
    # And add a safety zone
 
4705
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4706
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4707
    ;;
 
4708
 
 
4709
  interix*)
 
4710
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4711
    lt_cv_sys_max_cmd_len=196608
 
4712
    ;;
 
4713
 
 
4714
  os2*)
 
4715
    # The test takes a long time on OS/2.
 
4716
    lt_cv_sys_max_cmd_len=8192
 
4717
    ;;
 
4718
 
 
4719
  osf*)
 
4720
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4721
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4722
    # nice to cause kernel panics so lets avoid the loop below.
 
4723
    # First set a reasonable default.
 
4724
    lt_cv_sys_max_cmd_len=16384
 
4725
    #
 
4726
    if test -x /sbin/sysconfig; then
 
4727
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4728
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4729
      esac
 
4730
    fi
 
4731
    ;;
 
4732
  sco3.2v5*)
 
4733
    lt_cv_sys_max_cmd_len=102400
 
4734
    ;;
 
4735
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4736
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4737
    if test -n "$kargmax"; then
 
4738
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
4739
    else
 
4740
      lt_cv_sys_max_cmd_len=32768
 
4741
    fi
 
4742
    ;;
 
4743
  *)
 
4744
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
4745
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
4746
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4747
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4748
    else
 
4749
      # Make teststring a little bigger before we do anything with it.
 
4750
      # a 1K string should be a reasonable start.
 
4751
      for i in 1 2 3 4 5 6 7 8 ; do
 
4752
        teststring=$teststring$teststring
 
4753
      done
 
4754
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4755
      # If test is not a shell built-in, we'll probably end up computing a
 
4756
      # maximum length that is only half of the actual maximum length, but
 
4757
      # we can't tell.
 
4758
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
4759
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 
4760
              test $i != 17 # 1/2 MB should be enough
 
4761
      do
 
4762
        i=`expr $i + 1`
 
4763
        teststring=$teststring$teststring
 
4764
      done
 
4765
      # Only check the string length outside the loop.
 
4766
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
4767
      teststring=
 
4768
      # Add a significant safety factor because C++ compilers can tack on
 
4769
      # massive amounts of additional arguments before passing them to the
 
4770
      # linker.  It appears as though 1/2 is a usable value.
 
4771
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4772
    fi
 
4773
    ;;
 
4774
  esac
 
4775
 
 
4776
fi
 
4777
 
 
4778
if test -n $lt_cv_sys_max_cmd_len ; then
 
4779
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
 
4780
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
4781
else
 
4782
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
 
4783
$as_echo "none" >&6; }
 
4784
fi
 
4785
max_cmd_len=$lt_cv_sys_max_cmd_len
 
4786
 
 
4787
    
 
4788
    
 
4789
    
 
4790
 
 
4791
 
 
4792
: ${CP="cp -f"}
 
4793
: ${MV="mv -f"}
 
4794
: ${RM="rm -f"}
 
4795
 
 
4796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
 
4797
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
 
4798
# Try some XSI features
 
4799
xsi_shell=no
 
4800
( _lt_dummy="a/b/c"
 
4801
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
 
4802
      = c,a/b,b/c, \
 
4803
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
4804
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
4805
  && xsi_shell=yes
 
4806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
 
4807
$as_echo "$xsi_shell" >&6; }
 
4808
 
 
4809
 
 
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
 
4811
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
 
4812
lt_shell_append=no
 
4813
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
4814
    >/dev/null 2>&1 \
 
4815
  && lt_shell_append=yes
 
4816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
 
4817
$as_echo "$lt_shell_append" >&6; }
 
4818
 
 
4819
 
 
4820
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
4821
  lt_unset=unset
 
4822
else
 
4823
  lt_unset=false
 
4824
fi
 
4825
 
 
4826
    
 
4827
    
 
4828
    
 
4829
 
 
4830
# test EBCDIC or ASCII
 
4831
case `echo X|tr X '\101'` in
 
4832
 A) # ASCII based system
 
4833
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
4834
  lt_SP2NL='tr \040 \012'
 
4835
  lt_NL2SP='tr \015\012 \040\040'
 
4836
  ;;
 
4837
 *) # EBCDIC based system
 
4838
  lt_SP2NL='tr \100 \n'
 
4839
  lt_NL2SP='tr \r\n \100\100'
 
4840
  ;;
 
4841
esac
 
4842
 
 
4843
    
 
4844
    
 
4845
    
 
4846
 
 
4847
    
 
4848
    
 
4849
    
 
4850
 
 
4851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
 
4852
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
 
4853
if ${lt_cv_to_host_file_cmd+:} false; then :
 
4854
  $as_echo_n "(cached) " >&6
 
4855
else
 
4856
  case $host in
 
4857
  *-*-mingw* )
 
4858
    case $build in
 
4859
      *-*-mingw* ) # actually msys
 
4860
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 
4861
        ;;
 
4862
      *-*-cygwin* )
 
4863
        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 
4864
        ;;
 
4865
      * ) # otherwise, assume *nix
 
4866
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 
4867
        ;;
 
4868
    esac
 
4869
    ;;
 
4870
  *-*-cygwin* )
 
4871
    case $build in
 
4872
      *-*-mingw* ) # actually msys
 
4873
        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 
4874
        ;;
 
4875
      *-*-cygwin* )
 
4876
        lt_cv_to_host_file_cmd=func_convert_file_noop
 
4877
        ;;
 
4878
      * ) # otherwise, assume *nix
 
4879
        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 
4880
        ;;
 
4881
    esac
 
4882
    ;;
 
4883
  * ) # unhandled hosts (and "normal" native builds)
 
4884
    lt_cv_to_host_file_cmd=func_convert_file_noop
 
4885
    ;;
 
4886
esac
 
4887
 
 
4888
fi
 
4889
 
 
4890
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
4891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
 
4892
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
 
4893
 
 
4894
    
 
4895
    
 
4896
    
 
4897
 
 
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
 
4899
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
 
4900
if ${lt_cv_to_tool_file_cmd+:} false; then :
 
4901
  $as_echo_n "(cached) " >&6
 
4902
else
 
4903
  #assume ordinary cross tools, or native build.
 
4904
lt_cv_to_tool_file_cmd=func_convert_file_noop
 
4905
case $host in
 
4906
  *-*-mingw* )
 
4907
    case $build in
 
4908
      *-*-mingw* ) # actually msys
 
4909
        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 
4910
        ;;
 
4911
    esac
 
4912
    ;;
 
4913
esac
 
4914
 
 
4915
fi
 
4916
 
 
4917
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
 
4919
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
 
4920
 
 
4921
    
 
4922
    
 
4923
    
 
4924
 
 
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
 
4926
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4927
if ${lt_cv_ld_reload_flag+:} false; then :
 
4928
  $as_echo_n "(cached) " >&6
 
4929
else
 
4930
  lt_cv_ld_reload_flag='-r'
 
4931
fi
 
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
 
4933
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4934
reload_flag=$lt_cv_ld_reload_flag
 
4935
case $reload_flag in
 
4936
"" | " "*) ;;
 
4937
*) reload_flag=" $reload_flag" ;;
 
4938
esac
 
4939
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4940
case $host_os in
 
4941
  cygwin* | mingw* | pw32* | cegcc*)
 
4942
    if test "$GCC" != yes; then
 
4943
      reload_cmds=false
 
4944
    fi
 
4945
    ;;
 
4946
  darwin*)
 
4947
    if test "$GCC" = yes; then
 
4948
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4949
    else
 
4950
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4951
    fi
 
4952
    ;;
 
4953
esac
 
4954
 
 
4955
    
 
4956
    
 
4957
    
 
4958
 
 
4959
    
 
4960
    
 
4961
    
 
4962
 
 
4963
if test -n "$ac_tool_prefix"; then
 
4964
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4965
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
4967
$as_echo_n "checking for $ac_word... " >&6; }
 
4968
if ${ac_cv_prog_OBJDUMP+:} false; then :
 
4969
  $as_echo_n "(cached) " >&6
 
4970
else
 
4971
  if test -n "$OBJDUMP"; then
 
4972
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4973
else
 
4974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4975
for as_dir in $PATH
 
4976
do
 
4977
  IFS=$as_save_IFS
 
4978
  test -z "$as_dir" && as_dir=.
 
4979
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4980
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4981
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4982
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4983
    break 2
 
4984
  fi
 
4985
done
 
4986
  done
 
4987
IFS=$as_save_IFS
 
4988
 
 
4989
fi
 
4990
fi
 
4991
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4992
if test -n "$OBJDUMP"; then
 
4993
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
 
4994
$as_echo "$OBJDUMP" >&6; }
 
4995
else
 
4996
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4997
$as_echo "no" >&6; }
 
4998
fi
 
4999
 
 
5000
 
 
5001
fi
 
5002
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5003
  ac_ct_OBJDUMP=$OBJDUMP
 
5004
  # Extract the first word of "objdump", so it can be a program name with args.
 
5005
set dummy objdump; ac_word=$2
 
5006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5007
$as_echo_n "checking for $ac_word... " >&6; }
 
5008
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
 
5009
  $as_echo_n "(cached) " >&6
 
5010
else
 
5011
  if test -n "$ac_ct_OBJDUMP"; then
 
5012
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5013
else
 
5014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5015
for as_dir in $PATH
 
5016
do
 
5017
  IFS=$as_save_IFS
 
5018
  test -z "$as_dir" && as_dir=.
 
5019
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5020
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5021
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5022
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5023
    break 2
 
5024
  fi
 
5025
done
 
5026
  done
 
5027
IFS=$as_save_IFS
 
5028
 
 
5029
fi
 
5030
fi
 
5031
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5032
if test -n "$ac_ct_OBJDUMP"; then
 
5033
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
 
5034
$as_echo "$ac_ct_OBJDUMP" >&6; }
 
5035
else
 
5036
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5037
$as_echo "no" >&6; }
 
5038
fi
 
5039
 
 
5040
  if test "x$ac_ct_OBJDUMP" = x; then
 
5041
    OBJDUMP="false"
 
5042
  else
 
5043
    case $cross_compiling:$ac_tool_warned in
 
5044
yes:)
 
5045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5047
ac_tool_warned=yes ;;
 
5048
esac
 
5049
    OBJDUMP=$ac_ct_OBJDUMP
 
5050
  fi
 
5051
else
 
5052
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5053
fi
 
5054
 
 
5055
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5056
 
 
5057
    
 
5058
    
 
5059
    
 
5060
 
 
5061
 
 
5062
 
 
5063
 
 
5064
 
 
5065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
 
5066
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5067
if ${lt_cv_deplibs_check_method+:} false; then :
 
5068
  $as_echo_n "(cached) " >&6
 
5069
else
 
5070
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5071
lt_cv_file_magic_test_file=
 
5072
lt_cv_deplibs_check_method='unknown'
 
5073
# Need to set the preceding variable on all platforms that support
 
5074
# interlibrary dependencies.
 
5075
# 'none' -- dependencies not supported.
 
5076
# `unknown' -- same as none, but documents that we really don't know.
 
5077
# 'pass_all' -- all dependencies passed with no checks.
 
5078
# 'test_compile' -- check by making test program.
 
5079
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5080
# which responds to the $file_magic_cmd with a given extended regex.
 
5081
# If you have `file' or equivalent on your system and you're not sure
 
5082
# whether `pass_all' will *always* work, you probably want this one.
 
5083
 
 
5084
case $host_os in
 
5085
aix[4-9]*)
 
5086
  lt_cv_deplibs_check_method=pass_all
 
5087
  ;;
 
5088
 
 
5089
beos*)
 
5090
  lt_cv_deplibs_check_method=pass_all
 
5091
  ;;
 
5092
 
 
5093
bsdi[45]*)
 
5094
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5095
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5096
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5097
  ;;
 
5098
 
 
5099
cygwin*)
 
5100
  # func_win32_libid is a shell function defined in ltmain.sh
 
5101
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5102
  lt_cv_file_magic_cmd='func_win32_libid'
 
5103
  ;;
 
5104
 
 
5105
mingw* | pw32*)
 
5106
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5107
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5108
  # unless we find 'file', for example because we are cross-compiling.
 
5109
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
 
5110
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
5111
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5112
    lt_cv_file_magic_cmd='func_win32_libid'
 
5113
  else
 
5114
    # Keep this pattern in sync with the one in func_win32_libid.
 
5115
    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 
5116
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5117
  fi
 
5118
  ;;
 
5119
 
 
5120
cegcc*)
 
5121
  # use the weaker test based on 'objdump'. See mingw*.
 
5122
  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 
5123
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5124
  ;;
 
5125
 
 
5126
darwin* | rhapsody*)
 
5127
  lt_cv_deplibs_check_method=pass_all
 
5128
  ;;
 
5129
 
 
5130
freebsd* | dragonfly*)
 
5131
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5132
    case $host_cpu in
 
5133
    i*86 )
 
5134
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5135
      # Let's accept both of them until this is cleared up.
 
5136
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5137
      lt_cv_file_magic_cmd=/usr/bin/file
 
5138
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5139
      ;;
 
5140
    esac
 
5141
  else
 
5142
    lt_cv_deplibs_check_method=pass_all
 
5143
  fi
 
5144
  ;;
 
5145
 
 
5146
gnu*)
 
5147
  lt_cv_deplibs_check_method=pass_all
 
5148
  ;;
 
5149
 
 
5150
haiku*)
 
5151
  lt_cv_deplibs_check_method=pass_all
 
5152
  ;;
 
5153
 
 
5154
hpux10.20* | hpux11*)
 
5155
  lt_cv_file_magic_cmd=/usr/bin/file
 
5156
  case $host_cpu in
 
5157
  ia64*)
 
5158
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5159
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5160
    ;;
 
5161
  hppa*64*)
 
5162
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
 
5163
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5164
    ;;
 
5165
  *)
 
5166
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
 
5167
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5168
    ;;
 
5169
  esac
 
5170
  ;;
 
5171
 
 
5172
interix[3-9]*)
 
5173
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5174
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5175
  ;;
 
5176
 
 
5177
irix5* | irix6* | nonstopux*)
 
5178
  case $LD in
 
5179
  *-32|*"-32 ") libmagic=32-bit;;
 
5180
  *-n32|*"-n32 ") libmagic=N32;;
 
5181
  *-64|*"-64 ") libmagic=64-bit;;
 
5182
  *) libmagic=never-match;;
 
5183
  esac
 
5184
  lt_cv_deplibs_check_method=pass_all
 
5185
  ;;
 
5186
 
 
5187
# This must be glibc/ELF.
 
5188
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
5189
  lt_cv_deplibs_check_method=pass_all
 
5190
  ;;
 
5191
 
 
5192
netbsd*)
 
5193
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
5194
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5195
  else
 
5196
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5197
  fi
 
5198
  ;;
 
5199
 
 
5200
newos6*)
 
5201
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5202
  lt_cv_file_magic_cmd=/usr/bin/file
 
5203
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5204
  ;;
 
5205
 
 
5206
*nto* | *qnx*)
 
5207
  lt_cv_deplibs_check_method=pass_all
 
5208
  ;;
 
5209
 
 
5210
openbsd*)
 
5211
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5212
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5213
  else
 
5214
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5215
  fi
 
5216
  ;;
 
5217
 
 
5218
osf3* | osf4* | osf5*)
 
5219
  lt_cv_deplibs_check_method=pass_all
 
5220
  ;;
 
5221
 
 
5222
rdos*)
 
5223
  lt_cv_deplibs_check_method=pass_all
 
5224
  ;;
 
5225
 
 
5226
solaris*)
 
5227
  lt_cv_deplibs_check_method=pass_all
 
5228
  ;;
 
5229
 
 
5230
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5231
  lt_cv_deplibs_check_method=pass_all
 
5232
  ;;
 
5233
 
 
5234
sysv4 | sysv4.3*)
 
5235
  case $host_vendor in
 
5236
  motorola)
 
5237
    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]'
 
5238
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5239
    ;;
 
5240
  ncr)
 
5241
    lt_cv_deplibs_check_method=pass_all
 
5242
    ;;
 
5243
  sequent)
 
5244
    lt_cv_file_magic_cmd='/bin/file'
 
5245
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5246
    ;;
 
5247
  sni)
 
5248
    lt_cv_file_magic_cmd='/bin/file'
 
5249
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5250
    lt_cv_file_magic_test_file=/lib/libc.so
 
5251
    ;;
 
5252
  siemens)
 
5253
    lt_cv_deplibs_check_method=pass_all
 
5254
    ;;
 
5255
  pc)
 
5256
    lt_cv_deplibs_check_method=pass_all
 
5257
    ;;
 
5258
  esac
 
5259
  ;;
 
5260
 
 
5261
tpf*)
 
5262
  lt_cv_deplibs_check_method=pass_all
 
5263
  ;;
 
5264
esac
 
5265
 
 
5266
fi
 
5267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
 
5268
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5269
 
 
5270
file_magic_glob=
 
5271
want_nocaseglob=no
 
5272
if test "$build" = "$host"; then
 
5273
  case $host_os in
 
5274
  mingw* | pw32*)
 
5275
    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 
5276
      want_nocaseglob=yes
 
5277
    else
 
5278
      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
 
5279
    fi
 
5280
    ;;
 
5281
  esac
 
5282
fi
 
5283
 
 
5284
file_magic_cmd=$lt_cv_file_magic_cmd
 
5285
deplibs_check_method=$lt_cv_deplibs_check_method
 
5286
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5287
 
 
5288
 
 
5289
    
 
5290
    
 
5291
    
 
5292
 
 
5293
 
 
5294
    
 
5295
    
 
5296
    
 
5297
 
 
5298
 
 
5299
    
 
5300
    
 
5301
    
 
5302
 
 
5303
 
 
5304
    
 
5305
    
 
5306
    
 
5307
 
 
5308
 
 
5309
if test -n "$ac_tool_prefix"; then
 
5310
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5311
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5313
$as_echo_n "checking for $ac_word... " >&6; }
 
5314
if ${ac_cv_prog_DLLTOOL+:} false; then :
 
5315
  $as_echo_n "(cached) " >&6
 
5316
else
 
5317
  if test -n "$DLLTOOL"; then
 
5318
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5319
else
 
5320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5321
for as_dir in $PATH
 
5322
do
 
5323
  IFS=$as_save_IFS
 
5324
  test -z "$as_dir" && as_dir=.
 
5325
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5326
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5327
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5328
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5329
    break 2
 
5330
  fi
 
5331
done
 
5332
  done
 
5333
IFS=$as_save_IFS
 
5334
 
 
5335
fi
 
5336
fi
 
5337
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5338
if test -n "$DLLTOOL"; then
 
5339
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
 
5340
$as_echo "$DLLTOOL" >&6; }
 
5341
else
 
5342
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5343
$as_echo "no" >&6; }
 
5344
fi
 
5345
 
 
5346
 
 
5347
fi
 
5348
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5349
  ac_ct_DLLTOOL=$DLLTOOL
 
5350
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5351
set dummy dlltool; ac_word=$2
 
5352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5353
$as_echo_n "checking for $ac_word... " >&6; }
 
5354
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
 
5355
  $as_echo_n "(cached) " >&6
 
5356
else
 
5357
  if test -n "$ac_ct_DLLTOOL"; then
 
5358
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5359
else
 
5360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5361
for as_dir in $PATH
 
5362
do
 
5363
  IFS=$as_save_IFS
 
5364
  test -z "$as_dir" && as_dir=.
 
5365
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5366
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5367
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5368
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5369
    break 2
 
5370
  fi
 
5371
done
 
5372
  done
 
5373
IFS=$as_save_IFS
 
5374
 
 
5375
fi
 
5376
fi
 
5377
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5378
if test -n "$ac_ct_DLLTOOL"; then
 
5379
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
 
5380
$as_echo "$ac_ct_DLLTOOL" >&6; }
 
5381
else
 
5382
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5383
$as_echo "no" >&6; }
 
5384
fi
 
5385
 
 
5386
  if test "x$ac_ct_DLLTOOL" = x; then
 
5387
    DLLTOOL="false"
 
5388
  else
 
5389
    case $cross_compiling:$ac_tool_warned in
 
5390
yes:)
 
5391
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5392
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5393
ac_tool_warned=yes ;;
 
5394
esac
 
5395
    DLLTOOL=$ac_ct_DLLTOOL
 
5396
  fi
 
5397
else
 
5398
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5399
fi
 
5400
 
 
5401
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5402
 
 
5403
    
 
5404
    
 
5405
    
 
5406
 
 
5407
 
 
5408
 
 
5409
 
 
5410
 
 
5411
 
 
5412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
 
5413
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
 
5414
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
 
5415
  $as_echo_n "(cached) " >&6
 
5416
else
 
5417
  lt_cv_sharedlib_from_linklib_cmd='unknown'
 
5418
 
 
5419
case $host_os in
 
5420
cygwin* | mingw* | pw32* | cegcc*)
 
5421
  # two different shell functions defined in ltmain.sh
 
5422
  # decide which to use based on capabilities of $DLLTOOL
 
5423
  case `$DLLTOOL --help 2>&1` in
 
5424
  *--identify-strict*)
 
5425
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 
5426
    ;;
 
5427
  *)
 
5428
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 
5429
    ;;
 
5430
  esac
 
5431
  ;;
 
5432
*)
 
5433
  # fallback: assume linklib IS sharedlib
 
5434
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
5435
  ;;
 
5436
esac
 
5437
 
 
5438
fi
 
5439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
 
5440
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
 
5441
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 
5442
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 
5443
 
 
5444
 
 
5445
    
 
5446
    
 
5447
    
 
5448
 
 
5449
 
 
5450
 
 
5451
if test -n "$ac_tool_prefix"; then
 
5452
  for ac_prog in ar
 
5453
  do
 
5454
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5455
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5457
$as_echo_n "checking for $ac_word... " >&6; }
 
5458
if ${ac_cv_prog_AR+:} false; then :
 
5459
  $as_echo_n "(cached) " >&6
 
5460
else
 
5461
  if test -n "$AR"; then
 
5462
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5463
else
 
5464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5465
for as_dir in $PATH
 
5466
do
 
5467
  IFS=$as_save_IFS
 
5468
  test -z "$as_dir" && as_dir=.
 
5469
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5470
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5471
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 
5472
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5473
    break 2
 
5474
  fi
 
5475
done
 
5476
  done
 
5477
IFS=$as_save_IFS
 
5478
 
 
5479
fi
 
5480
fi
 
5481
AR=$ac_cv_prog_AR
 
5482
if test -n "$AR"; then
 
5483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 
5484
$as_echo "$AR" >&6; }
 
5485
else
 
5486
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5487
$as_echo "no" >&6; }
 
5488
fi
 
5489
 
 
5490
 
 
5491
    test -n "$AR" && break
 
5492
  done
 
5493
fi
 
5494
if test -z "$AR"; then
 
5495
  ac_ct_AR=$AR
 
5496
  for ac_prog in ar
 
5497
do
 
5498
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5499
set dummy $ac_prog; ac_word=$2
 
5500
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5501
$as_echo_n "checking for $ac_word... " >&6; }
 
5502
if ${ac_cv_prog_ac_ct_AR+:} false; then :
 
5503
  $as_echo_n "(cached) " >&6
 
5504
else
 
5505
  if test -n "$ac_ct_AR"; then
 
5506
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5507
else
 
5508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5509
for as_dir in $PATH
 
5510
do
 
5511
  IFS=$as_save_IFS
 
5512
  test -z "$as_dir" && as_dir=.
 
5513
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5514
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5515
    ac_cv_prog_ac_ct_AR="$ac_prog"
 
5516
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5517
    break 2
 
5518
  fi
 
5519
done
 
5520
  done
 
5521
IFS=$as_save_IFS
 
5522
 
 
5523
fi
 
5524
fi
 
5525
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5526
if test -n "$ac_ct_AR"; then
 
5527
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 
5528
$as_echo "$ac_ct_AR" >&6; }
 
5529
else
 
5530
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5531
$as_echo "no" >&6; }
 
5532
fi
 
5533
 
 
5534
 
 
5535
  test -n "$ac_ct_AR" && break
 
5536
done
 
5537
 
 
5538
  if test "x$ac_ct_AR" = x; then
 
5539
    AR="false"
 
5540
  else
 
5541
    case $cross_compiling:$ac_tool_warned in
 
5542
yes:)
 
5543
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5544
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5545
ac_tool_warned=yes ;;
 
5546
esac
 
5547
    AR=$ac_ct_AR
 
5548
  fi
 
5549
fi
 
5550
 
 
5551
: ${AR=ar}
 
5552
: ${AR_FLAGS=cru}
 
5553
 
 
5554
    
 
5555
    
 
5556
    
 
5557
 
 
5558
 
 
5559
    
 
5560
    
 
5561
    
 
5562
 
 
5563
 
 
5564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
 
5565
$as_echo_n "checking for archiver @FILE support... " >&6; }
 
5566
if ${lt_cv_ar_at_file+:} false; then :
 
5567
  $as_echo_n "(cached) " >&6
 
5568
else
 
5569
  lt_cv_ar_at_file=no
 
5570
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
5571
/* end confdefs.h.  */
 
5572
 
 
5573
int
 
5574
main ()
 
5575
{
 
5576
 
 
5577
  ;
 
5578
  return 0;
 
5579
}
 
5580
_ACEOF
 
5581
if ac_fn_c_try_compile "$LINENO"; then :
 
5582
  echo conftest.$ac_objext > conftest.lst
 
5583
      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
 
5584
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5585
  (eval $lt_ar_try) 2>&5
 
5586
  ac_status=$?
 
5587
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5588
  test $ac_status = 0; }
 
5589
      if test "$ac_status" -eq 0; then
 
5590
        # Ensure the archiver fails upon bogus file names.
 
5591
        rm -f conftest.$ac_objext libconftest.a
 
5592
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
 
5593
  (eval $lt_ar_try) 2>&5
 
5594
  ac_status=$?
 
5595
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
5596
  test $ac_status = 0; }
 
5597
        if test "$ac_status" -ne 0; then
 
5598
          lt_cv_ar_at_file=@
 
5599
        fi
 
5600
      fi
 
5601
      rm -f conftest.* libconftest.a
 
5602
     
 
5603
fi
 
5604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5605
  
 
5606
fi
 
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
 
5608
$as_echo "$lt_cv_ar_at_file" >&6; }
 
5609
 
 
5610
if test "x$lt_cv_ar_at_file" = xno; then
 
5611
  archiver_list_spec=
 
5612
else
 
5613
  archiver_list_spec=$lt_cv_ar_at_file
 
5614
fi
 
5615
 
 
5616
    
 
5617
    
 
5618
    
 
5619
 
 
5620
 
 
5621
 
 
5622
if test -n "$ac_tool_prefix"; then
 
5623
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5624
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5626
$as_echo_n "checking for $ac_word... " >&6; }
 
5627
if ${ac_cv_prog_STRIP+:} false; then :
 
5628
  $as_echo_n "(cached) " >&6
 
5629
else
 
5630
  if test -n "$STRIP"; then
 
5631
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5632
else
 
5633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5634
for as_dir in $PATH
 
5635
do
 
5636
  IFS=$as_save_IFS
 
5637
  test -z "$as_dir" && as_dir=.
 
5638
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5639
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5640
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5641
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5642
    break 2
 
5643
  fi
 
5644
done
 
5645
  done
 
5646
IFS=$as_save_IFS
 
5647
 
 
5648
fi
 
5649
fi
 
5650
STRIP=$ac_cv_prog_STRIP
 
5651
if test -n "$STRIP"; then
 
5652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 
5653
$as_echo "$STRIP" >&6; }
 
5654
else
 
5655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5656
$as_echo "no" >&6; }
 
5657
fi
 
5658
 
 
5659
 
 
5660
fi
 
5661
if test -z "$ac_cv_prog_STRIP"; then
 
5662
  ac_ct_STRIP=$STRIP
 
5663
  # Extract the first word of "strip", so it can be a program name with args.
 
5664
set dummy strip; ac_word=$2
 
5665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5666
$as_echo_n "checking for $ac_word... " >&6; }
 
5667
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
 
5668
  $as_echo_n "(cached) " >&6
 
5669
else
 
5670
  if test -n "$ac_ct_STRIP"; then
 
5671
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5672
else
 
5673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5674
for as_dir in $PATH
 
5675
do
 
5676
  IFS=$as_save_IFS
 
5677
  test -z "$as_dir" && as_dir=.
 
5678
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5679
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5680
    ac_cv_prog_ac_ct_STRIP="strip"
 
5681
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5682
    break 2
 
5683
  fi
 
5684
done
 
5685
  done
 
5686
IFS=$as_save_IFS
 
5687
 
 
5688
fi
 
5689
fi
 
5690
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5691
if test -n "$ac_ct_STRIP"; then
 
5692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 
5693
$as_echo "$ac_ct_STRIP" >&6; }
 
5694
else
 
5695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5696
$as_echo "no" >&6; }
 
5697
fi
 
5698
 
 
5699
  if test "x$ac_ct_STRIP" = x; then
 
5700
    STRIP=":"
 
5701
  else
 
5702
    case $cross_compiling:$ac_tool_warned in
 
5703
yes:)
 
5704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5706
ac_tool_warned=yes ;;
 
5707
esac
 
5708
    STRIP=$ac_ct_STRIP
 
5709
  fi
 
5710
else
 
5711
  STRIP="$ac_cv_prog_STRIP"
 
5712
fi
 
5713
 
 
5714
test -z "$STRIP" && STRIP=:
 
5715
 
 
5716
    
 
5717
    
 
5718
    
 
5719
 
 
5720
 
 
5721
if test -n "$ac_tool_prefix"; then
 
5722
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5723
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5724
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5725
$as_echo_n "checking for $ac_word... " >&6; }
 
5726
if ${ac_cv_prog_RANLIB+:} false; then :
 
5727
  $as_echo_n "(cached) " >&6
 
5728
else
 
5729
  if test -n "$RANLIB"; then
 
5730
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5731
else
 
5732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5733
for as_dir in $PATH
 
5734
do
 
5735
  IFS=$as_save_IFS
 
5736
  test -z "$as_dir" && as_dir=.
 
5737
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5738
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5739
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5740
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5741
    break 2
 
5742
  fi
 
5743
done
 
5744
  done
 
5745
IFS=$as_save_IFS
 
5746
 
 
5747
fi
 
5748
fi
 
5749
RANLIB=$ac_cv_prog_RANLIB
 
5750
if test -n "$RANLIB"; then
 
5751
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 
5752
$as_echo "$RANLIB" >&6; }
 
5753
else
 
5754
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5755
$as_echo "no" >&6; }
 
5756
fi
 
5757
 
 
5758
 
 
5759
fi
 
5760
if test -z "$ac_cv_prog_RANLIB"; then
 
5761
  ac_ct_RANLIB=$RANLIB
 
5762
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5763
set dummy ranlib; ac_word=$2
 
5764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
5765
$as_echo_n "checking for $ac_word... " >&6; }
 
5766
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
 
5767
  $as_echo_n "(cached) " >&6
 
5768
else
 
5769
  if test -n "$ac_ct_RANLIB"; then
 
5770
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5771
else
 
5772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5773
for as_dir in $PATH
 
5774
do
 
5775
  IFS=$as_save_IFS
 
5776
  test -z "$as_dir" && as_dir=.
 
5777
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5778
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5779
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5780
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5781
    break 2
 
5782
  fi
 
5783
done
 
5784
  done
 
5785
IFS=$as_save_IFS
 
5786
 
 
5787
fi
 
5788
fi
 
5789
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5790
if test -n "$ac_ct_RANLIB"; then
 
5791
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 
5792
$as_echo "$ac_ct_RANLIB" >&6; }
 
5793
else
 
5794
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
5795
$as_echo "no" >&6; }
 
5796
fi
 
5797
 
 
5798
  if test "x$ac_ct_RANLIB" = x; then
 
5799
    RANLIB=":"
 
5800
  else
 
5801
    case $cross_compiling:$ac_tool_warned in
 
5802
yes:)
 
5803
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
5804
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5805
ac_tool_warned=yes ;;
 
5806
esac
 
5807
    RANLIB=$ac_ct_RANLIB
 
5808
  fi
 
5809
else
 
5810
  RANLIB="$ac_cv_prog_RANLIB"
 
5811
fi
 
5812
 
 
5813
test -z "$RANLIB" && RANLIB=:
 
5814
 
 
5815
    
 
5816
    
 
5817
    
 
5818
 
 
5819
 
 
5820
# Determine commands to create old-style static archives.
 
5821
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
5822
old_postinstall_cmds='chmod 644 $oldlib'
 
5823
old_postuninstall_cmds=
 
5824
 
 
5825
if test -n "$RANLIB"; then
 
5826
  case $host_os in
 
5827
  openbsd*)
 
5828
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 
5829
    ;;
 
5830
  *)
 
5831
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 
5832
    ;;
 
5833
  esac
 
5834
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 
5835
fi
 
5836
 
 
5837
case $host_os in
 
5838
  darwin*)
 
5839
    lock_old_archive_extraction=yes ;;
 
5840
  *)
 
5841
    lock_old_archive_extraction=no ;;
 
5842
esac
 
5843
 
 
5844
    
 
5845
    
 
5846
    
 
5847
 
 
5848
 
 
5849
    
 
5850
    
 
5851
    
 
5852
 
 
5853
 
 
5854
    
 
5855
    
 
5856
    
 
5857
 
 
5858
 
 
5859
    
 
5860
    
 
5861
    
 
5862
 
 
5863
 
 
5864
 
 
5865
 
 
5866
    
 
5867
    
 
5868
    
 
5869
 
 
5870
    
 
5871
    
 
5872
    
 
5873
 
 
5874
    
 
5875
    
 
5876
    
 
5877
 
 
5878
    
 
5879
    
 
5880
    
 
5881
 
 
5882
# If no C compiler was specified, use CC.
 
5883
LTCC=${LTCC-"$CC"}
 
5884
 
 
5885
# If no C compiler flags were specified, use CFLAGS.
 
5886
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5887
 
 
5888
# Allow CC to be a program name with arguments.
 
5889
compiler=$CC
 
5890
 
 
5891
 
 
5892
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5893
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
 
5894
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
5895
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
 
5896
  $as_echo_n "(cached) " >&6
 
5897
else
 
5898
  
 
5899
# These are sane defaults that work on at least a few old systems.
 
5900
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5901
 
 
5902
# Character class describing NM global symbol codes.
 
5903
symcode='[BCDEGRST]'
 
5904
 
 
5905
# Regexp to match symbols that can be accessed directly from C.
 
5906
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5907
 
 
5908
# Define system-specific variables.
 
5909
case $host_os in
 
5910
aix*)
 
5911
  symcode='[BCDT]'
 
5912
  ;;
 
5913
cygwin* | mingw* | pw32* | cegcc*)
 
5914
  symcode='[ABCDGISTW]'
 
5915
  ;;
 
5916
hpux*)
 
5917
  if test "$host_cpu" = ia64; then
 
5918
    symcode='[ABCDEGRST]'
 
5919
  fi
 
5920
  ;;
 
5921
irix* | nonstopux*)
 
5922
  symcode='[BCDEGRST]'
 
5923
  ;;
 
5924
osf*)
 
5925
  symcode='[BCDEGQRST]'
 
5926
  ;;
 
5927
solaris*)
 
5928
  symcode='[BDRT]'
 
5929
  ;;
 
5930
sco3.2v5*)
 
5931
  symcode='[DT]'
 
5932
  ;;
 
5933
sysv4.2uw2*)
 
5934
  symcode='[DT]'
 
5935
  ;;
 
5936
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5937
  symcode='[ABDT]'
 
5938
  ;;
 
5939
sysv4)
 
5940
  symcode='[DFNSTU]'
 
5941
  ;;
 
5942
esac
 
5943
 
 
5944
# If we're using GNU nm, then use its standard symbol codes.
 
5945
case `$NM -V 2>&1` in
 
5946
*GNU* | *'with BFD'*)
 
5947
  symcode='[ABCDGIRSTW]' ;;
 
5948
esac
 
5949
 
 
5950
# Transform an extracted symbol line into a proper C declaration.
 
5951
# Some systems (esp. on ia64) link data and code symbols differently,
 
5952
# so use this general approach.
 
5953
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5954
 
 
5955
# Transform an extracted symbol line into symbol name and symbol address
 
5956
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
5957
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'"
 
5958
 
 
5959
# Handle CRLF in mingw tool chain
 
5960
opt_cr=
 
5961
case $build_os in
 
5962
mingw*)
 
5963
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5964
  ;;
 
5965
esac
 
5966
 
 
5967
# Try without a prefix underscore, then with it.
 
5968
for ac_symprfx in "" "_"; do
 
5969
 
 
5970
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5971
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5972
 
 
5973
  # Write the raw and C identifiers.
 
5974
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
5975
    # Fake it for dumpbin and say T for any non-static function
 
5976
    # and D for any global variable.
 
5977
    # Also find C++ and __fastcall symbols from MSVC++,
 
5978
    # which start with @ or ?.
 
5979
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
5980
"     {last_section=section; section=\$ 3};"\
 
5981
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 
5982
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
5983
"     \$ 0!~/External *\|/{next};"\
 
5984
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
5985
"     {if(hide[section]) next};"\
 
5986
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
5987
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
5988
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
5989
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
5990
"     ' prfx=^$ac_symprfx"
 
5991
  else
 
5992
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5993
  fi
 
5994
  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 
5995
 
 
5996
  # Check to see that the pipe works correctly.
 
5997
  pipe_works=no
 
5998
 
 
5999
  rm -f conftest*
 
6000
  cat > conftest.$ac_ext <<_LT_EOF
 
6001
#ifdef __cplusplus
 
6002
extern "C" {
 
6003
#endif
 
6004
char nm_test_var;
 
6005
void nm_test_func(void);
 
6006
void nm_test_func(void){}
 
6007
#ifdef __cplusplus
 
6008
}
 
6009
#endif
 
6010
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6011
_LT_EOF
 
6012
 
 
6013
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6014
  (eval $ac_compile) 2>&5
 
6015
  ac_status=$?
 
6016
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6017
  test $ac_status = 0; }; then
 
6018
    # Now try to grab the symbols.
 
6019
    nlist=conftest.nm
 
6020
    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
 
6021
  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
 
6022
  ac_status=$?
 
6023
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6024
  test $ac_status = 0; } && test -s "$nlist"; then
 
6025
      # Try sorting and uniquifying the output.
 
6026
      if sort "$nlist" | uniq > "$nlist"T; then
 
6027
        mv -f "$nlist"T "$nlist"
 
6028
      else
 
6029
        rm -f "$nlist"T
 
6030
      fi
 
6031
 
 
6032
      # Make sure that we snagged all the symbols we need.
 
6033
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
6034
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
6035
          cat <<_LT_EOF > conftest.$ac_ext
 
6036
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 
6037
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
 
6038
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
6039
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
 
6040
# define LT@&t@_DLSYM_CONST
 
6041
#elif defined(__osf__)
 
6042
/* This system does not cope well with relocations in const data.  */
 
6043
# define LT@&t@_DLSYM_CONST
 
6044
#else
 
6045
# define LT@&t@_DLSYM_CONST const
 
6046
#endif
 
6047
 
 
6048
#ifdef __cplusplus
 
6049
extern "C" {
 
6050
#endif
 
6051
 
 
6052
_LT_EOF
 
6053
          # Now generate the symbol file.
 
6054
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
6055
 
 
6056
          cat <<_LT_EOF >> conftest.$ac_ext
 
6057
 
 
6058
/* The mapping between symbol names and symbols.  */
 
6059
LT@&t@_DLSYM_CONST struct {
 
6060
  const char *name;
 
6061
  void       *address;
 
6062
}
 
6063
lt__PROGRAM__LTX_preloaded_symbols[] =
 
6064
{
 
6065
  { "@PROGRAM@", (void *) 0 },
 
6066
_LT_EOF
 
6067
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
6068
          cat <<\_LT_EOF >> conftest.$ac_ext
 
6069
  {0, (void *) 0}
 
6070
};
 
6071
 
 
6072
/* This works around a problem in FreeBSD linker */
 
6073
#ifdef FREEBSD_WORKAROUND
 
6074
static const void *lt_preloaded_setup() {
 
6075
  return lt__PROGRAM__LTX_preloaded_symbols;
 
6076
}
 
6077
#endif
 
6078
 
 
6079
#ifdef __cplusplus
 
6080
}
 
6081
#endif
 
6082
_LT_EOF
 
6083
          # Now try linking the two files.
 
6084
          mv conftest.$ac_objext conftstm.$ac_objext
 
6085
          lt_globsym_save_LIBS=$LIBS
 
6086
          lt_globsym_save_CFLAGS=$CFLAGS
 
6087
          LIBS="conftstm.$ac_objext"
 
6088
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6089
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
6090
  (eval $ac_link) 2>&5
 
6091
  ac_status=$?
 
6092
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6093
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
6094
            pipe_works=yes
 
6095
          fi
 
6096
          LIBS=$lt_globsym_save_LIBS
 
6097
          CFLAGS=$lt_globsym_save_CFLAGS
 
6098
        else
 
6099
          echo "cannot find nm_test_func in $nlist" >&5
 
6100
        fi
 
6101
      else
 
6102
        echo "cannot find nm_test_var in $nlist" >&5
 
6103
      fi
 
6104
    else
 
6105
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6106
    fi
 
6107
  else
 
6108
    echo "$progname: failed program was:" >&5
 
6109
    cat conftest.$ac_ext >&5
 
6110
  fi
 
6111
  rm -rf conftest* conftst*
 
6112
 
 
6113
  # Do not use the global_symbol_pipe unless it works.
 
6114
  if test "$pipe_works" = yes; then
 
6115
    break
 
6116
  else
 
6117
    lt_cv_sys_global_symbol_pipe=
 
6118
  fi
 
6119
done
 
6120
 
 
6121
fi
 
6122
 
 
6123
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6124
  lt_cv_sys_global_symbol_to_cdecl=
 
6125
fi
 
6126
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6127
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
 
6128
$as_echo "failed" >&6; }
 
6129
else
 
6130
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
 
6131
$as_echo "ok" >&6; }
 
6132
fi
 
6133
 
 
6134
# Response file support.
 
6135
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
6136
  nm_file_list_spec='@'
 
6137
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
 
6138
  nm_file_list_spec='@'
 
6139
fi
 
6140
 
 
6141
 
 
6142
    
 
6143
    
 
6144
    
 
6145
 
 
6146
 
 
6147
    
 
6148
    
 
6149
    
 
6150
 
 
6151
 
 
6152
    
 
6153
    
 
6154
    
 
6155
 
 
6156
 
 
6157
    
 
6158
    
 
6159
    
 
6160
 
 
6161
 
 
6162
    
 
6163
    
 
6164
    
 
6165
 
 
6166
 
 
6167
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
 
6168
$as_echo_n "checking for sysroot... " >&6; }
 
6169
 
 
6170
@%:@ Check whether --with-sysroot was given.
 
6171
if test "${with_sysroot+set}" = set; then :
 
6172
  withval=$with_sysroot; 
 
6173
else
 
6174
  with_sysroot=no
 
6175
fi
 
6176
 
 
6177
 
 
6178
lt_sysroot=
 
6179
case ${with_sysroot} in #(
 
6180
 yes)
 
6181
   if test "$GCC" = yes; then
 
6182
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 
6183
   fi
 
6184
   ;; #(
 
6185
 /*)
 
6186
   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 
6187
   ;; #(
 
6188
 no|'')
 
6189
   ;; #(
 
6190
 *)
 
6191
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
 
6192
$as_echo "${with_sysroot}" >&6; }
 
6193
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
 
6194
   ;;
 
6195
esac
 
6196
 
 
6197
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
 
6198
$as_echo "${lt_sysroot:-no}" >&6; }
 
6199
 
 
6200
    
 
6201
    
 
6202
    
 
6203
 
 
6204
@%:@ Check whether --enable-libtool-lock was given.
 
6205
if test "${enable_libtool_lock+set}" = set; then :
 
6206
  enableval=$enable_libtool_lock; 
 
6207
fi
 
6208
 
 
6209
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6210
 
 
6211
# Some flags need to be propagated to the compiler or linker for good
 
6212
# libtool support.
 
6213
case $host in
 
6214
ia64-*-hpux*)
 
6215
  # Find out which ABI we are using.
 
6216
  echo 'int i;' > conftest.$ac_ext
 
6217
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6218
  (eval $ac_compile) 2>&5
 
6219
  ac_status=$?
 
6220
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6221
  test $ac_status = 0; }; then
 
6222
    case `/usr/bin/file conftest.$ac_objext` in
 
6223
      *ELF-32*)
 
6224
        HPUX_IA64_MODE="32"
 
6225
        ;;
 
6226
      *ELF-64*)
 
6227
        HPUX_IA64_MODE="64"
 
6228
        ;;
 
6229
    esac
 
6230
  fi
 
6231
  rm -rf conftest*
 
6232
  ;;
 
6233
*-*-irix6*)
 
6234
  # Find out which ABI we are using.
 
6235
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
6236
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6237
  (eval $ac_compile) 2>&5
 
6238
  ac_status=$?
 
6239
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6240
  test $ac_status = 0; }; then
 
6241
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
6242
      case `/usr/bin/file conftest.$ac_objext` in
 
6243
        *32-bit*)
 
6244
          LD="${LD-ld} -melf32bsmip"
 
6245
          ;;
 
6246
        *N32*)
 
6247
          LD="${LD-ld} -melf32bmipn32"
 
6248
          ;;
 
6249
        *64-bit*)
 
6250
          LD="${LD-ld} -melf64bmip"
 
6251
        ;;
 
6252
      esac
 
6253
    else
 
6254
      case `/usr/bin/file conftest.$ac_objext` in
 
6255
        *32-bit*)
 
6256
          LD="${LD-ld} -32"
 
6257
          ;;
 
6258
        *N32*)
 
6259
          LD="${LD-ld} -n32"
 
6260
          ;;
 
6261
        *64-bit*)
 
6262
          LD="${LD-ld} -64"
 
6263
          ;;
 
6264
      esac
 
6265
    fi
 
6266
  fi
 
6267
  rm -rf conftest*
 
6268
  ;;
 
6269
 
 
6270
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
6271
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
6272
  # Find out which ABI we are using.
 
6273
  echo 'int i;' > conftest.$ac_ext
 
6274
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6275
  (eval $ac_compile) 2>&5
 
6276
  ac_status=$?
 
6277
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6278
  test $ac_status = 0; }; then
 
6279
    case `/usr/bin/file conftest.o` in
 
6280
      *32-bit*)
 
6281
        case $host in
 
6282
          x86_64-*kfreebsd*-gnu)
 
6283
            LD="${LD-ld} -m elf_i386_fbsd"
 
6284
            ;;
 
6285
          x86_64-*linux*)
 
6286
            LD="${LD-ld} -m elf_i386"
 
6287
            ;;
 
6288
          ppc64-*linux*|powerpc64-*linux*)
 
6289
            LD="${LD-ld} -m elf32ppclinux"
 
6290
            ;;
 
6291
          s390x-*linux*)
 
6292
            LD="${LD-ld} -m elf_s390"
 
6293
            ;;
 
6294
          sparc64-*linux*)
 
6295
            LD="${LD-ld} -m elf32_sparc"
 
6296
            ;;
 
6297
        esac
 
6298
        ;;
 
6299
      *64-bit*)
 
6300
        case $host in
 
6301
          x86_64-*kfreebsd*-gnu)
 
6302
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
6303
            ;;
 
6304
          x86_64-*linux*)
 
6305
            LD="${LD-ld} -m elf_x86_64"
 
6306
            ;;
 
6307
          ppc*-*linux*|powerpc*-*linux*)
 
6308
            LD="${LD-ld} -m elf64ppc"
 
6309
            ;;
 
6310
          s390*-*linux*|s390*-*tpf*)
 
6311
            LD="${LD-ld} -m elf64_s390"
 
6312
            ;;
 
6313
          sparc*-*linux*)
 
6314
            LD="${LD-ld} -m elf64_sparc"
 
6315
            ;;
 
6316
        esac
 
6317
        ;;
 
6318
    esac
 
6319
  fi
 
6320
  rm -rf conftest*
 
6321
  ;;
 
6322
 
 
6323
*-*-sco3.2v5*)
 
6324
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6325
  SAVE_CFLAGS="$CFLAGS"
 
6326
  CFLAGS="$CFLAGS -belf"
 
6327
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
 
6328
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
6329
if ${lt_cv_cc_needs_belf+:} false; then :
 
6330
  $as_echo_n "(cached) " >&6
 
6331
else
 
6332
  ac_ext=c
 
6333
ac_cpp='$CPP $CPPFLAGS'
 
6334
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6335
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6336
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6337
 
 
6338
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
6339
/* end confdefs.h.  */
 
6340
 
 
6341
int
 
6342
main ()
 
6343
{
 
6344
 
 
6345
  ;
 
6346
  return 0;
 
6347
}
 
6348
_ACEOF
 
6349
if ac_fn_c_try_link "$LINENO"; then :
 
6350
  lt_cv_cc_needs_belf=yes
 
6351
else
 
6352
  lt_cv_cc_needs_belf=no
 
6353
fi
 
6354
rm -f core conftest.err conftest.$ac_objext \
 
6355
    conftest$ac_exeext conftest.$ac_ext
 
6356
     ac_ext=c
 
6357
ac_cpp='$CPP $CPPFLAGS'
 
6358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6361
 
 
6362
fi
 
6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
 
6364
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
6365
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6366
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6367
    CFLAGS="$SAVE_CFLAGS"
 
6368
  fi
 
6369
  ;;
 
6370
*-*solaris*)
 
6371
  # Find out which ABI we are using.
 
6372
  echo 'int i;' > conftest.$ac_ext
 
6373
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
6374
  (eval $ac_compile) 2>&5
 
6375
  ac_status=$?
 
6376
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
6377
  test $ac_status = 0; }; then
 
6378
    case `/usr/bin/file conftest.o` in
 
6379
    *64-bit*)
 
6380
      case $lt_cv_prog_gnu_ld in
 
6381
      yes*)
 
6382
        case $host in
 
6383
        i?86-*-solaris*)
 
6384
          LD="${LD-ld} -m elf_x86_64"
 
6385
          ;;
 
6386
        sparc*-*-solaris*)
 
6387
          LD="${LD-ld} -m elf64_sparc"
 
6388
          ;;
 
6389
        esac
 
6390
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 
6391
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 
6392
          LD="${LD-ld}_sol2"
 
6393
        fi
 
6394
        ;;
 
6395
      *)
 
6396
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
6397
          LD="${LD-ld} -64"
 
6398
        fi
 
6399
        ;;
 
6400
      esac
 
6401
      ;;
 
6402
    esac
 
6403
  fi
 
6404
  rm -rf conftest*
 
6405
  ;;
 
6406
esac
 
6407
 
 
6408
need_locks="$enable_libtool_lock"
 
6409
 
 
6410
if test -n "$ac_tool_prefix"; then
 
6411
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
 
6412
set dummy ${ac_tool_prefix}mt; ac_word=$2
 
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6414
$as_echo_n "checking for $ac_word... " >&6; }
 
6415
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
 
6416
  $as_echo_n "(cached) " >&6
 
6417
else
 
6418
  if test -n "$MANIFEST_TOOL"; then
 
6419
  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
 
6420
else
 
6421
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6422
for as_dir in $PATH
 
6423
do
 
6424
  IFS=$as_save_IFS
 
6425
  test -z "$as_dir" && as_dir=.
 
6426
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6427
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6428
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
 
6429
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6430
    break 2
 
6431
  fi
 
6432
done
 
6433
  done
 
6434
IFS=$as_save_IFS
 
6435
 
 
6436
fi
 
6437
fi
 
6438
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
 
6439
if test -n "$MANIFEST_TOOL"; then
 
6440
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
 
6441
$as_echo "$MANIFEST_TOOL" >&6; }
 
6442
else
 
6443
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6444
$as_echo "no" >&6; }
 
6445
fi
 
6446
 
 
6447
 
 
6448
fi
 
6449
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
 
6450
  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
 
6451
  # Extract the first word of "mt", so it can be a program name with args.
 
6452
set dummy mt; ac_word=$2
 
6453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6454
$as_echo_n "checking for $ac_word... " >&6; }
 
6455
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
 
6456
  $as_echo_n "(cached) " >&6
 
6457
else
 
6458
  if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6459
  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
 
6460
else
 
6461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6462
for as_dir in $PATH
 
6463
do
 
6464
  IFS=$as_save_IFS
 
6465
  test -z "$as_dir" && as_dir=.
 
6466
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6467
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6468
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
 
6469
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6470
    break 2
 
6471
  fi
 
6472
done
 
6473
  done
 
6474
IFS=$as_save_IFS
 
6475
 
 
6476
fi
 
6477
fi
 
6478
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
 
6479
if test -n "$ac_ct_MANIFEST_TOOL"; then
 
6480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
 
6481
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
 
6482
else
 
6483
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6484
$as_echo "no" >&6; }
 
6485
fi
 
6486
 
 
6487
  if test "x$ac_ct_MANIFEST_TOOL" = x; then
 
6488
    MANIFEST_TOOL=":"
 
6489
  else
 
6490
    case $cross_compiling:$ac_tool_warned in
 
6491
yes:)
 
6492
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6493
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6494
ac_tool_warned=yes ;;
 
6495
esac
 
6496
    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
 
6497
  fi
 
6498
else
 
6499
  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
 
6500
fi
 
6501
 
 
6502
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 
6503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
 
6504
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
 
6505
if ${lt_cv_path_mainfest_tool+:} false; then :
 
6506
  $as_echo_n "(cached) " >&6
 
6507
else
 
6508
  lt_cv_path_mainfest_tool=no
 
6509
  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
 
6510
  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 
6511
  cat conftest.err >&5
 
6512
  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 
6513
    lt_cv_path_mainfest_tool=yes
 
6514
  fi
 
6515
  rm -f conftest*
 
6516
fi
 
6517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
 
6518
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
 
6519
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
6520
  MANIFEST_TOOL=:
 
6521
fi
 
6522
 
 
6523
    
 
6524
    
 
6525
    
 
6526
 
 
6527
 
 
6528
  case $host_os in
 
6529
    rhapsody* | darwin*)
 
6530
    if test -n "$ac_tool_prefix"; then
 
6531
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6532
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6534
$as_echo_n "checking for $ac_word... " >&6; }
 
6535
if ${ac_cv_prog_DSYMUTIL+:} false; then :
 
6536
  $as_echo_n "(cached) " >&6
 
6537
else
 
6538
  if test -n "$DSYMUTIL"; then
 
6539
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6540
else
 
6541
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6542
for as_dir in $PATH
 
6543
do
 
6544
  IFS=$as_save_IFS
 
6545
  test -z "$as_dir" && as_dir=.
 
6546
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6547
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6548
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6549
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6550
    break 2
 
6551
  fi
 
6552
done
 
6553
  done
 
6554
IFS=$as_save_IFS
 
6555
 
 
6556
fi
 
6557
fi
 
6558
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6559
if test -n "$DSYMUTIL"; then
 
6560
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
 
6561
$as_echo "$DSYMUTIL" >&6; }
 
6562
else
 
6563
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6564
$as_echo "no" >&6; }
 
6565
fi
 
6566
 
 
6567
 
 
6568
fi
 
6569
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6570
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6571
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6572
set dummy dsymutil; ac_word=$2
 
6573
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6574
$as_echo_n "checking for $ac_word... " >&6; }
 
6575
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
 
6576
  $as_echo_n "(cached) " >&6
 
6577
else
 
6578
  if test -n "$ac_ct_DSYMUTIL"; then
 
6579
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6580
else
 
6581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6582
for as_dir in $PATH
 
6583
do
 
6584
  IFS=$as_save_IFS
 
6585
  test -z "$as_dir" && as_dir=.
 
6586
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6587
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6588
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
6589
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6590
    break 2
 
6591
  fi
 
6592
done
 
6593
  done
 
6594
IFS=$as_save_IFS
 
6595
 
 
6596
fi
 
6597
fi
 
6598
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
6599
if test -n "$ac_ct_DSYMUTIL"; then
 
6600
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
 
6601
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
6602
else
 
6603
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6604
$as_echo "no" >&6; }
 
6605
fi
 
6606
 
 
6607
  if test "x$ac_ct_DSYMUTIL" = x; then
 
6608
    DSYMUTIL=":"
 
6609
  else
 
6610
    case $cross_compiling:$ac_tool_warned in
 
6611
yes:)
 
6612
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6613
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6614
ac_tool_warned=yes ;;
 
6615
esac
 
6616
    DSYMUTIL=$ac_ct_DSYMUTIL
 
6617
  fi
 
6618
else
 
6619
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
6620
fi
 
6621
 
 
6622
    if test -n "$ac_tool_prefix"; then
 
6623
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
6624
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
6625
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6626
$as_echo_n "checking for $ac_word... " >&6; }
 
6627
if ${ac_cv_prog_NMEDIT+:} false; then :
 
6628
  $as_echo_n "(cached) " >&6
 
6629
else
 
6630
  if test -n "$NMEDIT"; then
 
6631
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
6632
else
 
6633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6634
for as_dir in $PATH
 
6635
do
 
6636
  IFS=$as_save_IFS
 
6637
  test -z "$as_dir" && as_dir=.
 
6638
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6639
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6640
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
6641
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6642
    break 2
 
6643
  fi
 
6644
done
 
6645
  done
 
6646
IFS=$as_save_IFS
 
6647
 
 
6648
fi
 
6649
fi
 
6650
NMEDIT=$ac_cv_prog_NMEDIT
 
6651
if test -n "$NMEDIT"; then
 
6652
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
 
6653
$as_echo "$NMEDIT" >&6; }
 
6654
else
 
6655
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6656
$as_echo "no" >&6; }
 
6657
fi
 
6658
 
 
6659
 
 
6660
fi
 
6661
if test -z "$ac_cv_prog_NMEDIT"; then
 
6662
  ac_ct_NMEDIT=$NMEDIT
 
6663
  # Extract the first word of "nmedit", so it can be a program name with args.
 
6664
set dummy nmedit; ac_word=$2
 
6665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6666
$as_echo_n "checking for $ac_word... " >&6; }
 
6667
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
 
6668
  $as_echo_n "(cached) " >&6
 
6669
else
 
6670
  if test -n "$ac_ct_NMEDIT"; then
 
6671
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
6672
else
 
6673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6674
for as_dir in $PATH
 
6675
do
 
6676
  IFS=$as_save_IFS
 
6677
  test -z "$as_dir" && as_dir=.
 
6678
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6679
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6680
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
6681
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6682
    break 2
 
6683
  fi
 
6684
done
 
6685
  done
 
6686
IFS=$as_save_IFS
 
6687
 
 
6688
fi
 
6689
fi
 
6690
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
6691
if test -n "$ac_ct_NMEDIT"; then
 
6692
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
 
6693
$as_echo "$ac_ct_NMEDIT" >&6; }
 
6694
else
 
6695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6696
$as_echo "no" >&6; }
 
6697
fi
 
6698
 
 
6699
  if test "x$ac_ct_NMEDIT" = x; then
 
6700
    NMEDIT=":"
 
6701
  else
 
6702
    case $cross_compiling:$ac_tool_warned in
 
6703
yes:)
 
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6705
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6706
ac_tool_warned=yes ;;
 
6707
esac
 
6708
    NMEDIT=$ac_ct_NMEDIT
 
6709
  fi
 
6710
else
 
6711
  NMEDIT="$ac_cv_prog_NMEDIT"
 
6712
fi
 
6713
 
 
6714
    if test -n "$ac_tool_prefix"; then
 
6715
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
6716
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
6717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6718
$as_echo_n "checking for $ac_word... " >&6; }
 
6719
if ${ac_cv_prog_LIPO+:} false; then :
 
6720
  $as_echo_n "(cached) " >&6
 
6721
else
 
6722
  if test -n "$LIPO"; then
 
6723
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
6724
else
 
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6726
for as_dir in $PATH
 
6727
do
 
6728
  IFS=$as_save_IFS
 
6729
  test -z "$as_dir" && as_dir=.
 
6730
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6731
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6732
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
6733
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6734
    break 2
 
6735
  fi
 
6736
done
 
6737
  done
 
6738
IFS=$as_save_IFS
 
6739
 
 
6740
fi
 
6741
fi
 
6742
LIPO=$ac_cv_prog_LIPO
 
6743
if test -n "$LIPO"; then
 
6744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
 
6745
$as_echo "$LIPO" >&6; }
 
6746
else
 
6747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6748
$as_echo "no" >&6; }
 
6749
fi
 
6750
 
 
6751
 
 
6752
fi
 
6753
if test -z "$ac_cv_prog_LIPO"; then
 
6754
  ac_ct_LIPO=$LIPO
 
6755
  # Extract the first word of "lipo", so it can be a program name with args.
 
6756
set dummy lipo; ac_word=$2
 
6757
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6758
$as_echo_n "checking for $ac_word... " >&6; }
 
6759
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
 
6760
  $as_echo_n "(cached) " >&6
 
6761
else
 
6762
  if test -n "$ac_ct_LIPO"; then
 
6763
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
6764
else
 
6765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6766
for as_dir in $PATH
 
6767
do
 
6768
  IFS=$as_save_IFS
 
6769
  test -z "$as_dir" && as_dir=.
 
6770
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6771
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6772
    ac_cv_prog_ac_ct_LIPO="lipo"
 
6773
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6774
    break 2
 
6775
  fi
 
6776
done
 
6777
  done
 
6778
IFS=$as_save_IFS
 
6779
 
 
6780
fi
 
6781
fi
 
6782
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
6783
if test -n "$ac_ct_LIPO"; then
 
6784
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
 
6785
$as_echo "$ac_ct_LIPO" >&6; }
 
6786
else
 
6787
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6788
$as_echo "no" >&6; }
 
6789
fi
 
6790
 
 
6791
  if test "x$ac_ct_LIPO" = x; then
 
6792
    LIPO=":"
 
6793
  else
 
6794
    case $cross_compiling:$ac_tool_warned in
 
6795
yes:)
 
6796
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6797
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6798
ac_tool_warned=yes ;;
 
6799
esac
 
6800
    LIPO=$ac_ct_LIPO
 
6801
  fi
 
6802
else
 
6803
  LIPO="$ac_cv_prog_LIPO"
 
6804
fi
 
6805
 
 
6806
    if test -n "$ac_tool_prefix"; then
 
6807
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
6808
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
6809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6810
$as_echo_n "checking for $ac_word... " >&6; }
 
6811
if ${ac_cv_prog_OTOOL+:} false; then :
 
6812
  $as_echo_n "(cached) " >&6
 
6813
else
 
6814
  if test -n "$OTOOL"; then
 
6815
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
6816
else
 
6817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6818
for as_dir in $PATH
 
6819
do
 
6820
  IFS=$as_save_IFS
 
6821
  test -z "$as_dir" && as_dir=.
 
6822
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6823
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6824
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
6825
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6826
    break 2
 
6827
  fi
 
6828
done
 
6829
  done
 
6830
IFS=$as_save_IFS
 
6831
 
 
6832
fi
 
6833
fi
 
6834
OTOOL=$ac_cv_prog_OTOOL
 
6835
if test -n "$OTOOL"; then
 
6836
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
 
6837
$as_echo "$OTOOL" >&6; }
 
6838
else
 
6839
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6840
$as_echo "no" >&6; }
 
6841
fi
 
6842
 
 
6843
 
 
6844
fi
 
6845
if test -z "$ac_cv_prog_OTOOL"; then
 
6846
  ac_ct_OTOOL=$OTOOL
 
6847
  # Extract the first word of "otool", so it can be a program name with args.
 
6848
set dummy otool; ac_word=$2
 
6849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6850
$as_echo_n "checking for $ac_word... " >&6; }
 
6851
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
 
6852
  $as_echo_n "(cached) " >&6
 
6853
else
 
6854
  if test -n "$ac_ct_OTOOL"; then
 
6855
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
6856
else
 
6857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6858
for as_dir in $PATH
 
6859
do
 
6860
  IFS=$as_save_IFS
 
6861
  test -z "$as_dir" && as_dir=.
 
6862
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6863
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6864
    ac_cv_prog_ac_ct_OTOOL="otool"
 
6865
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6866
    break 2
 
6867
  fi
 
6868
done
 
6869
  done
 
6870
IFS=$as_save_IFS
 
6871
 
 
6872
fi
 
6873
fi
 
6874
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
6875
if test -n "$ac_ct_OTOOL"; then
 
6876
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
 
6877
$as_echo "$ac_ct_OTOOL" >&6; }
 
6878
else
 
6879
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6880
$as_echo "no" >&6; }
 
6881
fi
 
6882
 
 
6883
  if test "x$ac_ct_OTOOL" = x; then
 
6884
    OTOOL=":"
 
6885
  else
 
6886
    case $cross_compiling:$ac_tool_warned in
 
6887
yes:)
 
6888
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6889
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6890
ac_tool_warned=yes ;;
 
6891
esac
 
6892
    OTOOL=$ac_ct_OTOOL
 
6893
  fi
 
6894
else
 
6895
  OTOOL="$ac_cv_prog_OTOOL"
 
6896
fi
 
6897
 
 
6898
    if test -n "$ac_tool_prefix"; then
 
6899
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
6900
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
6901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6902
$as_echo_n "checking for $ac_word... " >&6; }
 
6903
if ${ac_cv_prog_OTOOL64+:} false; then :
 
6904
  $as_echo_n "(cached) " >&6
 
6905
else
 
6906
  if test -n "$OTOOL64"; then
 
6907
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
6908
else
 
6909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6910
for as_dir in $PATH
 
6911
do
 
6912
  IFS=$as_save_IFS
 
6913
  test -z "$as_dir" && as_dir=.
 
6914
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6915
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6916
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
6917
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6918
    break 2
 
6919
  fi
 
6920
done
 
6921
  done
 
6922
IFS=$as_save_IFS
 
6923
 
 
6924
fi
 
6925
fi
 
6926
OTOOL64=$ac_cv_prog_OTOOL64
 
6927
if test -n "$OTOOL64"; then
 
6928
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
 
6929
$as_echo "$OTOOL64" >&6; }
 
6930
else
 
6931
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6932
$as_echo "no" >&6; }
 
6933
fi
 
6934
 
 
6935
 
 
6936
fi
 
6937
if test -z "$ac_cv_prog_OTOOL64"; then
 
6938
  ac_ct_OTOOL64=$OTOOL64
 
6939
  # Extract the first word of "otool64", so it can be a program name with args.
 
6940
set dummy otool64; ac_word=$2
 
6941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
6942
$as_echo_n "checking for $ac_word... " >&6; }
 
6943
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
 
6944
  $as_echo_n "(cached) " >&6
 
6945
else
 
6946
  if test -n "$ac_ct_OTOOL64"; then
 
6947
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
6948
else
 
6949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6950
for as_dir in $PATH
 
6951
do
 
6952
  IFS=$as_save_IFS
 
6953
  test -z "$as_dir" && as_dir=.
 
6954
    for ac_exec_ext in '' $ac_executable_extensions; do
 
6955
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6956
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
6957
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6958
    break 2
 
6959
  fi
 
6960
done
 
6961
  done
 
6962
IFS=$as_save_IFS
 
6963
 
 
6964
fi
 
6965
fi
 
6966
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
6967
if test -n "$ac_ct_OTOOL64"; then
 
6968
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
 
6969
$as_echo "$ac_ct_OTOOL64" >&6; }
 
6970
else
 
6971
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
6972
$as_echo "no" >&6; }
 
6973
fi
 
6974
 
 
6975
  if test "x$ac_ct_OTOOL64" = x; then
 
6976
    OTOOL64=":"
 
6977
  else
 
6978
    case $cross_compiling:$ac_tool_warned in
 
6979
yes:)
 
6980
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
6981
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6982
ac_tool_warned=yes ;;
 
6983
esac
 
6984
    OTOOL64=$ac_ct_OTOOL64
 
6985
  fi
 
6986
else
 
6987
  OTOOL64="$ac_cv_prog_OTOOL64"
 
6988
fi
 
6989
 
 
6990
    
 
6991
    
 
6992
    
 
6993
    
 
6994
 
 
6995
    
 
6996
    
 
6997
    
 
6998
    
 
6999
 
 
7000
    
 
7001
    
 
7002
    
 
7003
    
 
7004
 
 
7005
    
 
7006
    
 
7007
    
 
7008
    
 
7009
 
 
7010
    
 
7011
    
 
7012
    
 
7013
    
 
7014
 
 
7015
 
 
7016
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
 
7017
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7018
if ${lt_cv_apple_cc_single_mod+:} false; then :
 
7019
  $as_echo_n "(cached) " >&6
 
7020
else
 
7021
  lt_cv_apple_cc_single_mod=no
 
7022
      if test -z "${LT_MULTI_MODULE}"; then
 
7023
        # By default we will add the -single_module flag. You can override
 
7024
        # by either setting the environment variable LT_MULTI_MODULE
 
7025
        # non-empty at configure time, or by adding -multi_module to the
 
7026
        # link flags.
 
7027
        rm -rf libconftest.dylib*
 
7028
        echo "int foo(void){return 1;}" > conftest.c
 
7029
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7030
-dynamiclib -Wl,-single_module conftest.c" >&5
 
7031
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7032
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
7033
        _lt_result=$?
 
7034
        # If there is a non-empty error log, and "single_module"
 
7035
        # appears in it, assume the flag caused a linker warning
 
7036
        if test -s conftest.err && $GREP single_module conftest.err; then
 
7037
          cat conftest.err >&5
 
7038
        # Otherwise, if the output was created with a 0 exit code from
 
7039
        # the compiler, it worked.
 
7040
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
7041
          lt_cv_apple_cc_single_mod=yes
 
7042
        else
 
7043
          cat conftest.err >&5
 
7044
        fi
 
7045
        rm -rf libconftest.dylib*
 
7046
        rm -f conftest.*
 
7047
      fi
 
7048
fi
 
7049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
 
7050
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7051
 
 
7052
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
 
7053
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7054
if ${lt_cv_ld_exported_symbols_list+:} false; then :
 
7055
  $as_echo_n "(cached) " >&6
 
7056
else
 
7057
  lt_cv_ld_exported_symbols_list=no
 
7058
      save_LDFLAGS=$LDFLAGS
 
7059
      echo "_main" > conftest.sym
 
7060
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7061
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7062
/* end confdefs.h.  */
 
7063
 
 
7064
int
 
7065
main ()
 
7066
{
 
7067
 
 
7068
  ;
 
7069
  return 0;
 
7070
}
 
7071
_ACEOF
 
7072
if ac_fn_c_try_link "$LINENO"; then :
 
7073
  lt_cv_ld_exported_symbols_list=yes
 
7074
else
 
7075
  lt_cv_ld_exported_symbols_list=no
 
7076
fi
 
7077
rm -f core conftest.err conftest.$ac_objext \
 
7078
    conftest$ac_exeext conftest.$ac_ext
 
7079
        LDFLAGS="$save_LDFLAGS"
 
7080
    
 
7081
fi
 
7082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
 
7083
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7084
 
 
7085
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
 
7086
$as_echo_n "checking for -force_load linker flag... " >&6; }
 
7087
if ${lt_cv_ld_force_load+:} false; then :
 
7088
  $as_echo_n "(cached) " >&6
 
7089
else
 
7090
  lt_cv_ld_force_load=no
 
7091
      cat > conftest.c << _LT_EOF
 
7092
int forced_loaded() { return 2;}
 
7093
_LT_EOF
 
7094
      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
 
7095
      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
 
7096
      echo "$AR cru libconftest.a conftest.o" >&5
 
7097
      $AR cru libconftest.a conftest.o 2>&5
 
7098
      echo "$RANLIB libconftest.a" >&5
 
7099
      $RANLIB libconftest.a 2>&5
 
7100
      cat > conftest.c << _LT_EOF
 
7101
int main() { return 0;}
 
7102
_LT_EOF
 
7103
      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
 
7104
      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 
7105
      _lt_result=$?
 
7106
      if test -s conftest.err && $GREP force_load conftest.err; then
 
7107
        cat conftest.err >&5
 
7108
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
7109
        lt_cv_ld_force_load=yes
 
7110
      else
 
7111
        cat conftest.err >&5
 
7112
      fi
 
7113
        rm -f conftest.err libconftest.a conftest conftest.c
 
7114
        rm -rf conftest.dSYM
 
7115
    
 
7116
fi
 
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
 
7118
$as_echo "$lt_cv_ld_force_load" >&6; }
 
7119
    case $host_os in
 
7120
    rhapsody* | darwin1.[012])
 
7121
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7122
    darwin1.*)
 
7123
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7124
    darwin*) # darwin 5.x on
 
7125
      # if running on 10.5 or later, the deployment target defaults
 
7126
      # to the OS version, if on x86, and 10.4, the deployment
 
7127
      # target defaults to 10.4. Don't you love it?
 
7128
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7129
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7130
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7131
        10.[012]*)
 
7132
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7133
        10.*)
 
7134
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7135
      esac
 
7136
    ;;
 
7137
  esac
 
7138
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7139
      _lt_dar_single_mod='$single_module'
 
7140
    fi
 
7141
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7142
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7143
    else
 
7144
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7145
    fi
 
7146
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
7147
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
7148
    else
 
7149
      _lt_dsymutil=
 
7150
    fi
 
7151
    ;;
 
7152
  esac
 
7153
 
 
7154
ac_ext=c
 
7155
ac_cpp='$CPP $CPPFLAGS'
 
7156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 
7160
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
7161
# On Suns, sometimes $CPP names a directory.
 
7162
if test -n "$CPP" && test -d "$CPP"; then
 
7163
  CPP=
 
7164
fi
 
7165
if test -z "$CPP"; then
 
7166
  if ${ac_cv_prog_CPP+:} false; then :
 
7167
  $as_echo_n "(cached) " >&6
 
7168
else
 
7169
      # Double quotes because CPP needs to be expanded
 
7170
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
7171
    do
 
7172
      ac_preproc_ok=false
 
7173
for ac_c_preproc_warn_flag in '' yes
 
7174
do
 
7175
  # Use a header file that comes with gcc, so configuring glibc
 
7176
  # with a fresh cross-compiler works.
 
7177
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7178
  # <limits.h> exists even on freestanding compilers.
 
7179
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7180
  # not just through cpp. "Syntax error" is here to catch this case.
 
7181
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7182
/* end confdefs.h.  */
 
7183
@%:@ifdef __STDC__
 
7184
@%:@ include <limits.h>
 
7185
@%:@else
 
7186
@%:@ include <assert.h>
 
7187
@%:@endif
 
7188
                     Syntax error
 
7189
_ACEOF
 
7190
if ac_fn_c_try_cpp "$LINENO"; then :
 
7191
  
 
7192
else
 
7193
  # Broken: fails on valid input.
 
7194
continue
 
7195
fi
 
7196
rm -f conftest.err conftest.i conftest.$ac_ext
 
7197
 
 
7198
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7199
  # can be detected and how.
 
7200
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7201
/* end confdefs.h.  */
 
7202
@%:@include <ac_nonexistent.h>
 
7203
_ACEOF
 
7204
if ac_fn_c_try_cpp "$LINENO"; then :
 
7205
  # Broken: success on invalid input.
 
7206
continue
 
7207
else
 
7208
  # Passes both tests.
 
7209
ac_preproc_ok=:
 
7210
break
 
7211
fi
 
7212
rm -f conftest.err conftest.i conftest.$ac_ext
 
7213
 
 
7214
done
 
7215
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7216
rm -f conftest.i conftest.err conftest.$ac_ext
 
7217
if $ac_preproc_ok; then :
 
7218
  break
 
7219
fi
 
7220
 
 
7221
    done
 
7222
    ac_cv_prog_CPP=$CPP
 
7223
  
 
7224
fi
 
7225
  CPP=$ac_cv_prog_CPP
 
7226
else
 
7227
  ac_cv_prog_CPP=$CPP
 
7228
fi
 
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 
7230
$as_echo "$CPP" >&6; }
 
7231
ac_preproc_ok=false
 
7232
for ac_c_preproc_warn_flag in '' yes
 
7233
do
 
7234
  # Use a header file that comes with gcc, so configuring glibc
 
7235
  # with a fresh cross-compiler works.
 
7236
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7237
  # <limits.h> exists even on freestanding compilers.
 
7238
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
7239
  # not just through cpp. "Syntax error" is here to catch this case.
 
7240
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7241
/* end confdefs.h.  */
 
7242
@%:@ifdef __STDC__
 
7243
@%:@ include <limits.h>
 
7244
@%:@else
 
7245
@%:@ include <assert.h>
 
7246
@%:@endif
 
7247
                     Syntax error
 
7248
_ACEOF
 
7249
if ac_fn_c_try_cpp "$LINENO"; then :
 
7250
  
 
7251
else
 
7252
  # Broken: fails on valid input.
 
7253
continue
 
7254
fi
 
7255
rm -f conftest.err conftest.i conftest.$ac_ext
 
7256
 
 
7257
  # OK, works on sane cases.  Now check whether nonexistent headers
 
7258
  # can be detected and how.
 
7259
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7260
/* end confdefs.h.  */
 
7261
@%:@include <ac_nonexistent.h>
 
7262
_ACEOF
 
7263
if ac_fn_c_try_cpp "$LINENO"; then :
 
7264
  # Broken: success on invalid input.
 
7265
continue
 
7266
else
 
7267
  # Passes both tests.
 
7268
ac_preproc_ok=:
 
7269
break
 
7270
fi
 
7271
rm -f conftest.err conftest.i conftest.$ac_ext
 
7272
 
 
7273
done
 
7274
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7275
rm -f conftest.i conftest.err conftest.$ac_ext
 
7276
if $ac_preproc_ok; then :
 
7277
  
 
7278
else
 
7279
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
7280
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
7281
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 
7282
See \`config.log' for more details" "$LINENO" 5; }
 
7283
fi
 
7284
 
 
7285
ac_ext=c
 
7286
ac_cpp='$CPP $CPPFLAGS'
 
7287
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7288
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7289
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7290
 
 
7291
 
 
7292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 
7293
$as_echo_n "checking for ANSI C header files... " >&6; }
 
7294
if ${ac_cv_header_stdc+:} false; then :
 
7295
  $as_echo_n "(cached) " >&6
 
7296
else
 
7297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7298
/* end confdefs.h.  */
 
7299
#include <stdlib.h>
 
7300
#include <stdarg.h>
 
7301
#include <string.h>
 
7302
#include <float.h>
 
7303
 
 
7304
int
 
7305
main ()
 
7306
{
 
7307
 
 
7308
  ;
 
7309
  return 0;
 
7310
}
 
7311
_ACEOF
 
7312
if ac_fn_c_try_compile "$LINENO"; then :
 
7313
  ac_cv_header_stdc=yes
 
7314
else
 
7315
  ac_cv_header_stdc=no
 
7316
fi
 
7317
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7318
 
 
7319
if test $ac_cv_header_stdc = yes; then
 
7320
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
7321
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7322
/* end confdefs.h.  */
 
7323
#include <string.h>
 
7324
 
 
7325
_ACEOF
 
7326
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7327
  $EGREP "memchr" >/dev/null 2>&1; then :
 
7328
  
 
7329
else
 
7330
  ac_cv_header_stdc=no
 
7331
fi
 
7332
rm -f conftest*
 
7333
 
 
7334
fi
 
7335
 
 
7336
if test $ac_cv_header_stdc = yes; then
 
7337
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
7338
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7339
/* end confdefs.h.  */
 
7340
#include <stdlib.h>
 
7341
 
 
7342
_ACEOF
 
7343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
7344
  $EGREP "free" >/dev/null 2>&1; then :
 
7345
  
 
7346
else
 
7347
  ac_cv_header_stdc=no
 
7348
fi
 
7349
rm -f conftest*
 
7350
 
 
7351
fi
 
7352
 
 
7353
if test $ac_cv_header_stdc = yes; then
 
7354
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
7355
  if test "$cross_compiling" = yes; then :
 
7356
  :
 
7357
else
 
7358
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7359
/* end confdefs.h.  */
 
7360
#include <ctype.h>
 
7361
#include <stdlib.h>
 
7362
#if ((' ' & 0x0FF) == 0x020)
 
7363
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
7364
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
7365
#else
 
7366
# define ISLOWER(c) \
 
7367
                   (('a' <= (c) && (c) <= 'i') \
 
7368
                     || ('j' <= (c) && (c) <= 'r') \
 
7369
                     || ('s' <= (c) && (c) <= 'z'))
 
7370
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
7371
#endif
 
7372
 
 
7373
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
7374
int
 
7375
main ()
 
7376
{
 
7377
  int i;
 
7378
  for (i = 0; i < 256; i++)
 
7379
    if (XOR (islower (i), ISLOWER (i))
 
7380
        || toupper (i) != TOUPPER (i))
 
7381
      return 2;
 
7382
  return 0;
 
7383
}
 
7384
_ACEOF
 
7385
if ac_fn_c_try_run "$LINENO"; then :
 
7386
  
 
7387
else
 
7388
  ac_cv_header_stdc=no
 
7389
fi
 
7390
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
 
7391
  conftest.$ac_objext conftest.beam conftest.$ac_ext
 
7392
fi
 
7393
 
 
7394
fi
 
7395
fi
 
7396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
 
7397
$as_echo "$ac_cv_header_stdc" >&6; }
 
7398
if test $ac_cv_header_stdc = yes; then
 
7399
  
 
7400
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
 
7401
 
 
7402
fi
 
7403
 
 
7404
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
7405
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
7406
                  inttypes.h stdint.h unistd.h
 
7407
do :
 
7408
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7409
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
7410
"
 
7411
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
7412
  cat >>confdefs.h <<_ACEOF
 
7413
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7414
_ACEOF
 
7415
 
 
7416
fi
 
7417
 
 
7418
done
 
7419
 
 
7420
 
 
7421
for ac_header in dlfcn.h
 
7422
do :
 
7423
  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
 
7424
"
 
7425
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
 
7426
  cat >>confdefs.h <<_ACEOF
 
7427
@%:@define HAVE_DLFCN_H 1
 
7428
_ACEOF
 
7429
 
 
7430
fi
 
7431
 
 
7432
done
 
7433
 
 
7434
 
 
7435
 
 
7436
 
 
7437
 
 
7438
# Set options
 
7439
@%:@ Check whether --enable-static was given.
 
7440
if test "${enable_static+set}" = set; then :
 
7441
  enableval=$enable_static; p=${PACKAGE-default}
 
7442
    case $enableval in
 
7443
    yes) enable_static=yes ;;
 
7444
    no) enable_static=no ;;
 
7445
    *)
 
7446
     enable_static=no
 
7447
      # Look at the argument we got.  We use all the common list separators.
 
7448
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7449
      for pkg in $enableval; do
 
7450
        IFS="$lt_save_ifs"
 
7451
        if test "X$pkg" = "X$p"; then
 
7452
          enable_static=yes
 
7453
        fi
 
7454
      done
 
7455
      IFS="$lt_save_ifs"
 
7456
      ;;
 
7457
    esac
 
7458
else
 
7459
  enable_static=no
 
7460
fi
 
7461
 
 
7462
 
 
7463
    
 
7464
    
 
7465
    
 
7466
    
 
7467
 
 
7468
 
 
7469
 
 
7470
 
 
7471
        enable_dlopen=no
 
7472
  
 
7473
 
 
7474
  enable_win32_dll=no
 
7475
  
 
7476
 
 
7477
            @%:@ Check whether --enable-shared was given.
 
7478
if test "${enable_shared+set}" = set; then :
 
7479
  enableval=$enable_shared; p=${PACKAGE-default}
 
7480
    case $enableval in
 
7481
    yes) enable_shared=yes ;;
 
7482
    no) enable_shared=no ;;
 
7483
    *)
 
7484
      enable_shared=no
 
7485
      # Look at the argument we got.  We use all the common list separators.
 
7486
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7487
      for pkg in $enableval; do
 
7488
        IFS="$lt_save_ifs"
 
7489
        if test "X$pkg" = "X$p"; then
 
7490
          enable_shared=yes
 
7491
        fi
 
7492
      done
 
7493
      IFS="$lt_save_ifs"
 
7494
      ;;
 
7495
    esac
 
7496
else
 
7497
  enable_shared=yes
 
7498
fi
 
7499
 
 
7500
 
 
7501
    
 
7502
    
 
7503
    
 
7504
    
 
7505
 
 
7506
 
 
7507
 
 
7508
  
 
7509
  
 
7510
@%:@ Check whether --with-pic was given.
 
7511
if test "${with_pic+set}" = set; then :
 
7512
  withval=$with_pic; lt_p=${PACKAGE-default}
 
7513
    case $withval in
 
7514
    yes|no) pic_mode=$withval ;;
 
7515
    *)
 
7516
      pic_mode=default
 
7517
      # Look at the argument we got.  We use all the common list separators.
 
7518
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7519
      for lt_pkg in $withval; do
 
7520
        IFS="$lt_save_ifs"
 
7521
        if test "X$lt_pkg" = "X$lt_p"; then
 
7522
          pic_mode=yes
 
7523
        fi
 
7524
      done
 
7525
      IFS="$lt_save_ifs"
 
7526
      ;;
 
7527
    esac
 
7528
else
 
7529
  pic_mode=default
 
7530
fi
 
7531
 
 
7532
 
 
7533
test -z "$pic_mode" && pic_mode=default
 
7534
 
 
7535
 
 
7536
    
 
7537
    
 
7538
    
 
7539
 
 
7540
 
 
7541
  @%:@ Check whether --enable-fast-install was given.
 
7542
if test "${enable_fast_install+set}" = set; then :
 
7543
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
7544
    case $enableval in
 
7545
    yes) enable_fast_install=yes ;;
 
7546
    no) enable_fast_install=no ;;
 
7547
    *)
 
7548
      enable_fast_install=no
 
7549
      # Look at the argument we got.  We use all the common list separators.
 
7550
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
7551
      for pkg in $enableval; do
 
7552
        IFS="$lt_save_ifs"
 
7553
        if test "X$pkg" = "X$p"; then
 
7554
          enable_fast_install=yes
 
7555
        fi
 
7556
      done
 
7557
      IFS="$lt_save_ifs"
 
7558
      ;;
 
7559
    esac
 
7560
else
 
7561
  enable_fast_install=yes
 
7562
fi
 
7563
 
 
7564
 
 
7565
 
 
7566
    
 
7567
    
 
7568
    
 
7569
 
 
7570
 
 
7571
  
 
7572
 
 
7573
 
 
7574
# This can be used to rebuild libtool when needed
 
7575
LIBTOOL_DEPS="$ltmain"
 
7576
 
 
7577
# Always use our own libtool.
 
7578
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
7579
 
 
7580
 
 
7581
 
 
7582
    
 
7583
    
 
7584
    
 
7585
 
 
7586
    
 
7587
    
 
7588
    
 
7589
 
 
7590
    
 
7591
    
 
7592
    
 
7593
 
 
7594
    
 
7595
    
 
7596
    
 
7597
 
 
7598
    
 
7599
    
 
7600
    
 
7601
 
 
7602
    
 
7603
    
 
7604
    
 
7605
 
 
7606
    
 
7607
    
 
7608
    
 
7609
test -z "$LN_S" && LN_S="ln -s"
 
7610
 
 
7611
    
 
7612
    
 
7613
    
 
7614
 
 
7615
    
 
7616
    
 
7617
    
 
7618
 
 
7619
    
 
7620
    
 
7621
    
 
7622
 
 
7623
 
 
7624
if test -n "${ZSH_VERSION+set}" ; then
 
7625
   setopt NO_GLOB_SUBST
 
7626
fi
 
7627
 
 
7628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
 
7629
$as_echo_n "checking for objdir... " >&6; }
 
7630
if ${lt_cv_objdir+:} false; then :
 
7631
  $as_echo_n "(cached) " >&6
 
7632
else
 
7633
  rm -f .libs 2>/dev/null
 
7634
mkdir .libs 2>/dev/null
 
7635
if test -d .libs; then
 
7636
  lt_cv_objdir=.libs
 
7637
else
 
7638
  # MS-DOS does not allow filenames that begin with a dot.
 
7639
  lt_cv_objdir=_libs
 
7640
fi
 
7641
rmdir .libs 2>/dev/null
 
7642
fi
 
7643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
 
7644
$as_echo "$lt_cv_objdir" >&6; }
 
7645
objdir=$lt_cv_objdir
 
7646
 
 
7647
    
 
7648
    
 
7649
    
 
7650
 
 
7651
cat >>confdefs.h <<_ACEOF
 
7652
@%:@define LT_OBJDIR "$lt_cv_objdir/"
 
7653
_ACEOF
 
7654
 
 
7655
 
 
7656
 
 
7657
 
 
7658
case $host_os in
 
7659
aix3*)
 
7660
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7661
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7662
  # vanish in a puff of smoke.
 
7663
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7664
    COLLECT_NAMES=
 
7665
    export COLLECT_NAMES
 
7666
  fi
 
7667
  ;;
 
7668
esac
 
7669
 
 
7670
# Global variables:
 
7671
ofile=libtool
 
7672
can_build_shared=yes
 
7673
 
 
7674
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7675
# which needs '.lib').
 
7676
libext=a
 
7677
 
 
7678
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7679
 
 
7680
old_CC="$CC"
 
7681
old_CFLAGS="$CFLAGS"
 
7682
 
 
7683
# Set sane defaults for various variables
 
7684
test -z "$CC" && CC=cc
 
7685
test -z "$LTCC" && LTCC=$CC
 
7686
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7687
test -z "$LD" && LD=ld
 
7688
test -z "$ac_objext" && ac_objext=o
 
7689
 
 
7690
for cc_temp in $compiler""; do
 
7691
  case $cc_temp in
 
7692
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7693
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7694
    \-*) ;;
 
7695
    *) break;;
 
7696
  esac
 
7697
done
 
7698
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
 
7699
 
 
7700
 
 
7701
# Only perform the check for file, if the check method requires it
 
7702
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7703
case $deplibs_check_method in
 
7704
file_magic*)
 
7705
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7706
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
 
7707
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7708
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7709
  $as_echo_n "(cached) " >&6
 
7710
else
 
7711
  case $MAGIC_CMD in
 
7712
[\\/*] |  ?:[\\/]*)
 
7713
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7714
  ;;
 
7715
*)
 
7716
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7717
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7718
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7719
  for ac_dir in $ac_dummy; do
 
7720
    IFS="$lt_save_ifs"
 
7721
    test -z "$ac_dir" && ac_dir=.
 
7722
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7723
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7724
      if test -n "$file_magic_test_file"; then
 
7725
        case $deplibs_check_method in
 
7726
        "file_magic "*)
 
7727
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7728
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7729
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7730
            $EGREP "$file_magic_regex" > /dev/null; then
 
7731
            :
 
7732
          else
 
7733
            cat <<_LT_EOF 1>&2
 
7734
 
 
7735
*** Warning: the command libtool uses to detect shared libraries,
 
7736
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7737
*** The result is that libtool may fail to recognize shared libraries
 
7738
*** as such.  This will affect the creation of libtool libraries that
 
7739
*** depend on shared libraries, but programs linked with such libtool
 
7740
*** libraries will work regardless of this problem.  Nevertheless, you
 
7741
*** may want to report the problem to your system manager and/or to
 
7742
*** bug-libtool@gnu.org
 
7743
 
 
7744
_LT_EOF
 
7745
          fi ;;
 
7746
        esac
 
7747
      fi
 
7748
      break
 
7749
    fi
 
7750
  done
 
7751
  IFS="$lt_save_ifs"
 
7752
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7753
  ;;
 
7754
esac
 
7755
fi
 
7756
 
 
7757
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7758
if test -n "$MAGIC_CMD"; then
 
7759
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7760
$as_echo "$MAGIC_CMD" >&6; }
 
7761
else
 
7762
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7763
$as_echo "no" >&6; }
 
7764
fi
 
7765
 
 
7766
    
 
7767
    
 
7768
    
 
7769
 
 
7770
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7771
  if test -n "$ac_tool_prefix"; then
 
7772
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
 
7773
$as_echo_n "checking for file... " >&6; }
 
7774
if ${lt_cv_path_MAGIC_CMD+:} false; then :
 
7775
  $as_echo_n "(cached) " >&6
 
7776
else
 
7777
  case $MAGIC_CMD in
 
7778
[\\/*] |  ?:[\\/]*)
 
7779
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7780
  ;;
 
7781
*)
 
7782
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7783
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7784
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7785
  for ac_dir in $ac_dummy; do
 
7786
    IFS="$lt_save_ifs"
 
7787
    test -z "$ac_dir" && ac_dir=.
 
7788
    if test -f $ac_dir/file; then
 
7789
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7790
      if test -n "$file_magic_test_file"; then
 
7791
        case $deplibs_check_method in
 
7792
        "file_magic "*)
 
7793
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7794
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7795
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7796
            $EGREP "$file_magic_regex" > /dev/null; then
 
7797
            :
 
7798
          else
 
7799
            cat <<_LT_EOF 1>&2
 
7800
 
 
7801
*** Warning: the command libtool uses to detect shared libraries,
 
7802
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7803
*** The result is that libtool may fail to recognize shared libraries
 
7804
*** as such.  This will affect the creation of libtool libraries that
 
7805
*** depend on shared libraries, but programs linked with such libtool
 
7806
*** libraries will work regardless of this problem.  Nevertheless, you
 
7807
*** may want to report the problem to your system manager and/or to
 
7808
*** bug-libtool@gnu.org
 
7809
 
 
7810
_LT_EOF
 
7811
          fi ;;
 
7812
        esac
 
7813
      fi
 
7814
      break
 
7815
    fi
 
7816
  done
 
7817
  IFS="$lt_save_ifs"
 
7818
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7819
  ;;
 
7820
esac
 
7821
fi
 
7822
 
 
7823
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7824
if test -n "$MAGIC_CMD"; then
 
7825
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
 
7826
$as_echo "$MAGIC_CMD" >&6; }
 
7827
else
 
7828
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7829
$as_echo "no" >&6; }
 
7830
fi
 
7831
 
 
7832
 
 
7833
  else
 
7834
    MAGIC_CMD=:
 
7835
  fi
 
7836
fi
 
7837
 
 
7838
  fi
 
7839
  ;;
 
7840
esac
 
7841
 
 
7842
# Use C for the default configuration in the libtool script
 
7843
 
 
7844
lt_save_CC="$CC"
 
7845
ac_ext=c
 
7846
ac_cpp='$CPP $CPPFLAGS'
 
7847
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7848
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7849
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7850
 
 
7851
 
 
7852
# Source file extension for C test sources.
 
7853
ac_ext=c
 
7854
 
 
7855
# Object file extension for compiled C test sources.
 
7856
objext=o
 
7857
objext=$objext
 
7858
 
 
7859
# Code to be used in simple compile tests
 
7860
lt_simple_compile_test_code="int some_variable = 0;"
 
7861
 
 
7862
# Code to be used in simple link tests
 
7863
lt_simple_link_test_code='int main(){return(0);}'
 
7864
 
 
7865
 
 
7866
 
 
7867
 
 
7868
 
 
7869
 
 
7870
 
 
7871
# If no C compiler was specified, use CC.
 
7872
LTCC=${LTCC-"$CC"}
 
7873
 
 
7874
# If no C compiler flags were specified, use CFLAGS.
 
7875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7876
 
 
7877
# Allow CC to be a program name with arguments.
 
7878
compiler=$CC
 
7879
 
 
7880
# Save the default compiler, since it gets overwritten when the other
 
7881
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
7882
compiler_DEFAULT=$CC
 
7883
 
 
7884
# save warnings/boilerplate of simple test code
 
7885
ac_outfile=conftest.$ac_objext
 
7886
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7887
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7888
_lt_compiler_boilerplate=`cat conftest.err`
 
7889
$RM conftest*
 
7890
 
 
7891
ac_outfile=conftest.$ac_objext
 
7892
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7893
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7894
_lt_linker_boilerplate=`cat conftest.err`
 
7895
$RM -r conftest*
 
7896
 
 
7897
 
 
7898
## CAVEAT EMPTOR:
 
7899
## There is no encapsulation within the following macros, do not change
 
7900
## the running order or otherwise move them around unless you know exactly
 
7901
## what you are doing...
 
7902
if test -n "$compiler"; then
 
7903
  
 
7904
lt_prog_compiler_no_builtin_flag=
 
7905
 
 
7906
if test "$GCC" = yes; then
 
7907
  case $cc_basename in
 
7908
  nvcc*)
 
7909
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
 
7910
  *)
 
7911
    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
 
7912
  esac
 
7913
 
 
7914
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7915
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7916
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
 
7917
  $as_echo_n "(cached) " >&6
 
7918
else
 
7919
  lt_cv_prog_compiler_rtti_exceptions=no
 
7920
   ac_outfile=conftest.$ac_objext
 
7921
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7922
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7923
   # Insert the option either (1) after the last *FLAGS variable, or
 
7924
   # (2) before a word containing "conftest.", or (3) at the end.
 
7925
   # Note that $ac_compile itself does not contain backslashes and begins
 
7926
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7927
   # The option is referenced via a variable to avoid confusing sed.
 
7928
   lt_compile=`echo "$ac_compile" | $SED \
 
7929
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7930
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7931
   -e 's:$: $lt_compiler_flag:'`
 
7932
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
7933
   (eval "$lt_compile" 2>conftest.err)
 
7934
   ac_status=$?
 
7935
   cat conftest.err >&5
 
7936
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7937
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7938
     # The compiler can only warn and ignore the option if not recognized
 
7939
     # So say no if there are warnings other than the usual output.
 
7940
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
7941
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7942
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7943
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7944
     fi
 
7945
   fi
 
7946
   $RM conftest*
 
7947
 
 
7948
fi
 
7949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7950
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7951
 
 
7952
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7953
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7954
else
 
7955
    :
 
7956
fi
 
7957
 
 
7958
fi
 
7959
 
 
7960
    
 
7961
    
 
7962
    
 
7963
 
 
7964
 
 
7965
  lt_prog_compiler_wl=
 
7966
lt_prog_compiler_pic=
 
7967
lt_prog_compiler_static=
 
7968
 
 
7969
 
 
7970
  if test "$GCC" = yes; then
 
7971
    lt_prog_compiler_wl='-Wl,'
 
7972
    lt_prog_compiler_static='-static'
 
7973
 
 
7974
    case $host_os in
 
7975
      aix*)
 
7976
      # All AIX code is PIC.
 
7977
      if test "$host_cpu" = ia64; then
 
7978
        # AIX 5 now supports IA64 processor
 
7979
        lt_prog_compiler_static='-Bstatic'
 
7980
      fi
 
7981
      ;;
 
7982
 
 
7983
    amigaos*)
 
7984
      case $host_cpu in
 
7985
      powerpc)
 
7986
            # see comment about AmigaOS4 .so support
 
7987
            lt_prog_compiler_pic='-fPIC'
 
7988
        ;;
 
7989
      m68k)
 
7990
            # FIXME: we need at least 68020 code to build shared libraries, but
 
7991
            # adding the `-m68020' flag to GCC prevents building anything better,
 
7992
            # like `-m68040'.
 
7993
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7994
        ;;
 
7995
      esac
 
7996
      ;;
 
7997
 
 
7998
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7999
      # PIC is the default for these OSes.
 
8000
      ;;
 
8001
 
 
8002
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8003
      # This hack is so that the source file can tell whether it is being
 
8004
      # built for inclusion in a dll (and should export symbols for example).
 
8005
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
8006
      # (--disable-auto-import) libraries
 
8007
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8008
      ;;
 
8009
 
 
8010
    darwin* | rhapsody*)
 
8011
      # PIC is the default on this platform
 
8012
      # Common symbols not allowed in MH_DYLIB files
 
8013
      lt_prog_compiler_pic='-fno-common'
 
8014
      ;;
 
8015
 
 
8016
    haiku*)
 
8017
      # PIC is the default for Haiku.
 
8018
      # The "-static" flag exists, but is broken.
 
8019
      lt_prog_compiler_static=
 
8020
      ;;
 
8021
 
 
8022
    hpux*)
 
8023
      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 
8024
      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 
8025
      # sets the default TLS model and affects inlining.
 
8026
      case $host_cpu in
 
8027
      hppa*64*)
 
8028
        # +Z the default
 
8029
        ;;
 
8030
      *)
 
8031
        lt_prog_compiler_pic='-fPIC'
 
8032
        ;;
 
8033
      esac
 
8034
      ;;
 
8035
 
 
8036
    interix[3-9]*)
 
8037
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
8038
      # Instead, we relocate shared libraries at runtime.
 
8039
      ;;
 
8040
 
 
8041
    msdosdjgpp*)
 
8042
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8043
      # on systems that don't support them.
 
8044
      lt_prog_compiler_can_build_shared=no
 
8045
      enable_shared=no
 
8046
      ;;
 
8047
 
 
8048
    *nto* | *qnx*)
 
8049
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8050
      # it will coredump.
 
8051
      lt_prog_compiler_pic='-fPIC -shared'
 
8052
      ;;
 
8053
 
 
8054
    sysv4*MP*)
 
8055
      if test -d /usr/nec; then
 
8056
        lt_prog_compiler_pic=-Kconform_pic
 
8057
      fi
 
8058
      ;;
 
8059
 
 
8060
    *)
 
8061
      lt_prog_compiler_pic='-fPIC'
 
8062
      ;;
 
8063
    esac
 
8064
 
 
8065
    case $cc_basename in
 
8066
    nvcc*) # Cuda Compiler Driver 2.2
 
8067
      lt_prog_compiler_wl='-Xlinker '
 
8068
      if test -n "$lt_prog_compiler_pic"; then
 
8069
        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
 
8070
      fi
 
8071
      ;;
 
8072
    esac
 
8073
  else
 
8074
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8075
    case $host_os in
 
8076
    aix*)
 
8077
      lt_prog_compiler_wl='-Wl,'
 
8078
      if test "$host_cpu" = ia64; then
 
8079
        # AIX 5 now supports IA64 processor
 
8080
        lt_prog_compiler_static='-Bstatic'
 
8081
      else
 
8082
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8083
      fi
 
8084
      ;;
 
8085
 
 
8086
    mingw* | cygwin* | pw32* | os2* | cegcc*)
 
8087
      # This hack is so that the source file can tell whether it is being
 
8088
      # built for inclusion in a dll (and should export symbols for example).
 
8089
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8090
      ;;
 
8091
 
 
8092
    hpux9* | hpux10* | hpux11*)
 
8093
      lt_prog_compiler_wl='-Wl,'
 
8094
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8095
      # not for PA HP-UX.
 
8096
      case $host_cpu in
 
8097
      hppa*64*|ia64*)
 
8098
        # +Z the default
 
8099
        ;;
 
8100
      *)
 
8101
        lt_prog_compiler_pic='+Z'
 
8102
        ;;
 
8103
      esac
 
8104
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8105
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8106
      ;;
 
8107
 
 
8108
    irix5* | irix6* | nonstopux*)
 
8109
      lt_prog_compiler_wl='-Wl,'
 
8110
      # PIC (with -KPIC) is the default.
 
8111
      lt_prog_compiler_static='-non_shared'
 
8112
      ;;
 
8113
 
 
8114
    linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
8115
      case $cc_basename in
 
8116
      # old Intel for x86_64 which still supported -KPIC.
 
8117
      ecc*)
 
8118
        lt_prog_compiler_wl='-Wl,'
 
8119
        lt_prog_compiler_pic='-KPIC'
 
8120
        lt_prog_compiler_static='-static'
 
8121
        ;;
 
8122
      # icc used to be incompatible with GCC.
 
8123
      # ICC 10 doesn't accept -KPIC any more.
 
8124
      icc* | ifort*)
 
8125
        lt_prog_compiler_wl='-Wl,'
 
8126
        lt_prog_compiler_pic='-fPIC'
 
8127
        lt_prog_compiler_static='-static'
 
8128
        ;;
 
8129
      # Lahey Fortran 8.1.
 
8130
      lf95*)
 
8131
        lt_prog_compiler_wl='-Wl,'
 
8132
        lt_prog_compiler_pic='--shared'
 
8133
        lt_prog_compiler_static='--static'
 
8134
        ;;
 
8135
      nagfor*)
 
8136
        # NAG Fortran compiler
 
8137
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
8138
        lt_prog_compiler_pic='-PIC'
 
8139
        lt_prog_compiler_static='-Bstatic'
 
8140
        ;;
 
8141
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 
8142
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8143
        # which looks to be a dead project)
 
8144
        lt_prog_compiler_wl='-Wl,'
 
8145
        lt_prog_compiler_pic='-fpic'
 
8146
        lt_prog_compiler_static='-Bstatic'
 
8147
        ;;
 
8148
      ccc*)
 
8149
        lt_prog_compiler_wl='-Wl,'
 
8150
        # All Alpha code is PIC.
 
8151
        lt_prog_compiler_static='-non_shared'
 
8152
        ;;
 
8153
      xl* | bgxl* | bgf* | mpixl*)
 
8154
        # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 
8155
        lt_prog_compiler_wl='-Wl,'
 
8156
        lt_prog_compiler_pic='-qpic'
 
8157
        lt_prog_compiler_static='-qstaticlink'
 
8158
        ;;
 
8159
      *)
 
8160
        case `$CC -V 2>&1 | sed 5q` in
 
8161
        *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
 
8162
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8163
          lt_prog_compiler_pic='-KPIC'
 
8164
          lt_prog_compiler_static='-Bstatic'
 
8165
          lt_prog_compiler_wl=''
 
8166
          ;;
 
8167
        *Sun\ F* | *Sun*Fortran*)
 
8168
          lt_prog_compiler_pic='-KPIC'
 
8169
          lt_prog_compiler_static='-Bstatic'
 
8170
          lt_prog_compiler_wl='-Qoption ld '
 
8171
          ;;
 
8172
        *Sun\ C*)
 
8173
          # Sun C 5.9
 
8174
          lt_prog_compiler_pic='-KPIC'
 
8175
          lt_prog_compiler_static='-Bstatic'
 
8176
          lt_prog_compiler_wl='-Wl,'
 
8177
          ;;
 
8178
        *Intel*\ [CF]*Compiler*)
 
8179
          lt_prog_compiler_wl='-Wl,'
 
8180
          lt_prog_compiler_pic='-fPIC'
 
8181
          lt_prog_compiler_static='-static'
 
8182
          ;;
 
8183
        *Portland\ Group*)
 
8184
          lt_prog_compiler_wl='-Wl,'
 
8185
          lt_prog_compiler_pic='-fpic'
 
8186
          lt_prog_compiler_static='-Bstatic'
 
8187
          ;;
 
8188
        esac
 
8189
        ;;
 
8190
      esac
 
8191
      ;;
 
8192
 
 
8193
    newsos6)
 
8194
      lt_prog_compiler_pic='-KPIC'
 
8195
      lt_prog_compiler_static='-Bstatic'
 
8196
      ;;
 
8197
 
 
8198
    *nto* | *qnx*)
 
8199
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
8200
      # it will coredump.
 
8201
      lt_prog_compiler_pic='-fPIC -shared'
 
8202
      ;;
 
8203
 
 
8204
    osf3* | osf4* | osf5*)
 
8205
      lt_prog_compiler_wl='-Wl,'
 
8206
      # All OSF/1 code is PIC.
 
8207
      lt_prog_compiler_static='-non_shared'
 
8208
      ;;
 
8209
 
 
8210
    rdos*)
 
8211
      lt_prog_compiler_static='-non_shared'
 
8212
      ;;
 
8213
 
 
8214
    solaris*)
 
8215
      lt_prog_compiler_pic='-KPIC'
 
8216
      lt_prog_compiler_static='-Bstatic'
 
8217
      case $cc_basename in
 
8218
      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 
8219
        lt_prog_compiler_wl='-Qoption ld ';;
 
8220
      *)
 
8221
        lt_prog_compiler_wl='-Wl,';;
 
8222
      esac
 
8223
      ;;
 
8224
 
 
8225
    sunos4*)
 
8226
      lt_prog_compiler_wl='-Qoption ld '
 
8227
      lt_prog_compiler_pic='-PIC'
 
8228
      lt_prog_compiler_static='-Bstatic'
 
8229
      ;;
 
8230
 
 
8231
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8232
      lt_prog_compiler_wl='-Wl,'
 
8233
      lt_prog_compiler_pic='-KPIC'
 
8234
      lt_prog_compiler_static='-Bstatic'
 
8235
      ;;
 
8236
 
 
8237
    sysv4*MP*)
 
8238
      if test -d /usr/nec ;then
 
8239
        lt_prog_compiler_pic='-Kconform_pic'
 
8240
        lt_prog_compiler_static='-Bstatic'
 
8241
      fi
 
8242
      ;;
 
8243
 
 
8244
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8245
      lt_prog_compiler_wl='-Wl,'
 
8246
      lt_prog_compiler_pic='-KPIC'
 
8247
      lt_prog_compiler_static='-Bstatic'
 
8248
      ;;
 
8249
 
 
8250
    unicos*)
 
8251
      lt_prog_compiler_wl='-Wl,'
 
8252
      lt_prog_compiler_can_build_shared=no
 
8253
      ;;
 
8254
 
 
8255
    uts4*)
 
8256
      lt_prog_compiler_pic='-pic'
 
8257
      lt_prog_compiler_static='-Bstatic'
 
8258
      ;;
 
8259
 
 
8260
    *)
 
8261
      lt_prog_compiler_can_build_shared=no
 
8262
      ;;
 
8263
    esac
 
8264
  fi
 
8265
 
 
8266
case $host_os in
 
8267
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8268
  *djgpp*)
 
8269
    lt_prog_compiler_pic=
 
8270
    ;;
 
8271
  *)
 
8272
    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
 
8273
    ;;
 
8274
esac
 
8275
 
 
8276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
 
8277
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
8278
if ${lt_cv_prog_compiler_pic+:} false; then :
 
8279
  $as_echo_n "(cached) " >&6
 
8280
else
 
8281
  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
 
8282
fi
 
8283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
 
8284
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
 
8285
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
 
8286
 
 
8287
#
 
8288
# Check to make sure the PIC flag actually works.
 
8289
#
 
8290
if test -n "$lt_prog_compiler_pic"; then
 
8291
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8292
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8293
if ${lt_cv_prog_compiler_pic_works+:} false; then :
 
8294
  $as_echo_n "(cached) " >&6
 
8295
else
 
8296
  lt_cv_prog_compiler_pic_works=no
 
8297
   ac_outfile=conftest.$ac_objext
 
8298
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8299
   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
 
8300
   # Insert the option either (1) after the last *FLAGS variable, or
 
8301
   # (2) before a word containing "conftest.", or (3) at the end.
 
8302
   # Note that $ac_compile itself does not contain backslashes and begins
 
8303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8304
   # The option is referenced via a variable to avoid confusing sed.
 
8305
   lt_compile=`echo "$ac_compile" | $SED \
 
8306
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8307
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8308
   -e 's:$: $lt_compiler_flag:'`
 
8309
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8310
   (eval "$lt_compile" 2>conftest.err)
 
8311
   ac_status=$?
 
8312
   cat conftest.err >&5
 
8313
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8314
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8315
     # The compiler can only warn and ignore the option if not recognized
 
8316
     # So say no if there are warnings other than the usual output.
 
8317
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 
8318
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8319
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8320
       lt_cv_prog_compiler_pic_works=yes
 
8321
     fi
 
8322
   fi
 
8323
   $RM conftest*
 
8324
 
 
8325
fi
 
8326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
 
8327
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8328
 
 
8329
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8330
    case $lt_prog_compiler_pic in
 
8331
     "" | " "*) ;;
 
8332
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8333
     esac
 
8334
else
 
8335
    lt_prog_compiler_pic=
 
8336
     lt_prog_compiler_can_build_shared=no
 
8337
fi
 
8338
 
 
8339
fi
 
8340
 
 
8341
    
 
8342
    
 
8343
    
 
8344
 
 
8345
 
 
8346
 
 
8347
    
 
8348
    
 
8349
    
 
8350
 
 
8351
#
 
8352
# Check to make sure the static flag actually works.
 
8353
#
 
8354
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8356
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8357
if ${lt_cv_prog_compiler_static_works+:} false; then :
 
8358
  $as_echo_n "(cached) " >&6
 
8359
else
 
8360
  lt_cv_prog_compiler_static_works=no
 
8361
   save_LDFLAGS="$LDFLAGS"
 
8362
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8363
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8364
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8365
     # The linker can only warn and ignore the option if not recognized
 
8366
     # So say no if there are warnings
 
8367
     if test -s conftest.err; then
 
8368
       # Append any errors to the config.log.
 
8369
       cat conftest.err 1>&5
 
8370
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
8371
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8372
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8373
         lt_cv_prog_compiler_static_works=yes
 
8374
       fi
 
8375
     else
 
8376
       lt_cv_prog_compiler_static_works=yes
 
8377
     fi
 
8378
   fi
 
8379
   $RM -r conftest*
 
8380
   LDFLAGS="$save_LDFLAGS"
 
8381
 
 
8382
fi
 
8383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
 
8384
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8385
 
 
8386
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8387
    :
 
8388
else
 
8389
    lt_prog_compiler_static=
 
8390
fi
 
8391
 
 
8392
 
 
8393
    
 
8394
    
 
8395
    
 
8396
 
 
8397
 
 
8398
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8399
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8400
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8401
  $as_echo_n "(cached) " >&6
 
8402
else
 
8403
  lt_cv_prog_compiler_c_o=no
 
8404
   $RM -r conftest 2>/dev/null
 
8405
   mkdir conftest
 
8406
   cd conftest
 
8407
   mkdir out
 
8408
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8409
 
 
8410
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8411
   # Insert the option either (1) after the last *FLAGS variable, or
 
8412
   # (2) before a word containing "conftest.", or (3) at the end.
 
8413
   # Note that $ac_compile itself does not contain backslashes and begins
 
8414
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8415
   lt_compile=`echo "$ac_compile" | $SED \
 
8416
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8417
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8418
   -e 's:$: $lt_compiler_flag:'`
 
8419
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8420
   (eval "$lt_compile" 2>out/conftest.err)
 
8421
   ac_status=$?
 
8422
   cat out/conftest.err >&5
 
8423
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8424
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8425
   then
 
8426
     # The compiler can only warn and ignore the option if not recognized
 
8427
     # So say no if there are warnings
 
8428
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8429
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8430
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8431
       lt_cv_prog_compiler_c_o=yes
 
8432
     fi
 
8433
   fi
 
8434
   chmod u+w . 2>&5
 
8435
   $RM conftest*
 
8436
   # SGI C++ compiler will create directory out/ii_files/ for
 
8437
   # template instantiation
 
8438
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8439
   $RM out/* && rmdir out
 
8440
   cd ..
 
8441
   $RM -r conftest
 
8442
   $RM conftest*
 
8443
 
 
8444
fi
 
8445
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8446
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8447
 
 
8448
    
 
8449
    
 
8450
    
 
8451
 
 
8452
 
 
8453
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8454
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8455
if ${lt_cv_prog_compiler_c_o+:} false; then :
 
8456
  $as_echo_n "(cached) " >&6
 
8457
else
 
8458
  lt_cv_prog_compiler_c_o=no
 
8459
   $RM -r conftest 2>/dev/null
 
8460
   mkdir conftest
 
8461
   cd conftest
 
8462
   mkdir out
 
8463
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8464
 
 
8465
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8466
   # Insert the option either (1) after the last *FLAGS variable, or
 
8467
   # (2) before a word containing "conftest.", or (3) at the end.
 
8468
   # Note that $ac_compile itself does not contain backslashes and begins
 
8469
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8470
   lt_compile=`echo "$ac_compile" | $SED \
 
8471
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8472
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8473
   -e 's:$: $lt_compiler_flag:'`
 
8474
   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
 
8475
   (eval "$lt_compile" 2>out/conftest.err)
 
8476
   ac_status=$?
 
8477
   cat out/conftest.err >&5
 
8478
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8479
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8480
   then
 
8481
     # The compiler can only warn and ignore the option if not recognized
 
8482
     # So say no if there are warnings
 
8483
     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 
8484
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8485
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8486
       lt_cv_prog_compiler_c_o=yes
 
8487
     fi
 
8488
   fi
 
8489
   chmod u+w . 2>&5
 
8490
   $RM conftest*
 
8491
   # SGI C++ compiler will create directory out/ii_files/ for
 
8492
   # template instantiation
 
8493
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
8494
   $RM out/* && rmdir out
 
8495
   cd ..
 
8496
   $RM -r conftest
 
8497
   $RM conftest*
 
8498
 
 
8499
fi
 
8500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
 
8501
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8502
 
 
8503
 
 
8504
 
 
8505
 
 
8506
hard_links="nottested"
 
8507
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8508
  # do not overwrite the value of need_locks provided by the user
 
8509
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
 
8510
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8511
  hard_links=yes
 
8512
  $RM conftest*
 
8513
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8514
  touch conftest.a
 
8515
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8516
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
 
8518
$as_echo "$hard_links" >&6; }
 
8519
  if test "$hard_links" = no; then
 
8520
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8521
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8522
    need_locks=warn
 
8523
  fi
 
8524
else
 
8525
  need_locks=no
 
8526
fi
 
8527
 
 
8528
    
 
8529
    
 
8530
    
 
8531
 
 
8532
 
 
8533
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8534
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8535
 
 
8536
  runpath_var=
 
8537
  allow_undefined_flag=
 
8538
  always_export_symbols=no
 
8539
  archive_cmds=
 
8540
  archive_expsym_cmds=
 
8541
  compiler_needs_object=no
 
8542
  enable_shared_with_static_runtimes=no
 
8543
  export_dynamic_flag_spec=
 
8544
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8545
  hardcode_automatic=no
 
8546
  hardcode_direct=no
 
8547
  hardcode_direct_absolute=no
 
8548
  hardcode_libdir_flag_spec=
 
8549
  hardcode_libdir_separator=
 
8550
  hardcode_minus_L=no
 
8551
  hardcode_shlibpath_var=unsupported
 
8552
  inherit_rpath=no
 
8553
  link_all_deplibs=unknown
 
8554
  module_cmds=
 
8555
  module_expsym_cmds=
 
8556
  old_archive_from_new_cmds=
 
8557
  old_archive_from_expsyms_cmds=
 
8558
  thread_safe_flag_spec=
 
8559
  whole_archive_flag_spec=
 
8560
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8561
  # included in the symbol list
 
8562
  include_expsyms=
 
8563
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8564
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8565
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8566
  # as well as any symbol that contains `d'.
 
8567
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8568
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8569
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8570
  # the symbol is explicitly referenced.  Since portable code cannot
 
8571
  # rely on this symbol name, it's probably fine to never include it in
 
8572
  # preloaded symbol tables.
 
8573
  # Exclude shared library initialization/finalization symbols.
 
8574
  extract_expsyms_cmds=
 
8575
 
 
8576
  case $host_os in
 
8577
  cygwin* | mingw* | pw32* | cegcc*)
 
8578
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8579
    # When not using gcc, we currently assume that we are using
 
8580
    # Microsoft Visual C++.
 
8581
    if test "$GCC" != yes; then
 
8582
      with_gnu_ld=no
 
8583
    fi
 
8584
    ;;
 
8585
  interix*)
 
8586
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8587
    with_gnu_ld=yes
 
8588
    ;;
 
8589
  openbsd*)
 
8590
    with_gnu_ld=no
 
8591
    ;;
 
8592
  esac
 
8593
 
 
8594
  ld_shlibs=yes
 
8595
 
 
8596
  # On some targets, GNU ld is compatible enough with the native linker
 
8597
  # that we're better off using the native interface for both.
 
8598
  lt_use_gnu_ld_interface=no
 
8599
  if test "$with_gnu_ld" = yes; then
 
8600
    case $host_os in
 
8601
      aix*)
 
8602
        # The AIX port of GNU ld has always aspired to compatibility
 
8603
        # with the native linker.  However, as the warning in the GNU ld
 
8604
        # block says, versions before 2.19.5* couldn't really create working
 
8605
        # shared libraries, regardless of the interface used.
 
8606
        case `$LD -v 2>&1` in
 
8607
          *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 
8608
          *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
 
8609
          *\ \(GNU\ Binutils\)\ [3-9]*) ;;
 
8610
          *)
 
8611
            lt_use_gnu_ld_interface=yes
 
8612
            ;;
 
8613
        esac
 
8614
        ;;
 
8615
      *)
 
8616
        lt_use_gnu_ld_interface=yes
 
8617
        ;;
 
8618
    esac
 
8619
  fi
 
8620
 
 
8621
  if test "$lt_use_gnu_ld_interface" = yes; then
 
8622
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8623
    wlarc='${wl}'
 
8624
 
 
8625
    # Set some defaults for GNU ld with shared library support. These
 
8626
    # are reset later if shared libraries are not supported. Putting them
 
8627
    # here allows them to be overridden if necessary.
 
8628
    runpath_var=LD_RUN_PATH
 
8629
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8630
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8631
    # ancient GNU ld didn't support --whole-archive et. al.
 
8632
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
8633
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8634
    else
 
8635
      whole_archive_flag_spec=
 
8636
    fi
 
8637
    supports_anon_versioning=no
 
8638
    case `$LD -v 2>&1` in
 
8639
      *GNU\ gold*) supports_anon_versioning=yes ;;
 
8640
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8641
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8642
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8643
      *\ 2.11.*) ;; # other 2.11 versions
 
8644
      *) supports_anon_versioning=yes ;;
 
8645
    esac
 
8646
 
 
8647
    # See if GNU ld supports shared libraries.
 
8648
    case $host_os in
 
8649
    aix[3-9]*)
 
8650
      # On AIX/PPC, the GNU linker is very broken
 
8651
      if test "$host_cpu" != ia64; then
 
8652
        ld_shlibs=no
 
8653
        cat <<_LT_EOF 1>&2
 
8654
 
 
8655
*** Warning: the GNU linker, at least up to release 2.19, is reported
 
8656
*** to be unable to reliably create shared libraries on AIX.
 
8657
*** Therefore, libtool is disabling shared libraries support.  If you
 
8658
*** really care for shared libraries, you may want to install binutils
 
8659
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 
8660
*** You will then need to restart the configuration process.
 
8661
 
 
8662
_LT_EOF
 
8663
      fi
 
8664
      ;;
 
8665
 
 
8666
    amigaos*)
 
8667
      case $host_cpu in
 
8668
      powerpc)
 
8669
            # see comment about AmigaOS4 .so support
 
8670
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8671
            archive_expsym_cmds=''
 
8672
        ;;
 
8673
      m68k)
 
8674
            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)'
 
8675
            hardcode_libdir_flag_spec='-L$libdir'
 
8676
            hardcode_minus_L=yes
 
8677
        ;;
 
8678
      esac
 
8679
      ;;
 
8680
 
 
8681
    beos*)
 
8682
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8683
        allow_undefined_flag=unsupported
 
8684
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8685
        # support --undefined.  This deserves some investigation.  FIXME
 
8686
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8687
      else
 
8688
        ld_shlibs=no
 
8689
      fi
 
8690
      ;;
 
8691
 
 
8692
    cygwin* | mingw* | pw32* | cegcc*)
 
8693
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8694
      # as there is no search path for DLLs.
 
8695
      hardcode_libdir_flag_spec='-L$libdir'
 
8696
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
8697
      allow_undefined_flag=unsupported
 
8698
      always_export_symbols=no
 
8699
      enable_shared_with_static_runtimes=yes
 
8700
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
 
8701
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
 
8702
 
 
8703
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
8704
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8705
        # If the export-symbols file already is a .def file (1st line
 
8706
        # is EXPORTS), use it as is; otherwise, prepend...
 
8707
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8708
          cp $export_symbols $output_objdir/$soname.def;
 
8709
        else
 
8710
          echo EXPORTS > $output_objdir/$soname.def;
 
8711
          cat $export_symbols >> $output_objdir/$soname.def;
 
8712
        fi~
 
8713
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8714
      else
 
8715
        ld_shlibs=no
 
8716
      fi
 
8717
      ;;
 
8718
 
 
8719
    haiku*)
 
8720
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8721
      link_all_deplibs=yes
 
8722
      ;;
 
8723
 
 
8724
    interix[3-9]*)
 
8725
      hardcode_direct=no
 
8726
      hardcode_shlibpath_var=no
 
8727
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8728
      export_dynamic_flag_spec='${wl}-E'
 
8729
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8730
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8731
      # default) and relocated if they conflict, which is a slow very memory
 
8732
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8733
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8734
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8735
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8736
      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'
 
8737
      ;;
 
8738
 
 
8739
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 
8740
      tmp_diet=no
 
8741
      if test "$host_os" = linux-dietlibc; then
 
8742
        case $cc_basename in
 
8743
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
8744
        esac
 
8745
      fi
 
8746
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
8747
         && test "$tmp_diet" = no
 
8748
      then
 
8749
        tmp_addflag=' $pic_flag'
 
8750
        tmp_sharedflag='-shared'
 
8751
        case $cc_basename,$host_cpu in
 
8752
        pgcc*)                          # Portland Group C compiler
 
8753
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8754
          tmp_addflag=' $pic_flag'
 
8755
          ;;
 
8756
        pgf77* | pgf90* | pgf95* | pgfortran*)
 
8757
                                        # Portland Group f77 and f90 compilers
 
8758
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8759
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8760
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
8761
          tmp_addflag=' -i_dynamic' ;;
 
8762
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8763
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8764
        ifc* | ifort*)                  # Intel Fortran compiler
 
8765
          tmp_addflag=' -nofor_main' ;;
 
8766
        lf95*)                          # Lahey Fortran 8.1
 
8767
          whole_archive_flag_spec=
 
8768
          tmp_sharedflag='--shared' ;;
 
8769
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 
8770
          tmp_sharedflag='-qmkshrobj'
 
8771
          tmp_addflag= ;;
 
8772
        nvcc*)  # Cuda Compiler Driver 2.2
 
8773
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8774
          compiler_needs_object=yes
 
8775
          ;;
 
8776
        esac
 
8777
        case `$CC -V 2>&1 | sed 5q` in
 
8778
        *Sun\ C*)                       # Sun C 5.9
 
8779
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
8780
          compiler_needs_object=yes
 
8781
          tmp_sharedflag='-G' ;;
 
8782
        *Sun\ F*)                       # Sun Fortran 8.3
 
8783
          tmp_sharedflag='-G' ;;
 
8784
        esac
 
8785
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8786
 
 
8787
        if test "x$supports_anon_versioning" = xyes; then
 
8788
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8789
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8790
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
8791
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8792
        fi
 
8793
 
 
8794
        case $cc_basename in
 
8795
        xlf* | bgf* | bgxlf* | mpixlf*)
 
8796
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
8797
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
8798
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8799
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 
8800
          if test "x$supports_anon_versioning" = xyes; then
 
8801
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
8802
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8803
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
8804
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
8805
          fi
 
8806
          ;;
 
8807
        esac
 
8808
      else
 
8809
        ld_shlibs=no
 
8810
      fi
 
8811
      ;;
 
8812
 
 
8813
    netbsd*)
 
8814
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
8815
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8816
        wlarc=
 
8817
      else
 
8818
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8819
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8820
      fi
 
8821
      ;;
 
8822
 
 
8823
    solaris*)
 
8824
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
8825
        ld_shlibs=no
 
8826
        cat <<_LT_EOF 1>&2
 
8827
 
 
8828
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8829
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8830
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8831
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8832
*** your PATH or compiler configuration so that the native linker is
 
8833
*** used, and then restart.
 
8834
 
 
8835
_LT_EOF
 
8836
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8837
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8838
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8839
      else
 
8840
        ld_shlibs=no
 
8841
      fi
 
8842
      ;;
 
8843
 
 
8844
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8845
      case `$LD -v 2>&1` in
 
8846
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8847
        ld_shlibs=no
 
8848
        cat <<_LT_EOF 1>&2
 
8849
 
 
8850
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8851
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8852
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8853
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8854
*** your PATH or compiler configuration so that the native linker is
 
8855
*** used, and then restart.
 
8856
 
 
8857
_LT_EOF
 
8858
        ;;
 
8859
        *)
 
8860
          # For security reasons, it is highly recommended that you always
 
8861
          # use absolute paths for naming shared libraries, and exclude the
 
8862
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
8863
          # requires that you compile everything twice, which is a pain.
 
8864
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8865
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8866
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8867
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8868
          else
 
8869
            ld_shlibs=no
 
8870
          fi
 
8871
        ;;
 
8872
      esac
 
8873
      ;;
 
8874
 
 
8875
    sunos4*)
 
8876
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8877
      wlarc=
 
8878
      hardcode_direct=yes
 
8879
      hardcode_shlibpath_var=no
 
8880
      ;;
 
8881
 
 
8882
    *)
 
8883
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
8884
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8885
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8886
      else
 
8887
        ld_shlibs=no
 
8888
      fi
 
8889
      ;;
 
8890
    esac
 
8891
 
 
8892
    if test "$ld_shlibs" = no; then
 
8893
      runpath_var=
 
8894
      hardcode_libdir_flag_spec=
 
8895
      export_dynamic_flag_spec=
 
8896
      whole_archive_flag_spec=
 
8897
    fi
 
8898
  else
 
8899
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8900
    case $host_os in
 
8901
    aix3*)
 
8902
      allow_undefined_flag=unsupported
 
8903
      always_export_symbols=yes
 
8904
      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'
 
8905
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8906
      # are no directories specified by -L.
 
8907
      hardcode_minus_L=yes
 
8908
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8909
        # Neither direct hardcoding nor static linking is supported with a
 
8910
        # broken collect2.
 
8911
        hardcode_direct=unsupported
 
8912
      fi
 
8913
      ;;
 
8914
 
 
8915
    aix[4-9]*)
 
8916
      if test "$host_cpu" = ia64; then
 
8917
        # On IA64, the linker does run time linking by default, so we don't
 
8918
        # have to do anything special.
 
8919
        aix_use_runtimelinking=no
 
8920
        exp_sym_flag='-Bexport'
 
8921
        no_entry_flag=""
 
8922
      else
 
8923
        # If we're using GNU nm, then we don't want the "-C" option.
 
8924
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8925
        # Also, AIX nm treats weak defined symbols like other global
 
8926
        # defined symbols, whereas GNU nm marks them as "W".
 
8927
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
8928
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
 
8929
        else
 
8930
          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'
 
8931
        fi
 
8932
        aix_use_runtimelinking=no
 
8933
 
 
8934
        # Test if we are trying to use run time linking or normal
 
8935
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8936
        # need to do runtime linking.
 
8937
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8938
          for ld_flag in $LDFLAGS; do
 
8939
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8940
            aix_use_runtimelinking=yes
 
8941
            break
 
8942
          fi
 
8943
          done
 
8944
          ;;
 
8945
        esac
 
8946
 
 
8947
        exp_sym_flag='-bexport'
 
8948
        no_entry_flag='-bnoentry'
 
8949
      fi
 
8950
 
 
8951
      # When large executables or shared objects are built, AIX ld can
 
8952
      # have problems creating the table of contents.  If linking a library
 
8953
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8954
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8955
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8956
 
 
8957
      archive_cmds=''
 
8958
      hardcode_direct=yes
 
8959
      hardcode_direct_absolute=yes
 
8960
      hardcode_libdir_separator=':'
 
8961
      link_all_deplibs=yes
 
8962
      file_list_spec='${wl}-f,'
 
8963
 
 
8964
      if test "$GCC" = yes; then
 
8965
        case $host_os in aix4.[012]|aix4.[012].*)
 
8966
        # We only want to do this on AIX 4.2 and lower, the check
 
8967
        # below for broken collect2 doesn't work under 4.3+
 
8968
          collect2name=`${CC} -print-prog-name=collect2`
 
8969
          if test -f "$collect2name" &&
 
8970
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
8971
          then
 
8972
          # We have reworked collect2
 
8973
          :
 
8974
          else
 
8975
          # We have old collect2
 
8976
          hardcode_direct=unsupported
 
8977
          # It fails to find uninstalled libraries when the uninstalled
 
8978
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8979
          # to unsupported forces relinking
 
8980
          hardcode_minus_L=yes
 
8981
          hardcode_libdir_flag_spec='-L$libdir'
 
8982
          hardcode_libdir_separator=
 
8983
          fi
 
8984
          ;;
 
8985
        esac
 
8986
        shared_flag='-shared'
 
8987
        if test "$aix_use_runtimelinking" = yes; then
 
8988
          shared_flag="$shared_flag "'${wl}-G'
 
8989
        fi
 
8990
      else
 
8991
        # not using gcc
 
8992
        if test "$host_cpu" = ia64; then
 
8993
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8994
        # chokes on -Wl,-G. The following line is correct:
 
8995
          shared_flag='-G'
 
8996
        else
 
8997
          if test "$aix_use_runtimelinking" = yes; then
 
8998
            shared_flag='${wl}-G'
 
8999
          else
 
9000
            shared_flag='${wl}-bM:SRE'
 
9001
          fi
 
9002
        fi
 
9003
      fi
 
9004
 
 
9005
      export_dynamic_flag_spec='${wl}-bexpall'
 
9006
      # It seems that -bexpall does not export symbols beginning with
 
9007
      # underscore (_), so it is better to generate a list of symbols to export.
 
9008
      always_export_symbols=yes
 
9009
      if test "$aix_use_runtimelinking" = yes; then
 
9010
        # Warning - without using the other runtime loading flags (-brtl),
 
9011
        # -berok will link without error, but may produce a broken library.
 
9012
        allow_undefined_flag='-berok'
 
9013
        # Determine the default libpath from the value encoded in an
 
9014
        # empty executable.
 
9015
        if test "${lt_cv_aix_libpath+set}" = set; then
 
9016
  aix_libpath=$lt_cv_aix_libpath
 
9017
else
 
9018
  if ${lt_cv_aix_libpath_+:} false; then :
 
9019
  $as_echo_n "(cached) " >&6
 
9020
else
 
9021
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9022
/* end confdefs.h.  */
 
9023
 
 
9024
int
 
9025
main ()
 
9026
{
 
9027
 
 
9028
  ;
 
9029
  return 0;
 
9030
}
 
9031
_ACEOF
 
9032
if ac_fn_c_try_link "$LINENO"; then :
 
9033
  
 
9034
  lt_aix_libpath_sed='
 
9035
      /Import File Strings/,/^$/ {
 
9036
          /^0/ {
 
9037
              s/^0  *\([^ ]*\) *$/\1/
 
9038
              p
 
9039
          }
 
9040
      }'
 
9041
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9042
  # Check for a 64-bit object if we didn't find anything.
 
9043
  if test -z "$lt_cv_aix_libpath_"; then
 
9044
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9045
  fi
 
9046
fi
 
9047
rm -f core conftest.err conftest.$ac_objext \
 
9048
    conftest$ac_exeext conftest.$ac_ext
 
9049
  if test -z "$lt_cv_aix_libpath_"; then
 
9050
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9051
  fi
 
9052
  
 
9053
fi
 
9054
 
 
9055
  aix_libpath=$lt_cv_aix_libpath_
 
9056
fi
 
9057
 
 
9058
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9059
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9060
      else
 
9061
        if test "$host_cpu" = ia64; then
 
9062
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
9063
          allow_undefined_flag="-z nodefs"
 
9064
          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"
 
9065
        else
 
9066
         # Determine the default libpath from the value encoded in an
 
9067
         # empty executable.
 
9068
         if test "${lt_cv_aix_libpath+set}" = set; then
 
9069
  aix_libpath=$lt_cv_aix_libpath
 
9070
else
 
9071
  if ${lt_cv_aix_libpath_+:} false; then :
 
9072
  $as_echo_n "(cached) " >&6
 
9073
else
 
9074
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9075
/* end confdefs.h.  */
 
9076
 
 
9077
int
 
9078
main ()
 
9079
{
 
9080
 
 
9081
  ;
 
9082
  return 0;
 
9083
}
 
9084
_ACEOF
 
9085
if ac_fn_c_try_link "$LINENO"; then :
 
9086
  
 
9087
  lt_aix_libpath_sed='
 
9088
      /Import File Strings/,/^$/ {
 
9089
          /^0/ {
 
9090
              s/^0  *\([^ ]*\) *$/\1/
 
9091
              p
 
9092
          }
 
9093
      }'
 
9094
  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9095
  # Check for a 64-bit object if we didn't find anything.
 
9096
  if test -z "$lt_cv_aix_libpath_"; then
 
9097
    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
9098
  fi
 
9099
fi
 
9100
rm -f core conftest.err conftest.$ac_objext \
 
9101
    conftest$ac_exeext conftest.$ac_ext
 
9102
  if test -z "$lt_cv_aix_libpath_"; then
 
9103
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
9104
  fi
 
9105
  
 
9106
fi
 
9107
 
 
9108
  aix_libpath=$lt_cv_aix_libpath_
 
9109
fi
 
9110
 
 
9111
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9112
          # Warning - without using the other run time loading flags,
 
9113
          # -berok will link without error, but may produce a broken library.
 
9114
          no_undefined_flag=' ${wl}-bernotok'
 
9115
          allow_undefined_flag=' ${wl}-berok'
 
9116
          if test "$with_gnu_ld" = yes; then
 
9117
            # We only use this code for GNU lds that support --whole-archive.
 
9118
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9119
          else
 
9120
            # Exported symbols can be pulled into shared objects from archives
 
9121
            whole_archive_flag_spec='$convenience'
 
9122
          fi
 
9123
          archive_cmds_need_lc=yes
 
9124
          # This is similar to how AIX traditionally builds its shared libraries.
 
9125
          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'
 
9126
        fi
 
9127
      fi
 
9128
      ;;
 
9129
 
 
9130
    amigaos*)
 
9131
      case $host_cpu in
 
9132
      powerpc)
 
9133
            # see comment about AmigaOS4 .so support
 
9134
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9135
            archive_expsym_cmds=''
 
9136
        ;;
 
9137
      m68k)
 
9138
            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)'
 
9139
            hardcode_libdir_flag_spec='-L$libdir'
 
9140
            hardcode_minus_L=yes
 
9141
        ;;
 
9142
      esac
 
9143
      ;;
 
9144
 
 
9145
    bsdi[45]*)
 
9146
      export_dynamic_flag_spec=-rdynamic
 
9147
      ;;
 
9148
 
 
9149
    cygwin* | mingw* | pw32* | cegcc*)
 
9150
      # When not using gcc, we currently assume that we are using
 
9151
      # Microsoft Visual C++.
 
9152
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9153
      # no search path for DLLs.
 
9154
      case $cc_basename in
 
9155
      cl*)
 
9156
        # Native MSVC
 
9157
        hardcode_libdir_flag_spec=' '
 
9158
        allow_undefined_flag=unsupported
 
9159
        always_export_symbols=yes
 
9160
        file_list_spec='@'
 
9161
        # Tell ltmain to make .lib files, not .a files.
 
9162
        libext=lib
 
9163
        # Tell ltmain to make .dll files, not .so files.
 
9164
        shrext_cmds=".dll"
 
9165
        # FIXME: Setting linknames here is a bad hack.
 
9166
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
 
9167
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9168
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
 
9169
          else
 
9170
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
 
9171
          fi~
 
9172
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
9173
          linknames='
 
9174
        # The linker will not automatically build a static lib if we build a DLL.
 
9175
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
 
9176
        enable_shared_with_static_runtimes=yes
 
9177
        exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 
9178
        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
9179
        # Don't use ranlib
 
9180
        old_postinstall_cmds='chmod 644 $oldlib'
 
9181
        postlink_cmds='lt_outputfile="@OUTPUT@"~
 
9182
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
9183
          case $lt_outputfile in
 
9184
            *.exe|*.EXE) ;;
 
9185
            *)
 
9186
              lt_outputfile="$lt_outputfile.exe"
 
9187
              lt_tool_outputfile="$lt_tool_outputfile.exe"
 
9188
              ;;
 
9189
          esac~
 
9190
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
 
9191
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
9192
            $RM "$lt_outputfile.manifest";
 
9193
          fi'
 
9194
        ;;
 
9195
      *)
 
9196
        # Assume MSVC wrapper
 
9197
        hardcode_libdir_flag_spec=' '
 
9198
        allow_undefined_flag=unsupported
 
9199
        # Tell ltmain to make .lib files, not .a files.
 
9200
        libext=lib
 
9201
        # Tell ltmain to make .dll files, not .so files.
 
9202
        shrext_cmds=".dll"
 
9203
        # FIXME: Setting linknames here is a bad hack.
 
9204
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 
9205
        # The linker will automatically build a .lib file if we build a DLL.
 
9206
        old_archive_from_new_cmds='true'
 
9207
        # FIXME: Should let the user specify the lib program.
 
9208
        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
9209
        enable_shared_with_static_runtimes=yes
 
9210
        ;;
 
9211
      esac
 
9212
      ;;
 
9213
 
 
9214
    darwin* | rhapsody*)
 
9215
      
 
9216
  
 
9217
  archive_cmds_need_lc=no
 
9218
  hardcode_direct=no
 
9219
  hardcode_automatic=yes
 
9220
  hardcode_shlibpath_var=unsupported
 
9221
  if test "$lt_cv_ld_force_load" = "yes"; then
 
9222
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
9223
    
 
9224
  else
 
9225
    whole_archive_flag_spec=''
 
9226
  fi
 
9227
  link_all_deplibs=yes
 
9228
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
9229
  case $cc_basename in
 
9230
     ifort*) _lt_dar_can_shared=yes ;;
 
9231
     *) _lt_dar_can_shared=$GCC ;;
 
9232
  esac
 
9233
  if test "$_lt_dar_can_shared" = "yes"; then
 
9234
    output_verbose_link_cmd=func_echo_all
 
9235
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
9236
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
9237
    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}"
 
9238
    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}"
 
9239
    
 
9240
  else
 
9241
  ld_shlibs=no
 
9242
  fi
 
9243
 
 
9244
      ;;
 
9245
 
 
9246
    dgux*)
 
9247
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9248
      hardcode_libdir_flag_spec='-L$libdir'
 
9249
      hardcode_shlibpath_var=no
 
9250
      ;;
 
9251
 
 
9252
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9253
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9254
    # does not break anything, and helps significantly (at the cost of a little
 
9255
    # extra space).
 
9256
    freebsd2.2*)
 
9257
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9258
      hardcode_libdir_flag_spec='-R$libdir'
 
9259
      hardcode_direct=yes
 
9260
      hardcode_shlibpath_var=no
 
9261
      ;;
 
9262
 
 
9263
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9264
    freebsd2.*)
 
9265
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9266
      hardcode_direct=yes
 
9267
      hardcode_minus_L=yes
 
9268
      hardcode_shlibpath_var=no
 
9269
      ;;
 
9270
 
 
9271
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9272
    freebsd* | dragonfly*)
 
9273
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9274
      hardcode_libdir_flag_spec='-R$libdir'
 
9275
      hardcode_direct=yes
 
9276
      hardcode_shlibpath_var=no
 
9277
      ;;
 
9278
 
 
9279
    hpux9*)
 
9280
      if test "$GCC" = yes; then
 
9281
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9282
      else
 
9283
        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'
 
9284
      fi
 
9285
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9286
      hardcode_libdir_separator=:
 
9287
      hardcode_direct=yes
 
9288
 
 
9289
      # hardcode_minus_L: Not really in the search PATH,
 
9290
      # but as the default location of the library.
 
9291
      hardcode_minus_L=yes
 
9292
      export_dynamic_flag_spec='${wl}-E'
 
9293
      ;;
 
9294
 
 
9295
    hpux10*)
 
9296
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9297
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9298
      else
 
9299
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9300
      fi
 
9301
      if test "$with_gnu_ld" = no; then
 
9302
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9303
        hardcode_libdir_separator=:
 
9304
        hardcode_direct=yes
 
9305
        hardcode_direct_absolute=yes
 
9306
        export_dynamic_flag_spec='${wl}-E'
 
9307
        # hardcode_minus_L: Not really in the search PATH,
 
9308
        # but as the default location of the library.
 
9309
        hardcode_minus_L=yes
 
9310
      fi
 
9311
      ;;
 
9312
 
 
9313
    hpux11*)
 
9314
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
9315
        case $host_cpu in
 
9316
        hppa*64*)
 
9317
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9318
          ;;
 
9319
        ia64*)
 
9320
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9321
          ;;
 
9322
        *)
 
9323
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9324
          ;;
 
9325
        esac
 
9326
      else
 
9327
        case $host_cpu in
 
9328
        hppa*64*)
 
9329
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9330
          ;;
 
9331
        ia64*)
 
9332
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9333
          ;;
 
9334
        *)
 
9335
        
 
9336
          # Older versions of the 11.00 compiler do not understand -b yet
 
9337
          # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 
9338
          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
 
9339
$as_echo_n "checking if $CC understands -b... " >&6; }
 
9340
if ${lt_cv_prog_compiler__b+:} false; then :
 
9341
  $as_echo_n "(cached) " >&6
 
9342
else
 
9343
  lt_cv_prog_compiler__b=no
 
9344
   save_LDFLAGS="$LDFLAGS"
 
9345
   LDFLAGS="$LDFLAGS -b"
 
9346
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9347
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9348
     # The linker can only warn and ignore the option if not recognized
 
9349
     # So say no if there are warnings
 
9350
     if test -s conftest.err; then
 
9351
       # Append any errors to the config.log.
 
9352
       cat conftest.err 1>&5
 
9353
       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 
9354
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9355
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9356
         lt_cv_prog_compiler__b=yes
 
9357
       fi
 
9358
     else
 
9359
       lt_cv_prog_compiler__b=yes
 
9360
     fi
 
9361
   fi
 
9362
   $RM -r conftest*
 
9363
   LDFLAGS="$save_LDFLAGS"
 
9364
 
 
9365
fi
 
9366
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
 
9367
$as_echo "$lt_cv_prog_compiler__b" >&6; }
 
9368
 
 
9369
if test x"$lt_cv_prog_compiler__b" = xyes; then
 
9370
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9371
else
 
9372
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9373
fi
 
9374
 
 
9375
          ;;
 
9376
        esac
 
9377
      fi
 
9378
      if test "$with_gnu_ld" = no; then
 
9379
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9380
        hardcode_libdir_separator=:
 
9381
 
 
9382
        case $host_cpu in
 
9383
        hppa*64*|ia64*)
 
9384
          hardcode_direct=no
 
9385
          hardcode_shlibpath_var=no
 
9386
          ;;
 
9387
        *)
 
9388
          hardcode_direct=yes
 
9389
          hardcode_direct_absolute=yes
 
9390
          export_dynamic_flag_spec='${wl}-E'
 
9391
 
 
9392
          # hardcode_minus_L: Not really in the search PATH,
 
9393
          # but as the default location of the library.
 
9394
          hardcode_minus_L=yes
 
9395
          ;;
 
9396
        esac
 
9397
      fi
 
9398
      ;;
 
9399
 
 
9400
    irix5* | irix6* | nonstopux*)
 
9401
      if test "$GCC" = yes; then
 
9402
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9403
        # Try to use the -exported_symbol ld option, if it does not
 
9404
        # work, assume that -exports_file does not work either and
 
9405
        # implicitly export all symbols.
 
9406
        # This should be the same for all languages, so no per-tag cache variable.
 
9407
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
 
9408
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
 
9409
if ${lt_cv_irix_exported_symbol+:} false; then :
 
9410
  $as_echo_n "(cached) " >&6
 
9411
else
 
9412
  save_LDFLAGS="$LDFLAGS"
 
9413
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
9414
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
9415
/* end confdefs.h.  */
 
9416
int foo (void) { return 0; }
 
9417
_ACEOF
 
9418
if ac_fn_c_try_link "$LINENO"; then :
 
9419
  lt_cv_irix_exported_symbol=yes
 
9420
else
 
9421
  lt_cv_irix_exported_symbol=no
 
9422
fi
 
9423
rm -f core conftest.err conftest.$ac_objext \
 
9424
    conftest$ac_exeext conftest.$ac_ext
 
9425
           LDFLAGS="$save_LDFLAGS"
 
9426
fi
 
9427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
 
9428
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
 
9429
        if test "$lt_cv_irix_exported_symbol" = yes; then
 
9430
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
9431
        fi
 
9432
      else
 
9433
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9434
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
9435
      fi
 
9436
      archive_cmds_need_lc='no'
 
9437
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9438
      hardcode_libdir_separator=:
 
9439
      inherit_rpath=yes
 
9440
      link_all_deplibs=yes
 
9441
      ;;
 
9442
 
 
9443
    netbsd*)
 
9444
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
9445
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9446
      else
 
9447
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9448
      fi
 
9449
      hardcode_libdir_flag_spec='-R$libdir'
 
9450
      hardcode_direct=yes
 
9451
      hardcode_shlibpath_var=no
 
9452
      ;;
 
9453
 
 
9454
    newsos6)
 
9455
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9456
      hardcode_direct=yes
 
9457
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9458
      hardcode_libdir_separator=:
 
9459
      hardcode_shlibpath_var=no
 
9460
      ;;
 
9461
 
 
9462
    *nto* | *qnx*)
 
9463
      ;;
 
9464
 
 
9465
    openbsd*)
 
9466
      if test -f /usr/libexec/ld.so; then
 
9467
        hardcode_direct=yes
 
9468
        hardcode_shlibpath_var=no
 
9469
        hardcode_direct_absolute=yes
 
9470
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9471
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9472
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9473
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9474
          export_dynamic_flag_spec='${wl}-E'
 
9475
        else
 
9476
          case $host_os in
 
9477
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9478
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9479
             hardcode_libdir_flag_spec='-R$libdir'
 
9480
             ;;
 
9481
           *)
 
9482
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9483
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9484
             ;;
 
9485
          esac
 
9486
        fi
 
9487
      else
 
9488
        ld_shlibs=no
 
9489
      fi
 
9490
      ;;
 
9491
 
 
9492
    os2*)
 
9493
      hardcode_libdir_flag_spec='-L$libdir'
 
9494
      hardcode_minus_L=yes
 
9495
      allow_undefined_flag=unsupported
 
9496
      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'
 
9497
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9498
      ;;
 
9499
 
 
9500
    osf3*)
 
9501
      if test "$GCC" = yes; then
 
9502
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9503
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9504
      else
 
9505
        allow_undefined_flag=' -expect_unresolved \*'
 
9506
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9507
      fi
 
9508
      archive_cmds_need_lc='no'
 
9509
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9510
      hardcode_libdir_separator=:
 
9511
      ;;
 
9512
 
 
9513
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9514
      if test "$GCC" = yes; then
 
9515
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9516
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9517
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9518
      else
 
9519
        allow_undefined_flag=' -expect_unresolved \*'
 
9520
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
9521
        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~
 
9522
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
9523
 
 
9524
        # Both c and cxx compiler support -rpath directly
 
9525
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9526
      fi
 
9527
      archive_cmds_need_lc='no'
 
9528
      hardcode_libdir_separator=:
 
9529
      ;;
 
9530
 
 
9531
    solaris*)
 
9532
      no_undefined_flag=' -z defs'
 
9533
      if test "$GCC" = yes; then
 
9534
        wlarc='${wl}'
 
9535
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9536
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9537
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9538
      else
 
9539
        case `$CC -V 2>&1` in
 
9540
        *"Compilers 5.0"*)
 
9541
          wlarc=''
 
9542
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9543
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9544
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
9545
          ;;
 
9546
        *)
 
9547
          wlarc='${wl}'
 
9548
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9549
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
9550
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
9551
          ;;
 
9552
        esac
 
9553
      fi
 
9554
      hardcode_libdir_flag_spec='-R$libdir'
 
9555
      hardcode_shlibpath_var=no
 
9556
      case $host_os in
 
9557
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9558
      *)
 
9559
        # The compiler driver will combine and reorder linker options,
 
9560
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9561
        # but is careful enough not to reorder.
 
9562
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9563
        if test "$GCC" = yes; then
 
9564
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9565
        else
 
9566
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9567
        fi
 
9568
        ;;
 
9569
      esac
 
9570
      link_all_deplibs=yes
 
9571
      ;;
 
9572
 
 
9573
    sunos4*)
 
9574
      if test "x$host_vendor" = xsequent; then
 
9575
        # Use $CC to link under sequent, because it throws in some extra .o
 
9576
        # files that make .init and .fini sections work.
 
9577
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9578
      else
 
9579
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9580
      fi
 
9581
      hardcode_libdir_flag_spec='-L$libdir'
 
9582
      hardcode_direct=yes
 
9583
      hardcode_minus_L=yes
 
9584
      hardcode_shlibpath_var=no
 
9585
      ;;
 
9586
 
 
9587
    sysv4)
 
9588
      case $host_vendor in
 
9589
        sni)
 
9590
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9591
          hardcode_direct=yes # is this really true???
 
9592
        ;;
 
9593
        siemens)
 
9594
          ## LD is ld it makes a PLAMLIB
 
9595
          ## CC just makes a GrossModule.
 
9596
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9597
          reload_cmds='$CC -r -o $output$reload_objs'
 
9598
          hardcode_direct=no
 
9599
        ;;
 
9600
        motorola)
 
9601
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9602
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9603
        ;;
 
9604
      esac
 
9605
      runpath_var='LD_RUN_PATH'
 
9606
      hardcode_shlibpath_var=no
 
9607
      ;;
 
9608
 
 
9609
    sysv4.3*)
 
9610
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9611
      hardcode_shlibpath_var=no
 
9612
      export_dynamic_flag_spec='-Bexport'
 
9613
      ;;
 
9614
 
 
9615
    sysv4*MP*)
 
9616
      if test -d /usr/nec; then
 
9617
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9618
        hardcode_shlibpath_var=no
 
9619
        runpath_var=LD_RUN_PATH
 
9620
        hardcode_runpath_var=yes
 
9621
        ld_shlibs=yes
 
9622
      fi
 
9623
      ;;
 
9624
 
 
9625
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9626
      no_undefined_flag='${wl}-z,text'
 
9627
      archive_cmds_need_lc=no
 
9628
      hardcode_shlibpath_var=no
 
9629
      runpath_var='LD_RUN_PATH'
 
9630
 
 
9631
      if test "$GCC" = yes; then
 
9632
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9633
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9634
      else
 
9635
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9636
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9637
      fi
 
9638
      ;;
 
9639
 
 
9640
    sysv5* | sco3.2v5* | sco5v6*)
 
9641
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9642
      # link with -lc, and that would cause any symbols used from libc to
 
9643
      # always be unresolved, which means just about no library would
 
9644
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9645
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9646
      # as -z defs.
 
9647
      no_undefined_flag='${wl}-z,text'
 
9648
      allow_undefined_flag='${wl}-z,nodefs'
 
9649
      archive_cmds_need_lc=no
 
9650
      hardcode_shlibpath_var=no
 
9651
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
9652
      hardcode_libdir_separator=':'
 
9653
      link_all_deplibs=yes
 
9654
      export_dynamic_flag_spec='${wl}-Bexport'
 
9655
      runpath_var='LD_RUN_PATH'
 
9656
 
 
9657
      if test "$GCC" = yes; then
 
9658
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9659
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9660
      else
 
9661
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9662
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9663
      fi
 
9664
      ;;
 
9665
 
 
9666
    uts4*)
 
9667
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9668
      hardcode_libdir_flag_spec='-L$libdir'
 
9669
      hardcode_shlibpath_var=no
 
9670
      ;;
 
9671
 
 
9672
    *)
 
9673
      ld_shlibs=no
 
9674
      ;;
 
9675
    esac
 
9676
 
 
9677
    if test x$host_vendor = xsni; then
 
9678
      case $host in
 
9679
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9680
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9681
        ;;
 
9682
      esac
 
9683
    fi
 
9684
  fi
 
9685
 
 
9686
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
 
9687
$as_echo "$ld_shlibs" >&6; }
 
9688
test "$ld_shlibs" = no && can_build_shared=no
 
9689
 
 
9690
with_gnu_ld=$with_gnu_ld
 
9691
 
 
9692
 
 
9693
    
 
9694
    
 
9695
    
 
9696
 
 
9697
    
 
9698
    
 
9699
    
 
9700
 
 
9701
    
 
9702
    
 
9703
    
 
9704
 
 
9705
 
 
9706
#
 
9707
# Do we need to explicitly link libc?
 
9708
#
 
9709
case "x$archive_cmds_need_lc" in
 
9710
x|xyes)
 
9711
  # Assume -lc should be added
 
9712
  archive_cmds_need_lc=yes
 
9713
 
 
9714
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9715
    case $archive_cmds in
 
9716
    *'~'*)
 
9717
      # FIXME: we may have to deal with multi-command sequences.
 
9718
      ;;
 
9719
    '$CC '*)
 
9720
      # Test whether the compiler implicitly links with -lc since on some
 
9721
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9722
      # to ld, don't add -lc before -lgcc.
 
9723
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
 
9724
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9725
if ${lt_cv_archive_cmds_need_lc+:} false; then :
 
9726
  $as_echo_n "(cached) " >&6
 
9727
else
 
9728
  $RM conftest*
 
9729
        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9730
 
 
9731
        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
9732
  (eval $ac_compile) 2>&5
 
9733
  ac_status=$?
 
9734
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9735
  test $ac_status = 0; } 2>conftest.err; then
 
9736
          soname=conftest
 
9737
          lib=conftest
 
9738
          libobjs=conftest.$ac_objext
 
9739
          deplibs=
 
9740
          wl=$lt_prog_compiler_wl
 
9741
          pic_flag=$lt_prog_compiler_pic
 
9742
          compiler_flags=-v
 
9743
          linker_flags=-v
 
9744
          verstring=
 
9745
          output_objdir=.
 
9746
          libname=conftest
 
9747
          lt_save_allow_undefined_flag=$allow_undefined_flag
 
9748
          allow_undefined_flag=
 
9749
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
 
9750
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9751
  ac_status=$?
 
9752
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
9753
  test $ac_status = 0; }
 
9754
          then
 
9755
            lt_cv_archive_cmds_need_lc=no
 
9756
          else
 
9757
            lt_cv_archive_cmds_need_lc=yes
 
9758
          fi
 
9759
          allow_undefined_flag=$lt_save_allow_undefined_flag
 
9760
        else
 
9761
          cat conftest.err 1>&5
 
9762
        fi
 
9763
        $RM conftest*
 
9764
        
 
9765
fi
 
9766
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
 
9767
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
 
9768
      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
 
9769
      ;;
 
9770
    esac
 
9771
  fi
 
9772
  ;;
 
9773
esac
 
9774
 
 
9775
 
 
9776
    
 
9777
    
 
9778
    
 
9779
 
 
9780
 
 
9781
    
 
9782
    
 
9783
    
 
9784
 
 
9785
 
 
9786
    
 
9787
    
 
9788
    
 
9789
 
 
9790
 
 
9791
    
 
9792
    
 
9793
    
 
9794
 
 
9795
 
 
9796
    
 
9797
    
 
9798
    
 
9799
 
 
9800
 
 
9801
    
 
9802
    
 
9803
    
 
9804
 
 
9805
 
 
9806
    
 
9807
    
 
9808
    
 
9809
 
 
9810
 
 
9811
    
 
9812
    
 
9813
    
 
9814
 
 
9815
 
 
9816
    
 
9817
    
 
9818
    
 
9819
 
 
9820
 
 
9821
    
 
9822
    
 
9823
    
 
9824
 
 
9825
 
 
9826
    
 
9827
    
 
9828
    
 
9829
 
 
9830
 
 
9831
    
 
9832
    
 
9833
    
 
9834
 
 
9835
 
 
9836
    
 
9837
    
 
9838
    
 
9839
 
 
9840
 
 
9841
    
 
9842
    
 
9843
    
 
9844
 
 
9845
 
 
9846
    
 
9847
    
 
9848
    
 
9849
 
 
9850
 
 
9851
    
 
9852
    
 
9853
    
 
9854
 
 
9855
 
 
9856
    
 
9857
    
 
9858
    
 
9859
 
 
9860
 
 
9861
    
 
9862
    
 
9863
    
 
9864
 
 
9865
 
 
9866
    
 
9867
    
 
9868
    
 
9869
 
 
9870
 
 
9871
    
 
9872
    
 
9873
    
 
9874
 
 
9875
 
 
9876
    
 
9877
    
 
9878
    
 
9879
 
 
9880
 
 
9881
    
 
9882
    
 
9883
    
 
9884
 
 
9885
 
 
9886
    
 
9887
    
 
9888
    
 
9889
 
 
9890
 
 
9891
    
 
9892
    
 
9893
    
 
9894
 
 
9895
 
 
9896
    
 
9897
    
 
9898
    
 
9899
 
 
9900
 
 
9901
    
 
9902
    
 
9903
    
 
9904
 
 
9905
 
 
9906
    
 
9907
    
 
9908
    
 
9909
 
 
9910
 
 
9911
    
 
9912
    
 
9913
    
 
9914
 
 
9915
 
 
9916
    
 
9917
    
 
9918
    
 
9919
 
 
9920
 
 
9921
    
 
9922
    
 
9923
    
 
9924
 
 
9925
 
 
9926
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
 
9927
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9928
 
 
9929
if test "$GCC" = yes; then
 
9930
  case $host_os in
 
9931
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9932
    *) lt_awk_arg="/^libraries:/" ;;
 
9933
  esac
 
9934
  case $host_os in
 
9935
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
 
9936
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
9937
  esac
 
9938
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 
9939
  case $lt_search_path_spec in
 
9940
  *\;*)
 
9941
    # if the path contains ";" then we assume it to be the separator
 
9942
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9943
    # assumed that no part of a normal pathname contains ";" but that should
 
9944
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9945
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 
9946
    ;;
 
9947
  *)
 
9948
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 
9949
    ;;
 
9950
  esac
 
9951
  # Ok, now we have the path, separated by spaces, we can step through it
 
9952
  # and add multilib dir if necessary.
 
9953
  lt_tmp_lt_search_path_spec=
 
9954
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9955
  for lt_sys_path in $lt_search_path_spec; do
 
9956
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9957
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9958
    else
 
9959
      test -d "$lt_sys_path" && \
 
9960
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9961
    fi
 
9962
  done
 
9963
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 
9964
BEGIN {RS=" "; FS="/|\n";} {
 
9965
  lt_foo="";
 
9966
  lt_count=0;
 
9967
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9968
    if ($lt_i != "" && $lt_i != ".") {
 
9969
      if ($lt_i == "..") {
 
9970
        lt_count++;
 
9971
      } else {
 
9972
        if (lt_count == 0) {
 
9973
          lt_foo="/" $lt_i lt_foo;
 
9974
        } else {
 
9975
          lt_count--;
 
9976
        }
 
9977
      }
 
9978
    }
 
9979
  }
 
9980
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9981
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9982
}'`
 
9983
  # AWK program above erroneously prepends '/' to C:/dos/paths
 
9984
  # for these hosts.
 
9985
  case $host_os in
 
9986
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 
9987
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
9988
  esac
 
9989
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 
9990
else
 
9991
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9992
fi
 
9993
library_names_spec=
 
9994
libname_spec='lib$name'
 
9995
soname_spec=
 
9996
shrext_cmds=".so"
 
9997
postinstall_cmds=
 
9998
postuninstall_cmds=
 
9999
finish_cmds=
 
10000
finish_eval=
 
10001
shlibpath_var=
 
10002
shlibpath_overrides_runpath=unknown
 
10003
version_type=none
 
10004
dynamic_linker="$host_os ld.so"
 
10005
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10006
need_lib_prefix=unknown
 
10007
hardcode_into_libs=no
 
10008
 
 
10009
# when you set need_version to no, make sure it does not cause -set_version
 
10010
# flags to be left without arguments
 
10011
need_version=unknown
 
10012
 
 
10013
case $host_os in
 
10014
aix3*)
 
10015
  version_type=linux # correct to gnu/linux during the next big refactor
 
10016
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10017
  shlibpath_var=LIBPATH
 
10018
 
 
10019
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10020
  soname_spec='${libname}${release}${shared_ext}$major'
 
10021
  ;;
 
10022
 
 
10023
aix[4-9]*)
 
10024
  version_type=linux # correct to gnu/linux during the next big refactor
 
10025
  need_lib_prefix=no
 
10026
  need_version=no
 
10027
  hardcode_into_libs=yes
 
10028
  if test "$host_cpu" = ia64; then
 
10029
    # AIX 5 supports IA64
 
10030
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10031
    shlibpath_var=LD_LIBRARY_PATH
 
10032
  else
 
10033
    # With GCC up to 2.95.x, collect2 would create an import file
 
10034
    # for dependence libraries.  The import file would start with
 
10035
    # the line `#! .'.  This would cause the generated library to
 
10036
    # depend on `.', always an invalid library.  This was fixed in
 
10037
    # development snapshots of GCC prior to 3.0.
 
10038
    case $host_os in
 
10039
      aix4 | aix4.[01] | aix4.[01].*)
 
10040
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10041
           echo ' yes '
 
10042
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
10043
        :
 
10044
      else
 
10045
        can_build_shared=no
 
10046
      fi
 
10047
      ;;
 
10048
    esac
 
10049
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10050
    # soname into executable. Probably we can add versioning support to
 
10051
    # collect2, so additional links can be useful in future.
 
10052
    if test "$aix_use_runtimelinking" = yes; then
 
10053
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10054
      # instead of lib<name>.a to let people know that these are not
 
10055
      # typical AIX shared libraries.
 
10056
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10057
    else
 
10058
      # We preserve .a as extension for shared libraries through AIX4.2
 
10059
      # and later when we are not doing run time linking.
 
10060
      library_names_spec='${libname}${release}.a $libname.a'
 
10061
      soname_spec='${libname}${release}${shared_ext}$major'
 
10062
    fi
 
10063
    shlibpath_var=LIBPATH
 
10064
  fi
 
10065
  ;;
 
10066
 
 
10067
amigaos*)
 
10068
  case $host_cpu in
 
10069
  powerpc)
 
10070
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
10071
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
10072
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10073
    ;;
 
10074
  m68k)
 
10075
    library_names_spec='$libname.ixlibrary $libname.a'
 
10076
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10077
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
10078
    ;;
 
10079
  esac
 
10080
  ;;
 
10081
 
 
10082
beos*)
 
10083
  library_names_spec='${libname}${shared_ext}'
 
10084
  dynamic_linker="$host_os ld.so"
 
10085
  shlibpath_var=LIBRARY_PATH
 
10086
  ;;
 
10087
 
 
10088
bsdi[45]*)
 
10089
  version_type=linux # correct to gnu/linux during the next big refactor
 
10090
  need_version=no
 
10091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10092
  soname_spec='${libname}${release}${shared_ext}$major'
 
10093
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10094
  shlibpath_var=LD_LIBRARY_PATH
 
10095
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10096
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10097
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10098
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10099
  # libtool to hard-code these into programs
 
10100
  ;;
 
10101
 
 
10102
cygwin* | mingw* | pw32* | cegcc*)
 
10103
  version_type=windows
 
10104
  shrext_cmds=".dll"
 
10105
  need_version=no
 
10106
  need_lib_prefix=no
 
10107
 
 
10108
  case $GCC,$cc_basename in
 
10109
  yes,*)
 
10110
    # gcc
 
10111
    library_names_spec='$libname.dll.a'
 
10112
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10113
    postinstall_cmds='base_file=`basename \${file}`~
 
10114
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10115
      dldir=$destdir/`dirname \$dlpath`~
 
10116
      test -d \$dldir || mkdir -p \$dldir~
 
10117
      $install_prog $dir/$dlname \$dldir/$dlname~
 
10118
      chmod a+x \$dldir/$dlname~
 
10119
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
10120
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
10121
      fi'
 
10122
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10123
      dlpath=$dir/\$dldll~
 
10124
       $RM \$dlpath'
 
10125
    shlibpath_overrides_runpath=yes
 
10126
 
 
10127
    case $host_os in
 
10128
    cygwin*)
 
10129
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10130
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10131
 
 
10132
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
 
10133
      ;;
 
10134
    mingw* | cegcc*)
 
10135
      # MinGW DLLs use traditional 'lib' prefix
 
10136
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10137
      ;;
 
10138
    pw32*)
 
10139
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10140
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10141
      ;;
 
10142
    esac
 
10143
    dynamic_linker='Win32 ld.exe'
 
10144
    ;;
 
10145
 
 
10146
  *,cl*)
 
10147
    # Native MSVC
 
10148
    libname_spec='$name'
 
10149
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10150
    library_names_spec='${libname}.dll.lib'
 
10151
 
 
10152
    case $build_os in
 
10153
    mingw*)
 
10154
      sys_lib_search_path_spec=
 
10155
      lt_save_ifs=$IFS
 
10156
      IFS=';'
 
10157
      for lt_path in $LIB
 
10158
      do
 
10159
        IFS=$lt_save_ifs
 
10160
        # Let DOS variable expansion print the short 8.3 style file name.
 
10161
        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 
10162
        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 
10163
      done
 
10164
      IFS=$lt_save_ifs
 
10165
      # Convert to MSYS style.
 
10166
      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
 
10167
      ;;
 
10168
    cygwin*)
 
10169
      # Convert to unix form, then to dos form, then back to unix form
 
10170
      # but this time dos style (no spaces!) so that the unix form looks
 
10171
      # like /cygdrive/c/PROGRA~1:/cygdr...
 
10172
      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 
10173
      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 
10174
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10175
      ;;
 
10176
    *)
 
10177
      sys_lib_search_path_spec="$LIB"
 
10178
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
10179
        # It is most probably a Windows format PATH.
 
10180
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10181
      else
 
10182
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 
10183
      fi
 
10184
      # FIXME: find the short name or the path components, as spaces are
 
10185
      # common. (e.g. "Program Files" -> "PROGRA~1")
 
10186
      ;;
 
10187
    esac
 
10188
 
 
10189
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10190
    postinstall_cmds='base_file=`basename \${file}`~
 
10191
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
10192
      dldir=$destdir/`dirname \$dlpath`~
 
10193
      test -d \$dldir || mkdir -p \$dldir~
 
10194
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10195
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10196
      dlpath=$dir/\$dldll~
 
10197
       $RM \$dlpath'
 
10198
    shlibpath_overrides_runpath=yes
 
10199
    dynamic_linker='Win32 link.exe'
 
10200
    ;;
 
10201
 
 
10202
  *)
 
10203
    # Assume MSVC wrapper
 
10204
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10205
    dynamic_linker='Win32 ld.exe'
 
10206
    ;;
 
10207
  esac
 
10208
  # FIXME: first we should search . and the directory the executable is in
 
10209
  shlibpath_var=PATH
 
10210
  ;;
 
10211
 
 
10212
darwin* | rhapsody*)
 
10213
  dynamic_linker="$host_os dyld"
 
10214
  version_type=darwin
 
10215
  need_lib_prefix=no
 
10216
  need_version=no
 
10217
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10218
  soname_spec='${libname}${release}${major}$shared_ext'
 
10219
  shlibpath_overrides_runpath=yes
 
10220
  shlibpath_var=DYLD_LIBRARY_PATH
 
10221
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
10222
 
 
10223
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
10224
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10225
  ;;
 
10226
 
 
10227
dgux*)
 
10228
  version_type=linux # correct to gnu/linux during the next big refactor
 
10229
  need_lib_prefix=no
 
10230
  need_version=no
 
10231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10232
  soname_spec='${libname}${release}${shared_ext}$major'
 
10233
  shlibpath_var=LD_LIBRARY_PATH
 
10234
  ;;
 
10235
 
 
10236
freebsd* | dragonfly*)
 
10237
  # DragonFly does not have aout.  When/if they implement a new
 
10238
  # versioning mechanism, adjust this.
 
10239
  if test -x /usr/bin/objformat; then
 
10240
    objformat=`/usr/bin/objformat`
 
10241
  else
 
10242
    case $host_os in
 
10243
    freebsd[23].*) objformat=aout ;;
 
10244
    *) objformat=elf ;;
 
10245
    esac
 
10246
  fi
 
10247
  version_type=freebsd-$objformat
 
10248
  case $version_type in
 
10249
    freebsd-elf*)
 
10250
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10251
      need_version=no
 
10252
      need_lib_prefix=no
 
10253
      ;;
 
10254
    freebsd-*)
 
10255
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10256
      need_version=yes
 
10257
      ;;
 
10258
  esac
 
10259
  shlibpath_var=LD_LIBRARY_PATH
 
10260
  case $host_os in
 
10261
  freebsd2.*)
 
10262
    shlibpath_overrides_runpath=yes
 
10263
    ;;
 
10264
  freebsd3.[01]* | freebsdelf3.[01]*)
 
10265
    shlibpath_overrides_runpath=yes
 
10266
    hardcode_into_libs=yes
 
10267
    ;;
 
10268
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
10269
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
10270
    shlibpath_overrides_runpath=no
 
10271
    hardcode_into_libs=yes
 
10272
    ;;
 
10273
  *) # from 4.6 on, and DragonFly
 
10274
    shlibpath_overrides_runpath=yes
 
10275
    hardcode_into_libs=yes
 
10276
    ;;
 
10277
  esac
 
10278
  ;;
 
10279
 
 
10280
gnu*)
 
10281
  version_type=linux # correct to gnu/linux during the next big refactor
 
10282
  need_lib_prefix=no
 
10283
  need_version=no
 
10284
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10285
  soname_spec='${libname}${release}${shared_ext}$major'
 
10286
  shlibpath_var=LD_LIBRARY_PATH
 
10287
  shlibpath_overrides_runpath=no
 
10288
  hardcode_into_libs=yes
 
10289
  ;;
 
10290
 
 
10291
haiku*)
 
10292
  version_type=linux # correct to gnu/linux during the next big refactor
 
10293
  need_lib_prefix=no
 
10294
  need_version=no
 
10295
  dynamic_linker="$host_os runtime_loader"
 
10296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10297
  soname_spec='${libname}${release}${shared_ext}$major'
 
10298
  shlibpath_var=LIBRARY_PATH
 
10299
  shlibpath_overrides_runpath=yes
 
10300
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 
10301
  hardcode_into_libs=yes
 
10302
  ;;
 
10303
 
 
10304
hpux9* | hpux10* | hpux11*)
 
10305
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10306
  # link against other versions.
 
10307
  version_type=sunos
 
10308
  need_lib_prefix=no
 
10309
  need_version=no
 
10310
  case $host_cpu in
 
10311
  ia64*)
 
10312
    shrext_cmds='.so'
 
10313
    hardcode_into_libs=yes
 
10314
    dynamic_linker="$host_os dld.so"
 
10315
    shlibpath_var=LD_LIBRARY_PATH
 
10316
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10317
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10318
    soname_spec='${libname}${release}${shared_ext}$major'
 
10319
    if test "X$HPUX_IA64_MODE" = X32; then
 
10320
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10321
    else
 
10322
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10323
    fi
 
10324
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10325
    ;;
 
10326
  hppa*64*)
 
10327
    shrext_cmds='.sl'
 
10328
    hardcode_into_libs=yes
 
10329
    dynamic_linker="$host_os dld.sl"
 
10330
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10331
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10332
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10333
    soname_spec='${libname}${release}${shared_ext}$major'
 
10334
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10335
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10336
    ;;
 
10337
  *)
 
10338
    shrext_cmds='.sl'
 
10339
    dynamic_linker="$host_os dld.sl"
 
10340
    shlibpath_var=SHLIB_PATH
 
10341
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10342
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10343
    soname_spec='${libname}${release}${shared_ext}$major'
 
10344
    ;;
 
10345
  esac
 
10346
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 
10347
  postinstall_cmds='chmod 555 $lib'
 
10348
  # or fails outright, so override atomically:
 
10349
  install_override_mode=555
 
10350
  ;;
 
10351
 
 
10352
interix[3-9]*)
 
10353
  version_type=linux # correct to gnu/linux during the next big refactor
 
10354
  need_lib_prefix=no
 
10355
  need_version=no
 
10356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10357
  soname_spec='${libname}${release}${shared_ext}$major'
 
10358
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
10359
  shlibpath_var=LD_LIBRARY_PATH
 
10360
  shlibpath_overrides_runpath=no
 
10361
  hardcode_into_libs=yes
 
10362
  ;;
 
10363
 
 
10364
irix5* | irix6* | nonstopux*)
 
10365
  case $host_os in
 
10366
    nonstopux*) version_type=nonstopux ;;
 
10367
    *)
 
10368
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10369
                version_type=linux # correct to gnu/linux during the next big refactor
 
10370
        else
 
10371
                version_type=irix
 
10372
        fi ;;
 
10373
  esac
 
10374
  need_lib_prefix=no
 
10375
  need_version=no
 
10376
  soname_spec='${libname}${release}${shared_ext}$major'
 
10377
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10378
  case $host_os in
 
10379
  irix5* | nonstopux*)
 
10380
    libsuff= shlibsuff=
 
10381
    ;;
 
10382
  *)
 
10383
    case $LD in # libtool.m4 will add one of these switches to LD
 
10384
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10385
      libsuff= shlibsuff= libmagic=32-bit;;
 
10386
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10387
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10388
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10389
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10390
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10391
    esac
 
10392
    ;;
 
10393
  esac
 
10394
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10395
  shlibpath_overrides_runpath=no
 
10396
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10397
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10398
  hardcode_into_libs=yes
 
10399
  ;;
 
10400
 
 
10401
# No shared lib support for Linux oldld, aout, or coff.
 
10402
linux*oldld* | linux*aout* | linux*coff*)
 
10403
  dynamic_linker=no
 
10404
  ;;
 
10405
 
 
10406
# This must be glibc/ELF.
 
10407
linux* | k*bsd*-gnu | kopensolaris*-gnu)
 
10408
  version_type=linux # correct to gnu/linux during the next big refactor
 
10409
  need_lib_prefix=no
 
10410
  need_version=no
 
10411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10412
  soname_spec='${libname}${release}${shared_ext}$major'
 
10413
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10414
  shlibpath_var=LD_LIBRARY_PATH
 
10415
  shlibpath_overrides_runpath=no
 
10416
 
 
10417
  # Some binutils ld are patched to set DT_RUNPATH
 
10418
  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
 
10419
  $as_echo_n "(cached) " >&6
 
10420
else
 
10421
  lt_cv_shlibpath_overrides_runpath=no
 
10422
    save_LDFLAGS=$LDFLAGS
 
10423
    save_libdir=$libdir
 
10424
    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
10425
         LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
10426
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10427
/* end confdefs.h.  */
 
10428
 
 
10429
int
 
10430
main ()
 
10431
{
 
10432
 
 
10433
  ;
 
10434
  return 0;
 
10435
}
 
10436
_ACEOF
 
10437
if ac_fn_c_try_link "$LINENO"; then :
 
10438
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
 
10439
  lt_cv_shlibpath_overrides_runpath=yes
 
10440
fi
 
10441
fi
 
10442
rm -f core conftest.err conftest.$ac_objext \
 
10443
    conftest$ac_exeext conftest.$ac_ext
 
10444
    LDFLAGS=$save_LDFLAGS
 
10445
    libdir=$save_libdir
 
10446
    
 
10447
fi
 
10448
 
 
10449
  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
10450
 
 
10451
  # This implies no fast_install, which is unacceptable.
 
10452
  # Some rework will be needed to allow for fast_install
 
10453
  # before this can be enabled.
 
10454
  hardcode_into_libs=yes
 
10455
 
 
10456
  # Append ld.so.conf contents to the search path
 
10457
  if test -f /etc/ld.so.conf; then
 
10458
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
 
10459
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
10460
  fi
 
10461
 
 
10462
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10463
  # powerpc, because MkLinux only supported shared libraries with the
 
10464
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10465
  # most powerpc-linux boxes support dynamic linking these days and
 
10466
  # people can always --disable-shared, the test was removed, and we
 
10467
  # assume the GNU/Linux dynamic linker is in use.
 
10468
  dynamic_linker='GNU/Linux ld.so'
 
10469
  ;;
 
10470
 
 
10471
netbsd*)
 
10472
  version_type=sunos
 
10473
  need_lib_prefix=no
 
10474
  need_version=no
 
10475
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10476
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10477
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10478
    dynamic_linker='NetBSD (a.out) ld.so'
 
10479
  else
 
10480
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10481
    soname_spec='${libname}${release}${shared_ext}$major'
 
10482
    dynamic_linker='NetBSD ld.elf_so'
 
10483
  fi
 
10484
  shlibpath_var=LD_LIBRARY_PATH
 
10485
  shlibpath_overrides_runpath=yes
 
10486
  hardcode_into_libs=yes
 
10487
  ;;
 
10488
 
 
10489
newsos6)
 
10490
  version_type=linux # correct to gnu/linux during the next big refactor
 
10491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10492
  shlibpath_var=LD_LIBRARY_PATH
 
10493
  shlibpath_overrides_runpath=yes
 
10494
  ;;
 
10495
 
 
10496
*nto* | *qnx*)
 
10497
  version_type=qnx
 
10498
  need_lib_prefix=no
 
10499
  need_version=no
 
10500
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10501
  soname_spec='${libname}${release}${shared_ext}$major'
 
10502
  shlibpath_var=LD_LIBRARY_PATH
 
10503
  shlibpath_overrides_runpath=no
 
10504
  hardcode_into_libs=yes
 
10505
  dynamic_linker='ldqnx.so'
 
10506
  ;;
 
10507
 
 
10508
openbsd*)
 
10509
  version_type=sunos
 
10510
  sys_lib_dlsearch_path_spec="/usr/lib"
 
10511
  need_lib_prefix=no
 
10512
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
10513
  case $host_os in
 
10514
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
10515
    *)                          need_version=no  ;;
 
10516
  esac
 
10517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10518
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10519
  shlibpath_var=LD_LIBRARY_PATH
 
10520
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10521
    case $host_os in
 
10522
      openbsd2.[89] | openbsd2.[89].*)
 
10523
        shlibpath_overrides_runpath=no
 
10524
        ;;
 
10525
      *)
 
10526
        shlibpath_overrides_runpath=yes
 
10527
        ;;
 
10528
      esac
 
10529
  else
 
10530
    shlibpath_overrides_runpath=yes
 
10531
  fi
 
10532
  ;;
 
10533
 
 
10534
os2*)
 
10535
  libname_spec='$name'
 
10536
  shrext_cmds=".dll"
 
10537
  need_lib_prefix=no
 
10538
  library_names_spec='$libname${shared_ext} $libname.a'
 
10539
  dynamic_linker='OS/2 ld.exe'
 
10540
  shlibpath_var=LIBPATH
 
10541
  ;;
 
10542
 
 
10543
osf3* | osf4* | osf5*)
 
10544
  version_type=osf
 
10545
  need_lib_prefix=no
 
10546
  need_version=no
 
10547
  soname_spec='${libname}${release}${shared_ext}$major'
 
10548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10549
  shlibpath_var=LD_LIBRARY_PATH
 
10550
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10551
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10552
  ;;
 
10553
 
 
10554
rdos*)
 
10555
  dynamic_linker=no
 
10556
  ;;
 
10557
 
 
10558
solaris*)
 
10559
  version_type=linux # correct to gnu/linux during the next big refactor
 
10560
  need_lib_prefix=no
 
10561
  need_version=no
 
10562
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10563
  soname_spec='${libname}${release}${shared_ext}$major'
 
10564
  shlibpath_var=LD_LIBRARY_PATH
 
10565
  shlibpath_overrides_runpath=yes
 
10566
  hardcode_into_libs=yes
 
10567
  # ldd complains unless libraries are executable
 
10568
  postinstall_cmds='chmod +x $lib'
 
10569
  ;;
 
10570
 
 
10571
sunos4*)
 
10572
  version_type=sunos
 
10573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10574
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10575
  shlibpath_var=LD_LIBRARY_PATH
 
10576
  shlibpath_overrides_runpath=yes
 
10577
  if test "$with_gnu_ld" = yes; then
 
10578
    need_lib_prefix=no
 
10579
  fi
 
10580
  need_version=yes
 
10581
  ;;
 
10582
 
 
10583
sysv4 | sysv4.3*)
 
10584
  version_type=linux # correct to gnu/linux during the next big refactor
 
10585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10586
  soname_spec='${libname}${release}${shared_ext}$major'
 
10587
  shlibpath_var=LD_LIBRARY_PATH
 
10588
  case $host_vendor in
 
10589
    sni)
 
10590
      shlibpath_overrides_runpath=no
 
10591
      need_lib_prefix=no
 
10592
      runpath_var=LD_RUN_PATH
 
10593
      ;;
 
10594
    siemens)
 
10595
      need_lib_prefix=no
 
10596
      ;;
 
10597
    motorola)
 
10598
      need_lib_prefix=no
 
10599
      need_version=no
 
10600
      shlibpath_overrides_runpath=no
 
10601
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10602
      ;;
 
10603
  esac
 
10604
  ;;
 
10605
 
 
10606
sysv4*MP*)
 
10607
  if test -d /usr/nec ;then
 
10608
    version_type=linux # correct to gnu/linux during the next big refactor
 
10609
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10610
    soname_spec='$libname${shared_ext}.$major'
 
10611
    shlibpath_var=LD_LIBRARY_PATH
 
10612
  fi
 
10613
  ;;
 
10614
 
 
10615
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
10616
  version_type=freebsd-elf
 
10617
  need_lib_prefix=no
 
10618
  need_version=no
 
10619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10620
  soname_spec='${libname}${release}${shared_ext}$major'
 
10621
  shlibpath_var=LD_LIBRARY_PATH
 
10622
  shlibpath_overrides_runpath=yes
 
10623
  hardcode_into_libs=yes
 
10624
  if test "$with_gnu_ld" = yes; then
 
10625
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
10626
  else
 
10627
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10628
    case $host_os in
 
10629
      sco3.2v5*)
 
10630
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10631
        ;;
 
10632
    esac
 
10633
  fi
 
10634
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10635
  ;;
 
10636
 
 
10637
tpf*)
 
10638
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
10639
  version_type=linux # correct to gnu/linux during the next big refactor
 
10640
  need_lib_prefix=no
 
10641
  need_version=no
 
10642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10643
  shlibpath_var=LD_LIBRARY_PATH
 
10644
  shlibpath_overrides_runpath=no
 
10645
  hardcode_into_libs=yes
 
10646
  ;;
 
10647
 
 
10648
uts4*)
 
10649
  version_type=linux # correct to gnu/linux during the next big refactor
 
10650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10651
  soname_spec='${libname}${release}${shared_ext}$major'
 
10652
  shlibpath_var=LD_LIBRARY_PATH
 
10653
  ;;
 
10654
 
 
10655
*)
 
10656
  dynamic_linker=no
 
10657
  ;;
 
10658
esac
 
10659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
 
10660
$as_echo "$dynamic_linker" >&6; }
 
10661
test "$dynamic_linker" = no && can_build_shared=no
 
10662
 
 
10663
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10664
if test "$GCC" = yes; then
 
10665
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10666
fi
 
10667
 
 
10668
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10669
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10670
fi
 
10671
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10672
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10673
fi
 
10674
 
 
10675
 
 
10676
    
 
10677
    
 
10678
    
 
10679
 
 
10680
 
 
10681
    
 
10682
    
 
10683
    
 
10684
 
 
10685
 
 
10686
    
 
10687
    
 
10688
    
 
10689
 
 
10690
 
 
10691
    
 
10692
    
 
10693
    
 
10694
 
 
10695
 
 
10696
    
 
10697
    
 
10698
    
 
10699
 
 
10700
 
 
10701
    
 
10702
    
 
10703
    
 
10704
 
 
10705
 
 
10706
    
 
10707
    
 
10708
    
 
10709
 
 
10710
 
 
10711
    
 
10712
    
 
10713
    
 
10714
 
 
10715
 
 
10716
    
 
10717
    
 
10718
    
 
10719
 
 
10720
 
 
10721
    
 
10722
    
 
10723
    
 
10724
 
 
10725
 
 
10726
    
 
10727
    
 
10728
    
 
10729
 
 
10730
 
 
10731
    
 
10732
    
 
10733
    
 
10734
 
 
10735
 
 
10736
    
 
10737
    
 
10738
    
 
10739
 
 
10740
 
 
10741
    
 
10742
    
 
10743
    
 
10744
 
 
10745
 
 
10746
    
 
10747
    
 
10748
    
 
10749
 
 
10750
 
 
10751
    
 
10752
    
 
10753
    
 
10754
 
 
10755
 
 
10756
    
 
10757
    
 
10758
    
 
10759
 
 
10760
 
 
10761
    
 
10762
    
 
10763
    
 
10764
 
 
10765
 
 
10766
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
 
10767
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10768
hardcode_action=
 
10769
if test -n "$hardcode_libdir_flag_spec" ||
 
10770
   test -n "$runpath_var" ||
 
10771
   test "X$hardcode_automatic" = "Xyes" ; then
 
10772
 
 
10773
  # We can hardcode non-existent directories.
 
10774
  if test "$hardcode_direct" != no &&
 
10775
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10776
     # have to relink, otherwise we might link with an installed library
 
10777
     # when we should be linking with a yet-to-be-installed one
 
10778
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10779
     test "$hardcode_minus_L" != no; then
 
10780
    # Linking always hardcodes the temporary library directory.
 
10781
    hardcode_action=relink
 
10782
  else
 
10783
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10784
    hardcode_action=immediate
 
10785
  fi
 
10786
else
 
10787
  # We cannot hardcode anything, or else we can only hardcode existing
 
10788
  # directories.
 
10789
  hardcode_action=unsupported
 
10790
fi
 
10791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
 
10792
$as_echo "$hardcode_action" >&6; }
 
10793
 
 
10794
if test "$hardcode_action" = relink ||
 
10795
   test "$inherit_rpath" = yes; then
 
10796
  # Fast installation is not supported
 
10797
  enable_fast_install=no
 
10798
elif test "$shlibpath_overrides_runpath" = yes ||
 
10799
     test "$enable_shared" = no; then
 
10800
  # Fast installation is not necessary
 
10801
  enable_fast_install=needless
 
10802
fi
 
10803
 
 
10804
    
 
10805
    
 
10806
    
 
10807
 
 
10808
 
 
10809
  if test "x$enable_dlopen" != xyes; then
 
10810
  enable_dlopen=unknown
 
10811
  enable_dlopen_self=unknown
 
10812
  enable_dlopen_self_static=unknown
 
10813
else
 
10814
  lt_cv_dlopen=no
 
10815
  lt_cv_dlopen_libs=
 
10816
 
 
10817
  case $host_os in
 
10818
  beos*)
 
10819
    lt_cv_dlopen="load_add_on"
 
10820
    lt_cv_dlopen_libs=
 
10821
    lt_cv_dlopen_self=yes
 
10822
    ;;
 
10823
 
 
10824
  mingw* | pw32* | cegcc*)
 
10825
    lt_cv_dlopen="LoadLibrary"
 
10826
    lt_cv_dlopen_libs=
 
10827
    ;;
 
10828
 
 
10829
  cygwin*)
 
10830
    lt_cv_dlopen="dlopen"
 
10831
    lt_cv_dlopen_libs=
 
10832
    ;;
 
10833
 
 
10834
  darwin*)
 
10835
  # if libdl is installed we need to link against it
 
10836
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10837
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10838
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10839
  $as_echo_n "(cached) " >&6
 
10840
else
 
10841
  ac_check_lib_save_LIBS=$LIBS
 
10842
LIBS="-ldl  $LIBS"
 
10843
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10844
/* end confdefs.h.  */
 
10845
 
 
10846
/* Override any GCC internal prototype to avoid an error.
 
10847
   Use char because int might match the return type of a GCC
 
10848
   builtin and then its argument prototype would still apply.  */
 
10849
#ifdef __cplusplus
 
10850
extern "C"
 
10851
#endif
 
10852
char dlopen ();
 
10853
int
 
10854
main ()
 
10855
{
 
10856
return dlopen ();
 
10857
  ;
 
10858
  return 0;
 
10859
}
 
10860
_ACEOF
 
10861
if ac_fn_c_try_link "$LINENO"; then :
 
10862
  ac_cv_lib_dl_dlopen=yes
 
10863
else
 
10864
  ac_cv_lib_dl_dlopen=no
 
10865
fi
 
10866
rm -f core conftest.err conftest.$ac_objext \
 
10867
    conftest$ac_exeext conftest.$ac_ext
 
10868
LIBS=$ac_check_lib_save_LIBS
 
10869
fi
 
10870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10871
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10872
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10873
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10874
else
 
10875
  
 
10876
    lt_cv_dlopen="dyld"
 
10877
    lt_cv_dlopen_libs=
 
10878
    lt_cv_dlopen_self=yes
 
10879
    
 
10880
fi
 
10881
 
 
10882
    ;;
 
10883
 
 
10884
  *)
 
10885
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
 
10886
if test "x$ac_cv_func_shl_load" = xyes; then :
 
10887
  lt_cv_dlopen="shl_load"
 
10888
else
 
10889
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
 
10890
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10891
if ${ac_cv_lib_dld_shl_load+:} false; then :
 
10892
  $as_echo_n "(cached) " >&6
 
10893
else
 
10894
  ac_check_lib_save_LIBS=$LIBS
 
10895
LIBS="-ldld  $LIBS"
 
10896
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10897
/* end confdefs.h.  */
 
10898
 
 
10899
/* Override any GCC internal prototype to avoid an error.
 
10900
   Use char because int might match the return type of a GCC
 
10901
   builtin and then its argument prototype would still apply.  */
 
10902
#ifdef __cplusplus
 
10903
extern "C"
 
10904
#endif
 
10905
char shl_load ();
 
10906
int
 
10907
main ()
 
10908
{
 
10909
return shl_load ();
 
10910
  ;
 
10911
  return 0;
 
10912
}
 
10913
_ACEOF
 
10914
if ac_fn_c_try_link "$LINENO"; then :
 
10915
  ac_cv_lib_dld_shl_load=yes
 
10916
else
 
10917
  ac_cv_lib_dld_shl_load=no
 
10918
fi
 
10919
rm -f core conftest.err conftest.$ac_objext \
 
10920
    conftest$ac_exeext conftest.$ac_ext
 
10921
LIBS=$ac_check_lib_save_LIBS
 
10922
fi
 
10923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
 
10924
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10925
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
 
10926
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10927
else
 
10928
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
 
10929
if test "x$ac_cv_func_dlopen" = xyes; then :
 
10930
  lt_cv_dlopen="dlopen"
 
10931
else
 
10932
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
 
10933
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10934
if ${ac_cv_lib_dl_dlopen+:} false; then :
 
10935
  $as_echo_n "(cached) " >&6
 
10936
else
 
10937
  ac_check_lib_save_LIBS=$LIBS
 
10938
LIBS="-ldl  $LIBS"
 
10939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10940
/* end confdefs.h.  */
 
10941
 
 
10942
/* Override any GCC internal prototype to avoid an error.
 
10943
   Use char because int might match the return type of a GCC
 
10944
   builtin and then its argument prototype would still apply.  */
 
10945
#ifdef __cplusplus
 
10946
extern "C"
 
10947
#endif
 
10948
char dlopen ();
 
10949
int
 
10950
main ()
 
10951
{
 
10952
return dlopen ();
 
10953
  ;
 
10954
  return 0;
 
10955
}
 
10956
_ACEOF
 
10957
if ac_fn_c_try_link "$LINENO"; then :
 
10958
  ac_cv_lib_dl_dlopen=yes
 
10959
else
 
10960
  ac_cv_lib_dl_dlopen=no
 
10961
fi
 
10962
rm -f core conftest.err conftest.$ac_objext \
 
10963
    conftest$ac_exeext conftest.$ac_ext
 
10964
LIBS=$ac_check_lib_save_LIBS
 
10965
fi
 
10966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
 
10967
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10968
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
 
10969
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10970
else
 
10971
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
 
10972
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10973
if ${ac_cv_lib_svld_dlopen+:} false; then :
 
10974
  $as_echo_n "(cached) " >&6
 
10975
else
 
10976
  ac_check_lib_save_LIBS=$LIBS
 
10977
LIBS="-lsvld  $LIBS"
 
10978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
10979
/* end confdefs.h.  */
 
10980
 
 
10981
/* Override any GCC internal prototype to avoid an error.
 
10982
   Use char because int might match the return type of a GCC
 
10983
   builtin and then its argument prototype would still apply.  */
 
10984
#ifdef __cplusplus
 
10985
extern "C"
 
10986
#endif
 
10987
char dlopen ();
 
10988
int
 
10989
main ()
 
10990
{
 
10991
return dlopen ();
 
10992
  ;
 
10993
  return 0;
 
10994
}
 
10995
_ACEOF
 
10996
if ac_fn_c_try_link "$LINENO"; then :
 
10997
  ac_cv_lib_svld_dlopen=yes
 
10998
else
 
10999
  ac_cv_lib_svld_dlopen=no
 
11000
fi
 
11001
rm -f core conftest.err conftest.$ac_objext \
 
11002
    conftest$ac_exeext conftest.$ac_ext
 
11003
LIBS=$ac_check_lib_save_LIBS
 
11004
fi
 
11005
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
 
11006
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
11007
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
 
11008
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11009
else
 
11010
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
 
11011
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
11012
if ${ac_cv_lib_dld_dld_link+:} false; then :
 
11013
  $as_echo_n "(cached) " >&6
 
11014
else
 
11015
  ac_check_lib_save_LIBS=$LIBS
 
11016
LIBS="-ldld  $LIBS"
 
11017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11018
/* end confdefs.h.  */
 
11019
 
 
11020
/* Override any GCC internal prototype to avoid an error.
 
11021
   Use char because int might match the return type of a GCC
 
11022
   builtin and then its argument prototype would still apply.  */
 
11023
#ifdef __cplusplus
 
11024
extern "C"
 
11025
#endif
 
11026
char dld_link ();
 
11027
int
 
11028
main ()
 
11029
{
 
11030
return dld_link ();
 
11031
  ;
 
11032
  return 0;
 
11033
}
 
11034
_ACEOF
 
11035
if ac_fn_c_try_link "$LINENO"; then :
 
11036
  ac_cv_lib_dld_dld_link=yes
 
11037
else
 
11038
  ac_cv_lib_dld_dld_link=no
 
11039
fi
 
11040
rm -f core conftest.err conftest.$ac_objext \
 
11041
    conftest$ac_exeext conftest.$ac_ext
 
11042
LIBS=$ac_check_lib_save_LIBS
 
11043
fi
 
11044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
 
11045
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
11046
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
 
11047
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
11048
fi
 
11049
 
 
11050
              
 
11051
fi
 
11052
 
 
11053
            
 
11054
fi
 
11055
 
 
11056
          
 
11057
fi
 
11058
 
 
11059
        
 
11060
fi
 
11061
 
 
11062
      
 
11063
fi
 
11064
 
 
11065
    ;;
 
11066
  esac
 
11067
 
 
11068
  if test "x$lt_cv_dlopen" != xno; then
 
11069
    enable_dlopen=yes
 
11070
  else
 
11071
    enable_dlopen=no
 
11072
  fi
 
11073
 
 
11074
  case $lt_cv_dlopen in
 
11075
  dlopen)
 
11076
    save_CPPFLAGS="$CPPFLAGS"
 
11077
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11078
 
 
11079
    save_LDFLAGS="$LDFLAGS"
 
11080
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11081
 
 
11082
    save_LIBS="$LIBS"
 
11083
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11084
 
 
11085
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
 
11086
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
11087
if ${lt_cv_dlopen_self+:} false; then :
 
11088
  $as_echo_n "(cached) " >&6
 
11089
else
 
11090
          if test "$cross_compiling" = yes; then :
 
11091
  lt_cv_dlopen_self=cross
 
11092
else
 
11093
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11094
  lt_status=$lt_dlunknown
 
11095
  cat > conftest.$ac_ext <<_LT_EOF
 
11096
#line $LINENO "configure"
 
11097
#include "confdefs.h"
 
11098
 
 
11099
#if HAVE_DLFCN_H
 
11100
#include <dlfcn.h>
 
11101
#endif
 
11102
 
 
11103
#include <stdio.h>
 
11104
 
 
11105
#ifdef RTLD_GLOBAL
 
11106
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11107
#else
 
11108
#  ifdef DL_GLOBAL
 
11109
#    define LT_DLGLOBAL         DL_GLOBAL
 
11110
#  else
 
11111
#    define LT_DLGLOBAL         0
 
11112
#  endif
 
11113
#endif
 
11114
 
 
11115
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11116
   find out it does not work in some platform. */
 
11117
#ifndef LT_DLLAZY_OR_NOW
 
11118
#  ifdef RTLD_LAZY
 
11119
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11120
#  else
 
11121
#    ifdef DL_LAZY
 
11122
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11123
#    else
 
11124
#      ifdef RTLD_NOW
 
11125
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11126
#      else
 
11127
#        ifdef DL_NOW
 
11128
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11129
#        else
 
11130
#          define LT_DLLAZY_OR_NOW      0
 
11131
#        endif
 
11132
#      endif
 
11133
#    endif
 
11134
#  endif
 
11135
#endif
 
11136
 
 
11137
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11138
   correspondingly for the symbols needed.  */
 
11139
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11140
int fnord () __attribute__((visibility("default")));
 
11141
#endif
 
11142
 
 
11143
int fnord () { return 42; }
 
11144
int main ()
 
11145
{
 
11146
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11147
  int status = $lt_dlunknown;
 
11148
 
 
11149
  if (self)
 
11150
    {
 
11151
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11152
      else
 
11153
        {
 
11154
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11155
          else puts (dlerror ());
 
11156
        }
 
11157
      /* dlclose (self); */
 
11158
    }
 
11159
  else
 
11160
    puts (dlerror ());
 
11161
 
 
11162
  return status;
 
11163
}
 
11164
_LT_EOF
 
11165
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11166
  (eval $ac_link) 2>&5
 
11167
  ac_status=$?
 
11168
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11169
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11170
    (./conftest; exit; ) >&5 2>/dev/null
 
11171
    lt_status=$?
 
11172
    case x$lt_status in
 
11173
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11174
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11175
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
11176
    esac
 
11177
  else :
 
11178
    # compilation failed
 
11179
    lt_cv_dlopen_self=no
 
11180
  fi
 
11181
fi
 
11182
rm -fr conftest*
 
11183
 
 
11184
    
 
11185
fi
 
11186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
 
11187
$as_echo "$lt_cv_dlopen_self" >&6; }
 
11188
 
 
11189
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11190
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
11191
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
 
11192
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
11193
if ${lt_cv_dlopen_self_static+:} false; then :
 
11194
  $as_echo_n "(cached) " >&6
 
11195
else
 
11196
          if test "$cross_compiling" = yes; then :
 
11197
  lt_cv_dlopen_self_static=cross
 
11198
else
 
11199
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11200
  lt_status=$lt_dlunknown
 
11201
  cat > conftest.$ac_ext <<_LT_EOF
 
11202
#line $LINENO "configure"
 
11203
#include "confdefs.h"
 
11204
 
 
11205
#if HAVE_DLFCN_H
 
11206
#include <dlfcn.h>
 
11207
#endif
 
11208
 
 
11209
#include <stdio.h>
 
11210
 
 
11211
#ifdef RTLD_GLOBAL
 
11212
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11213
#else
 
11214
#  ifdef DL_GLOBAL
 
11215
#    define LT_DLGLOBAL         DL_GLOBAL
 
11216
#  else
 
11217
#    define LT_DLGLOBAL         0
 
11218
#  endif
 
11219
#endif
 
11220
 
 
11221
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11222
   find out it does not work in some platform. */
 
11223
#ifndef LT_DLLAZY_OR_NOW
 
11224
#  ifdef RTLD_LAZY
 
11225
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11226
#  else
 
11227
#    ifdef DL_LAZY
 
11228
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11229
#    else
 
11230
#      ifdef RTLD_NOW
 
11231
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11232
#      else
 
11233
#        ifdef DL_NOW
 
11234
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11235
#        else
 
11236
#          define LT_DLLAZY_OR_NOW      0
 
11237
#        endif
 
11238
#      endif
 
11239
#    endif
 
11240
#  endif
 
11241
#endif
 
11242
 
 
11243
/* When -fvisbility=hidden is used, assume the code has been annotated
 
11244
   correspondingly for the symbols needed.  */
 
11245
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
11246
int fnord () __attribute__((visibility("default")));
 
11247
#endif
 
11248
 
 
11249
int fnord () { return 42; }
 
11250
int main ()
 
11251
{
 
11252
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11253
  int status = $lt_dlunknown;
 
11254
 
 
11255
  if (self)
 
11256
    {
 
11257
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11258
      else
 
11259
        {
 
11260
          if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 
11261
          else puts (dlerror ());
 
11262
        }
 
11263
      /* dlclose (self); */
 
11264
    }
 
11265
  else
 
11266
    puts (dlerror ());
 
11267
 
 
11268
  return status;
 
11269
}
 
11270
_LT_EOF
 
11271
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
 
11272
  (eval $ac_link) 2>&5
 
11273
  ac_status=$?
 
11274
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11275
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11276
    (./conftest; exit; ) >&5 2>/dev/null
 
11277
    lt_status=$?
 
11278
    case x$lt_status in
 
11279
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11280
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11281
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
11282
    esac
 
11283
  else :
 
11284
    # compilation failed
 
11285
    lt_cv_dlopen_self_static=no
 
11286
  fi
 
11287
fi
 
11288
rm -fr conftest*
 
11289
 
 
11290
      
 
11291
fi
 
11292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
 
11293
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
11294
    fi
 
11295
 
 
11296
    CPPFLAGS="$save_CPPFLAGS"
 
11297
    LDFLAGS="$save_LDFLAGS"
 
11298
    LIBS="$save_LIBS"
 
11299
    ;;
 
11300
  esac
 
11301
 
 
11302
  case $lt_cv_dlopen_self in
 
11303
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11304
  *) enable_dlopen_self=unknown ;;
 
11305
  esac
 
11306
 
 
11307
  case $lt_cv_dlopen_self_static in
 
11308
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11309
  *) enable_dlopen_self_static=unknown ;;
 
11310
  esac
 
11311
fi
 
11312
 
 
11313
    
 
11314
    
 
11315
    
 
11316
 
 
11317
 
 
11318
    
 
11319
    
 
11320
    
 
11321
 
 
11322
 
 
11323
    
 
11324
    
 
11325
    
 
11326
 
 
11327
 
 
11328
  
 
11329
striplib=
 
11330
old_striplib=
 
11331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
 
11332
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
11333
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
11334
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11335
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11337
$as_echo "yes" >&6; }
 
11338
else
 
11339
# FIXME - insert some real tests, host_os isn't really good enough
 
11340
  case $host_os in
 
11341
  darwin*)
 
11342
    if test -n "$STRIP" ; then
 
11343
      striplib="$STRIP -x"
 
11344
      old_striplib="$STRIP -S"
 
11345
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
11346
$as_echo "yes" >&6; }
 
11347
    else
 
11348
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11349
$as_echo "no" >&6; }
 
11350
    fi
 
11351
    ;;
 
11352
  *)
 
11353
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11354
$as_echo "no" >&6; }
 
11355
    ;;
 
11356
  esac
 
11357
fi
 
11358
 
 
11359
    
 
11360
    
 
11361
    
 
11362
 
 
11363
 
 
11364
    
 
11365
    
 
11366
    
 
11367
 
 
11368
 
 
11369
 
 
11370
  # Report which library types will actually be built
 
11371
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
 
11372
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
11373
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
 
11374
$as_echo "$can_build_shared" >&6; }
 
11375
 
 
11376
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
 
11377
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
11378
  test "$can_build_shared" = "no" && enable_shared=no
 
11379
 
 
11380
  # On AIX, shared libraries and static libraries use the same namespace, and
 
11381
  # are all built from PIC.
 
11382
  case $host_os in
 
11383
  aix3*)
 
11384
    test "$enable_shared" = yes && enable_static=no
 
11385
    if test -n "$RANLIB"; then
 
11386
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
11387
      postinstall_cmds='$RANLIB $lib'
 
11388
    fi
 
11389
    ;;
 
11390
 
 
11391
  aix[4-9]*)
 
11392
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
11393
      test "$enable_shared" = yes && enable_static=no
 
11394
    fi
 
11395
    ;;
 
11396
  esac
 
11397
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
 
11398
$as_echo "$enable_shared" >&6; }
 
11399
 
 
11400
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
 
11401
$as_echo_n "checking whether to build static libraries... " >&6; }
 
11402
  # Make sure either enable_shared or enable_static is yes.
 
11403
  test "$enable_shared" = yes || enable_static=yes
 
11404
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
 
11405
$as_echo "$enable_static" >&6; }
 
11406
 
 
11407
  
 
11408
 
 
11409
 
 
11410
fi
 
11411
ac_ext=c
 
11412
ac_cpp='$CPP $CPPFLAGS'
 
11413
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11414
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11415
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11416
 
 
11417
CC="$lt_save_CC"
 
11418
 
 
11419
 
 
11420
 
 
11421
 
 
11422
 
 
11423
 
 
11424
 
 
11425
 
 
11426
       
 
11427
       
 
11428
 
 
11429
 
 
11430
 
 
11431
 
 
11432
 
 
11433
        ac_config_commands="$ac_config_commands libtool"
 
11434
 
 
11435
 
 
11436
 
 
11437
 
 
11438
# Only expand once:
 
11439
 
 
11440
 
 
11441
 
 
11442
ac_ext=c
 
11443
ac_cpp='$CPP $CPPFLAGS'
 
11444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11447
if test -n "$ac_tool_prefix"; then
 
11448
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
11449
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
11450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11451
$as_echo_n "checking for $ac_word... " >&6; }
 
11452
if ${ac_cv_prog_CC+:} false; then :
 
11453
  $as_echo_n "(cached) " >&6
 
11454
else
 
11455
  if test -n "$CC"; then
 
11456
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11457
else
 
11458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11459
for as_dir in $PATH
 
11460
do
 
11461
  IFS=$as_save_IFS
 
11462
  test -z "$as_dir" && as_dir=.
 
11463
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11464
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11465
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
11466
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11467
    break 2
 
11468
  fi
 
11469
done
 
11470
  done
 
11471
IFS=$as_save_IFS
 
11472
 
 
11473
fi
 
11474
fi
 
11475
CC=$ac_cv_prog_CC
 
11476
if test -n "$CC"; then
 
11477
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11478
$as_echo "$CC" >&6; }
 
11479
else
 
11480
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11481
$as_echo "no" >&6; }
 
11482
fi
 
11483
 
 
11484
 
 
11485
fi
 
11486
if test -z "$ac_cv_prog_CC"; then
 
11487
  ac_ct_CC=$CC
 
11488
  # Extract the first word of "gcc", so it can be a program name with args.
 
11489
set dummy gcc; ac_word=$2
 
11490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11491
$as_echo_n "checking for $ac_word... " >&6; }
 
11492
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11493
  $as_echo_n "(cached) " >&6
 
11494
else
 
11495
  if test -n "$ac_ct_CC"; then
 
11496
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11497
else
 
11498
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11499
for as_dir in $PATH
 
11500
do
 
11501
  IFS=$as_save_IFS
 
11502
  test -z "$as_dir" && as_dir=.
 
11503
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11504
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11505
    ac_cv_prog_ac_ct_CC="gcc"
 
11506
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11507
    break 2
 
11508
  fi
 
11509
done
 
11510
  done
 
11511
IFS=$as_save_IFS
 
11512
 
 
11513
fi
 
11514
fi
 
11515
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11516
if test -n "$ac_ct_CC"; then
 
11517
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11518
$as_echo "$ac_ct_CC" >&6; }
 
11519
else
 
11520
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11521
$as_echo "no" >&6; }
 
11522
fi
 
11523
 
 
11524
  if test "x$ac_ct_CC" = x; then
 
11525
    CC=""
 
11526
  else
 
11527
    case $cross_compiling:$ac_tool_warned in
 
11528
yes:)
 
11529
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11530
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11531
ac_tool_warned=yes ;;
 
11532
esac
 
11533
    CC=$ac_ct_CC
 
11534
  fi
 
11535
else
 
11536
  CC="$ac_cv_prog_CC"
 
11537
fi
 
11538
 
 
11539
if test -z "$CC"; then
 
11540
          if test -n "$ac_tool_prefix"; then
 
11541
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
11542
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
11543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11544
$as_echo_n "checking for $ac_word... " >&6; }
 
11545
if ${ac_cv_prog_CC+:} false; then :
 
11546
  $as_echo_n "(cached) " >&6
 
11547
else
 
11548
  if test -n "$CC"; then
 
11549
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11550
else
 
11551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11552
for as_dir in $PATH
 
11553
do
 
11554
  IFS=$as_save_IFS
 
11555
  test -z "$as_dir" && as_dir=.
 
11556
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11557
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11558
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
11559
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11560
    break 2
 
11561
  fi
 
11562
done
 
11563
  done
 
11564
IFS=$as_save_IFS
 
11565
 
 
11566
fi
 
11567
fi
 
11568
CC=$ac_cv_prog_CC
 
11569
if test -n "$CC"; then
 
11570
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11571
$as_echo "$CC" >&6; }
 
11572
else
 
11573
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11574
$as_echo "no" >&6; }
 
11575
fi
 
11576
 
 
11577
 
 
11578
  fi
 
11579
fi
 
11580
if test -z "$CC"; then
 
11581
  # Extract the first word of "cc", so it can be a program name with args.
 
11582
set dummy cc; ac_word=$2
 
11583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11584
$as_echo_n "checking for $ac_word... " >&6; }
 
11585
if ${ac_cv_prog_CC+:} false; then :
 
11586
  $as_echo_n "(cached) " >&6
 
11587
else
 
11588
  if test -n "$CC"; then
 
11589
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11590
else
 
11591
  ac_prog_rejected=no
 
11592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11593
for as_dir in $PATH
 
11594
do
 
11595
  IFS=$as_save_IFS
 
11596
  test -z "$as_dir" && as_dir=.
 
11597
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11598
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11599
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
11600
       ac_prog_rejected=yes
 
11601
       continue
 
11602
     fi
 
11603
    ac_cv_prog_CC="cc"
 
11604
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11605
    break 2
 
11606
  fi
 
11607
done
 
11608
  done
 
11609
IFS=$as_save_IFS
 
11610
 
 
11611
if test $ac_prog_rejected = yes; then
 
11612
  # We found a bogon in the path, so make sure we never use it.
 
11613
  set dummy $ac_cv_prog_CC
 
11614
  shift
 
11615
  if test $@%:@ != 0; then
 
11616
    # We chose a different compiler from the bogus one.
 
11617
    # However, it has the same basename, so the bogon will be chosen
 
11618
    # first if we set CC to just the basename; use the full file name.
 
11619
    shift
 
11620
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
11621
  fi
 
11622
fi
 
11623
fi
 
11624
fi
 
11625
CC=$ac_cv_prog_CC
 
11626
if test -n "$CC"; then
 
11627
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11628
$as_echo "$CC" >&6; }
 
11629
else
 
11630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11631
$as_echo "no" >&6; }
 
11632
fi
 
11633
 
 
11634
 
 
11635
fi
 
11636
if test -z "$CC"; then
 
11637
  if test -n "$ac_tool_prefix"; then
 
11638
  for ac_prog in cl.exe
 
11639
  do
 
11640
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
11641
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
11642
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11643
$as_echo_n "checking for $ac_word... " >&6; }
 
11644
if ${ac_cv_prog_CC+:} false; then :
 
11645
  $as_echo_n "(cached) " >&6
 
11646
else
 
11647
  if test -n "$CC"; then
 
11648
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
11649
else
 
11650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11651
for as_dir in $PATH
 
11652
do
 
11653
  IFS=$as_save_IFS
 
11654
  test -z "$as_dir" && as_dir=.
 
11655
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11656
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11657
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
11658
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11659
    break 2
 
11660
  fi
 
11661
done
 
11662
  done
 
11663
IFS=$as_save_IFS
 
11664
 
 
11665
fi
 
11666
fi
 
11667
CC=$ac_cv_prog_CC
 
11668
if test -n "$CC"; then
 
11669
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 
11670
$as_echo "$CC" >&6; }
 
11671
else
 
11672
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11673
$as_echo "no" >&6; }
 
11674
fi
 
11675
 
 
11676
 
 
11677
    test -n "$CC" && break
 
11678
  done
 
11679
fi
 
11680
if test -z "$CC"; then
 
11681
  ac_ct_CC=$CC
 
11682
  for ac_prog in cl.exe
 
11683
do
 
11684
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
11685
set dummy $ac_prog; ac_word=$2
 
11686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
11687
$as_echo_n "checking for $ac_word... " >&6; }
 
11688
if ${ac_cv_prog_ac_ct_CC+:} false; then :
 
11689
  $as_echo_n "(cached) " >&6
 
11690
else
 
11691
  if test -n "$ac_ct_CC"; then
 
11692
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
11693
else
 
11694
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11695
for as_dir in $PATH
 
11696
do
 
11697
  IFS=$as_save_IFS
 
11698
  test -z "$as_dir" && as_dir=.
 
11699
    for ac_exec_ext in '' $ac_executable_extensions; do
 
11700
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
11701
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
11702
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
11703
    break 2
 
11704
  fi
 
11705
done
 
11706
  done
 
11707
IFS=$as_save_IFS
 
11708
 
 
11709
fi
 
11710
fi
 
11711
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
11712
if test -n "$ac_ct_CC"; then
 
11713
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 
11714
$as_echo "$ac_ct_CC" >&6; }
 
11715
else
 
11716
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
11717
$as_echo "no" >&6; }
 
11718
fi
 
11719
 
 
11720
 
 
11721
  test -n "$ac_ct_CC" && break
 
11722
done
 
11723
 
 
11724
  if test "x$ac_ct_CC" = x; then
 
11725
    CC=""
 
11726
  else
 
11727
    case $cross_compiling:$ac_tool_warned in
 
11728
yes:)
 
11729
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
11730
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
11731
ac_tool_warned=yes ;;
 
11732
esac
 
11733
    CC=$ac_ct_CC
 
11734
  fi
 
11735
fi
 
11736
 
 
11737
fi
 
11738
 
 
11739
 
 
11740
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 
11741
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
11742
as_fn_error $? "no acceptable C compiler found in \$PATH
 
11743
See \`config.log' for more details" "$LINENO" 5; }
 
11744
 
 
11745
# Provide some information about the compiler.
 
11746
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 
11747
set X $ac_compile
 
11748
ac_compiler=$2
 
11749
for ac_option in --version -v -V -qversion; do
 
11750
  { { ac_try="$ac_compiler $ac_option >&5"
 
11751
case "(($ac_try" in
 
11752
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11753
  *) ac_try_echo=$ac_try;;
 
11754
esac
 
11755
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 
11756
$as_echo "$ac_try_echo"; } >&5
 
11757
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 
11758
  ac_status=$?
 
11759
  if test -s conftest.err; then
 
11760
    sed '10a\
 
11761
... rest of stderr output deleted ...
 
11762
         10q' conftest.err >conftest.er1
 
11763
    cat conftest.er1 >&5
 
11764
  fi
 
11765
  rm -f conftest.er1 conftest.err
 
11766
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
11767
  test $ac_status = 0; }
 
11768
done
 
11769
 
 
11770
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
 
11771
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
11772
if ${ac_cv_c_compiler_gnu+:} false; then :
 
11773
  $as_echo_n "(cached) " >&6
 
11774
else
 
11775
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11776
/* end confdefs.h.  */
 
11777
 
 
11778
int
 
11779
main ()
 
11780
{
 
11781
#ifndef __GNUC__
 
11782
       choke me
 
11783
#endif
 
11784
 
 
11785
  ;
 
11786
  return 0;
 
11787
}
 
11788
_ACEOF
 
11789
if ac_fn_c_try_compile "$LINENO"; then :
 
11790
  ac_compiler_gnu=yes
 
11791
else
 
11792
  ac_compiler_gnu=no
 
11793
fi
 
11794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11795
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
11796
 
 
11797
fi
 
11798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 
11799
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
11800
if test $ac_compiler_gnu = yes; then
 
11801
  GCC=yes
 
11802
else
 
11803
  GCC=
 
11804
fi
 
11805
ac_test_CFLAGS=${CFLAGS+set}
 
11806
ac_save_CFLAGS=$CFLAGS
 
11807
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 
11808
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
11809
if ${ac_cv_prog_cc_g+:} false; then :
 
11810
  $as_echo_n "(cached) " >&6
 
11811
else
 
11812
  ac_save_c_werror_flag=$ac_c_werror_flag
 
11813
   ac_c_werror_flag=yes
 
11814
   ac_cv_prog_cc_g=no
 
11815
   CFLAGS="-g"
 
11816
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11817
/* end confdefs.h.  */
 
11818
 
 
11819
int
 
11820
main ()
 
11821
{
 
11822
 
 
11823
  ;
 
11824
  return 0;
 
11825
}
 
11826
_ACEOF
 
11827
if ac_fn_c_try_compile "$LINENO"; then :
 
11828
  ac_cv_prog_cc_g=yes
 
11829
else
 
11830
  CFLAGS=""
 
11831
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11832
/* end confdefs.h.  */
 
11833
 
 
11834
int
 
11835
main ()
 
11836
{
 
11837
 
 
11838
  ;
 
11839
  return 0;
 
11840
}
 
11841
_ACEOF
 
11842
if ac_fn_c_try_compile "$LINENO"; then :
 
11843
  
 
11844
else
 
11845
  ac_c_werror_flag=$ac_save_c_werror_flag
 
11846
         CFLAGS="-g"
 
11847
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11848
/* end confdefs.h.  */
 
11849
 
 
11850
int
 
11851
main ()
 
11852
{
 
11853
 
 
11854
  ;
 
11855
  return 0;
 
11856
}
 
11857
_ACEOF
 
11858
if ac_fn_c_try_compile "$LINENO"; then :
 
11859
  ac_cv_prog_cc_g=yes
 
11860
fi
 
11861
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11862
fi
 
11863
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11864
fi
 
11865
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
11866
   ac_c_werror_flag=$ac_save_c_werror_flag
 
11867
fi
 
11868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 
11869
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
11870
if test "$ac_test_CFLAGS" = set; then
 
11871
  CFLAGS=$ac_save_CFLAGS
 
11872
elif test $ac_cv_prog_cc_g = yes; then
 
11873
  if test "$GCC" = yes; then
 
11874
    CFLAGS="-g -O2"
 
11875
  else
 
11876
    CFLAGS="-g"
 
11877
  fi
 
11878
else
 
11879
  if test "$GCC" = yes; then
 
11880
    CFLAGS="-O2"
 
11881
  else
 
11882
    CFLAGS=
 
11883
  fi
 
11884
fi
 
11885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
 
11886
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
11887
if ${ac_cv_prog_cc_c89+:} false; then :
 
11888
  $as_echo_n "(cached) " >&6
 
11889
else
 
11890
  ac_cv_prog_cc_c89=no
 
11891
ac_save_CC=$CC
 
11892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11893
/* end confdefs.h.  */
 
11894
#include <stdarg.h>
 
11895
#include <stdio.h>
 
11896
struct stat;
 
11897
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
11898
struct buf { int x; };
 
11899
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
11900
static char *e (p, i)
 
11901
     char **p;
 
11902
     int i;
 
11903
{
 
11904
  return p[i];
 
11905
}
 
11906
static char *f (char * (*g) (char **, int), char **p, ...)
 
11907
{
 
11908
  char *s;
 
11909
  va_list v;
 
11910
  va_start (v,p);
 
11911
  s = g (p, va_arg (v,int));
 
11912
  va_end (v);
 
11913
  return s;
 
11914
}
 
11915
 
 
11916
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
11917
   function prototypes and stuff, but not '\xHH' hex character constants.
 
11918
   These don't provoke an error unfortunately, instead are silently treated
 
11919
   as 'x'.  The following induces an error, until -std is added to get
 
11920
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
11921
   array size at least.  It's necessary to write '\x00'==0 to get something
 
11922
   that's true only with -std.  */
 
11923
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
11924
 
 
11925
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
11926
   inside strings and character constants.  */
 
11927
#define FOO(x) 'x'
 
11928
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
11929
 
 
11930
int test (int i, double x);
 
11931
struct s1 {int (*f) (int a);};
 
11932
struct s2 {int (*f) (double a);};
 
11933
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
11934
int argc;
 
11935
char **argv;
 
11936
int
 
11937
main ()
 
11938
{
 
11939
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
11940
  ;
 
11941
  return 0;
 
11942
}
 
11943
_ACEOF
 
11944
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
11945
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
11946
do
 
11947
  CC="$ac_save_CC $ac_arg"
 
11948
  if ac_fn_c_try_compile "$LINENO"; then :
 
11949
  ac_cv_prog_cc_c89=$ac_arg
 
11950
fi
 
11951
rm -f core conftest.err conftest.$ac_objext
 
11952
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
11953
done
 
11954
rm -f conftest.$ac_ext
 
11955
CC=$ac_save_CC
 
11956
 
 
11957
fi
 
11958
# AC_CACHE_VAL
 
11959
case "x$ac_cv_prog_cc_c89" in
 
11960
  x)
 
11961
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 
11962
$as_echo "none needed" >&6; } ;;
 
11963
  xno)
 
11964
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 
11965
$as_echo "unsupported" >&6; } ;;
 
11966
  *)
 
11967
    CC="$CC $ac_cv_prog_cc_c89"
 
11968
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 
11969
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
11970
esac
 
11971
if test "x$ac_cv_prog_cc_c89" != xno; then :
 
11972
  
 
11973
fi
 
11974
 
 
11975
ac_ext=c
 
11976
ac_cpp='$CPP $CPPFLAGS'
 
11977
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11978
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11979
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11980
 
 
11981
ac_ext=c
 
11982
ac_cpp='$CPP $CPPFLAGS'
 
11983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11986
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 
11987
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
 
11988
if ${am_cv_prog_cc_c_o+:} false; then :
 
11989
  $as_echo_n "(cached) " >&6
 
11990
else
 
11991
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
11992
/* end confdefs.h.  */
 
11993
 
 
11994
int
 
11995
main ()
 
11996
{
 
11997
 
 
11998
  ;
 
11999
  return 0;
 
12000
}
 
12001
_ACEOF
 
12002
  # Make sure it works both with $CC and with simple cc.
 
12003
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
12004
  # compilers refuse to overwrite an existing .o file with -o,
 
12005
  # though they will create one.
 
12006
  am_cv_prog_cc_c_o=yes
 
12007
  for am_i in 1 2; do
 
12008
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 
12009
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 
12010
   ac_status=$?
 
12011
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12012
   (exit $ac_status); } \
 
12013
         && test -f conftest2.$ac_objext; then
 
12014
      : OK
 
12015
    else
 
12016
      am_cv_prog_cc_c_o=no
 
12017
      break
 
12018
    fi
 
12019
  done
 
12020
  rm -f core conftest*
 
12021
  unset am_i
 
12022
fi
 
12023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 
12024
$as_echo "$am_cv_prog_cc_c_o" >&6; }
 
12025
if test "$am_cv_prog_cc_c_o" != yes; then
 
12026
   # Losing compiler, so override with the script.
 
12027
   # FIXME: It is wrong to rewrite CC.
 
12028
   # But if we don't then we get into trouble of one sort or another.
 
12029
   # A longer-term fix would be to have automake use am__CC in this case,
 
12030
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
12031
   CC="$am_aux_dir/compile $CC"
 
12032
fi
 
12033
ac_ext=c
 
12034
ac_cpp='$CPP $CPPFLAGS'
 
12035
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12036
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12037
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12038
 
 
12039
 
 
12040
depcc="$CC"   am_compiler_list=
 
12041
 
 
12042
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 
12043
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
12044
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
 
12045
  $as_echo_n "(cached) " >&6
 
12046
else
 
12047
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
12048
  # We make a subdir and do the tests there.  Otherwise we can end up
 
12049
  # making bogus files that we don't know about and never remove.  For
 
12050
  # instance it was reported that on HP-UX the gcc test will end up
 
12051
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
12052
  # in D".
 
12053
  rm -rf conftest.dir
 
12054
  mkdir conftest.dir
 
12055
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
12056
  # using a relative directory.
 
12057
  cp "$am_depcomp" conftest.dir
 
12058
  cd conftest.dir
 
12059
  # We will build objects and dependencies in a subdirectory because
 
12060
  # it helps to detect inapplicable dependency modes.  For instance
 
12061
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
12062
  # side effect of compilation, but ICC will put the dependencies in
 
12063
  # the current directory while Tru64 will put them in the object
 
12064
  # directory.
 
12065
  mkdir sub
 
12066
 
 
12067
  am_cv_CC_dependencies_compiler_type=none
 
12068
  if test "$am_compiler_list" = ""; then
 
12069
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
12070
  fi
 
12071
  am__universal=false
 
12072
  case " $depcc " in #(
 
12073
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
12074
     esac
 
12075
 
 
12076
  for depmode in $am_compiler_list; do
 
12077
    # Setup a source with many dependencies, because some compilers
 
12078
    # like to wrap large dependency lists on column 80 (with \), and
 
12079
    # we should not choose a depcomp mode which is confused by this.
 
12080
    #
 
12081
    # We need to recreate these files for each test, as the compiler may
 
12082
    # overwrite some of them when testing with obscure command lines.
 
12083
    # This happens at least with the AIX C compiler.
 
12084
    : > sub/conftest.c
 
12085
    for i in 1 2 3 4 5 6; do
 
12086
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
12087
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
12088
      # Solaris 10 /bin/sh.
 
12089
      echo '/* dummy */' > sub/conftst$i.h
 
12090
    done
 
12091
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
12092
 
 
12093
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
 
12094
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
12095
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
12096
    # versions had trouble with output in subdirs.
 
12097
    am__obj=sub/conftest.${OBJEXT-o}
 
12098
    am__minus_obj="-o $am__obj"
 
12099
    case $depmode in
 
12100
    gcc)
 
12101
      # This depmode causes a compiler race in universal mode.
 
12102
      test "$am__universal" = false || continue
 
12103
      ;;
 
12104
    nosideeffect)
 
12105
      # After this tag, mechanisms are not by side-effect, so they'll
 
12106
      # only be used when explicitly requested.
 
12107
      if test "x$enable_dependency_tracking" = xyes; then
 
12108
        continue
 
12109
      else
 
12110
        break
 
12111
      fi
 
12112
      ;;
 
12113
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
12114
      # This compiler won't grok '-c -o', but also, the minuso test has
 
12115
      # not run yet.  These depmodes are late enough in the game, and
 
12116
      # so weak that their functioning should not be impacted.
 
12117
      am__obj=conftest.${OBJEXT-o}
 
12118
      am__minus_obj=
 
12119
      ;;
 
12120
    none) break ;;
 
12121
    esac
 
12122
    if depmode=$depmode \
 
12123
       source=sub/conftest.c object=$am__obj \
 
12124
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
12125
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
12126
         >/dev/null 2>conftest.err &&
 
12127
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
12128
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
12129
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
12130
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
12131
      # icc doesn't choke on unknown options, it will just issue warnings
 
12132
      # or remarks (even with -Werror).  So we grep stderr for any message
 
12133
      # that says an option was ignored or not supported.
 
12134
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
12135
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
12136
      # The diagnosis changed in icc 8.0:
 
12137
      #   icc: Command line remark: option '-MP' not supported
 
12138
      if (grep 'ignoring option' conftest.err ||
 
12139
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
12140
        am_cv_CC_dependencies_compiler_type=$depmode
 
12141
        break
 
12142
      fi
 
12143
    fi
 
12144
  done
 
12145
 
 
12146
  cd ..
 
12147
  rm -rf conftest.dir
 
12148
else
 
12149
  am_cv_CC_dependencies_compiler_type=none
 
12150
fi
 
12151
 
 
12152
fi
 
12153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 
12154
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
12155
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
12156
 
 
12157
 if 
 
12158
  test "x$enable_dependency_tracking" != xno \
 
12159
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
12160
  am__fastdepCC_TRUE=
 
12161
  am__fastdepCC_FALSE='#'
 
12162
else
 
12163
  am__fastdepCC_TRUE='#'
 
12164
  am__fastdepCC_FALSE=
 
12165
fi
 
12166
 
 
12167
 
 
12168
 
 
12169
 
 
12170
    
 
12171
 
 
12172
  case $host in
 
12173
                    *-freebsd* | *-openbsd*) ;;
 
12174
     *)
 
12175
                                for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
 
12176
          
 
12177
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $possible_flags flag" >&5
 
12178
$as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
 
12179
if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
 
12180
  $as_echo_n "(cached) " >&6
 
12181
else
 
12182
  ac_save_LDFLAGS="$LDFLAGS"
 
12183
     LDFLAGS="$LDFLAGS $possible_flags"
 
12184
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12185
/* end confdefs.h.  */
 
12186
int main() { return 1; }
 
12187
_ACEOF
 
12188
if ac_fn_c_try_link "$LINENO"; then :
 
12189
  eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
 
12190
else
 
12191
  eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
 
12192
fi
 
12193
rm -f core conftest.err conftest.$ac_objext \
 
12194
    conftest$ac_exeext conftest.$ac_ext
 
12195
     LDFLAGS="$ac_save_LDFLAGS"
 
12196
    
 
12197
fi
 
12198
eval ac_res=\$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`
 
12199
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 
12200
$as_echo "$ac_res" >&6; }
 
12201
 
 
12202
  if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then :
 
12203
  LDFLAGS_NOUNDEFINED="$possible_flags"
 
12204
fi
 
12205
 
 
12206
          break
 
12207
        done
 
12208
        ;;
 
12209
  esac
 
12210
 
 
12211
  
 
12212
 
 
12213
 
 
12214
 
 
12215
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
 
12216
$as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
 
12217
if ${cc_cv_werror+:} false; then :
 
12218
  $as_echo_n "(cached) " >&6
 
12219
else
 
12220
  
 
12221
  if ${cc_cv_cflags__Werror+:} false; then :
 
12222
  $as_echo_n "(cached) " >&6
 
12223
else
 
12224
  ac_save_CFLAGS="$CFLAGS"
 
12225
     CFLAGS="$CFLAGS -Werror"
 
12226
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12227
/* end confdefs.h.  */
 
12228
int a;
 
12229
_ACEOF
 
12230
if ac_fn_c_try_compile "$LINENO"; then :
 
12231
  eval "cc_cv_cflags__Werror='yes'"
 
12232
else
 
12233
  eval "cc_cv_cflags__Werror='no'"
 
12234
fi
 
12235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12236
     CFLAGS="$ac_save_CFLAGS"
 
12237
    
 
12238
fi
 
12239
 
 
12240
 
 
12241
  if eval test x$cc_cv_cflags__Werror = xyes; then :
 
12242
  cc_cv_werror=-Werror
 
12243
else
 
12244
  
 
12245
  if ${cc_cv_cflags__errwarn__all+:} false; then :
 
12246
  $as_echo_n "(cached) " >&6
 
12247
else
 
12248
  ac_save_CFLAGS="$CFLAGS"
 
12249
     CFLAGS="$CFLAGS -errwarn=%all"
 
12250
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12251
/* end confdefs.h.  */
 
12252
int a;
 
12253
_ACEOF
 
12254
if ac_fn_c_try_compile "$LINENO"; then :
 
12255
  eval "cc_cv_cflags__errwarn__all='yes'"
 
12256
else
 
12257
  eval "cc_cv_cflags__errwarn__all='no'"
 
12258
fi
 
12259
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12260
     CFLAGS="$ac_save_CFLAGS"
 
12261
    
 
12262
fi
 
12263
 
 
12264
 
 
12265
  if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
 
12266
  cc_cv_werror=-errwarn=%all
 
12267
fi
 
12268
 
 
12269
fi
 
12270
 
 
12271
    
 
12272
fi
 
12273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
 
12274
$as_echo "$cc_cv_werror" >&6; }
 
12275
 
 
12276
 
 
12277
  
 
12278
  
 
12279
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
 
12280
$as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
 
12281
if ${cc_cv_attribute_visibility_default+:} false; then :
 
12282
  $as_echo_n "(cached) " >&6
 
12283
else
 
12284
  ac_save_CFLAGS="$CFLAGS"
 
12285
     CFLAGS="$CFLAGS $cc_cv_werror"
 
12286
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12287
/* end confdefs.h.  */
 
12288
void __attribute__((visibility("default"))) default_function() { }
 
12289
_ACEOF
 
12290
if ac_fn_c_try_compile "$LINENO"; then :
 
12291
  eval "cc_cv_attribute_visibility_default='yes'"
 
12292
else
 
12293
  eval "cc_cv_attribute_visibility_default='no'"
 
12294
fi
 
12295
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12296
     CFLAGS="$ac_save_CFLAGS"
 
12297
    
 
12298
fi
 
12299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
 
12300
$as_echo "$cc_cv_attribute_visibility_default" >&6; }
 
12301
 
 
12302
  if eval test x$cc_cv_attribute_visibility_default = xyes; then :
 
12303
  
 
12304
$as_echo "@%:@define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
 
12305
 
 
12306
     
 
12307
  
 
12308
  
 
12309
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
 
12310
$as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
 
12311
if ${cc_cv_flag_visibility+:} false; then :
 
12312
  $as_echo_n "(cached) " >&6
 
12313
else
 
12314
  cc_flag_visibility_save_CFLAGS="$CFLAGS"
 
12315
     CFLAGS="$CFLAGS $cc_cv_werror"
 
12316
     
 
12317
  if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
 
12318
  $as_echo_n "(cached) " >&6
 
12319
else
 
12320
  ac_save_CFLAGS="$CFLAGS"
 
12321
     CFLAGS="$CFLAGS -fvisibility=hidden"
 
12322
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12323
/* end confdefs.h.  */
 
12324
int a;
 
12325
_ACEOF
 
12326
if ac_fn_c_try_compile "$LINENO"; then :
 
12327
  eval "cc_cv_cflags__fvisibility_hidden='yes'"
 
12328
else
 
12329
  eval "cc_cv_cflags__fvisibility_hidden='no'"
 
12330
fi
 
12331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
12332
     CFLAGS="$ac_save_CFLAGS"
 
12333
    
 
12334
fi
 
12335
 
 
12336
 
 
12337
  if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
 
12338
  cc_cv_flag_visibility='yes'
 
12339
else
 
12340
  cc_cv_flag_visibility='no'
 
12341
fi
 
12342
 
 
12343
     CFLAGS="$cc_flag_visibility_save_CFLAGS"
 
12344
fi
 
12345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
 
12346
$as_echo "$cc_cv_flag_visibility" >&6; }
 
12347
  
 
12348
  if test "x$cc_cv_flag_visibility" = "xyes"; then :
 
12349
  
 
12350
$as_echo "@%:@define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
 
12351
 
 
12352
     
 
12353
    VISIBILITY_CFLAG="-fvisibility=hidden"
 
12354
  
 
12355
fi
 
12356
 
 
12357
 
 
12358
fi
 
12359
 
 
12360
 
 
12361
 
 
12362
 
 
12363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
 
12364
$as_echo_n "checking for library containing crypt... " >&6; }
 
12365
if ${ac_cv_search_crypt+:} false; then :
 
12366
  $as_echo_n "(cached) " >&6
 
12367
else
 
12368
  ac_func_search_save_LIBS=$LIBS
 
12369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12370
/* end confdefs.h.  */
 
12371
 
 
12372
/* Override any GCC internal prototype to avoid an error.
 
12373
   Use char because int might match the return type of a GCC
 
12374
   builtin and then its argument prototype would still apply.  */
 
12375
#ifdef __cplusplus
 
12376
extern "C"
 
12377
#endif
 
12378
char crypt ();
 
12379
int
 
12380
main ()
 
12381
{
 
12382
return crypt ();
 
12383
  ;
 
12384
  return 0;
 
12385
}
 
12386
_ACEOF
 
12387
for ac_lib in '' c crypt; do
 
12388
  if test -z "$ac_lib"; then
 
12389
    ac_res="none required"
 
12390
  else
 
12391
    ac_res=-l$ac_lib
 
12392
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
12393
  fi
 
12394
  if ac_fn_c_try_link "$LINENO"; then :
 
12395
  ac_cv_search_crypt=$ac_res
 
12396
fi
 
12397
rm -f core conftest.err conftest.$ac_objext \
 
12398
    conftest$ac_exeext
 
12399
  if ${ac_cv_search_crypt+:} false; then :
 
12400
  break
 
12401
fi
 
12402
done
 
12403
if ${ac_cv_search_crypt+:} false; then :
 
12404
  
 
12405
else
 
12406
  ac_cv_search_crypt=no
 
12407
fi
 
12408
rm conftest.$ac_ext
 
12409
LIBS=$ac_func_search_save_LIBS
 
12410
fi
 
12411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
 
12412
$as_echo "$ac_cv_search_crypt" >&6; }
 
12413
ac_res=$ac_cv_search_crypt
 
12414
if test "$ac_res" != no; then :
 
12415
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
12416
  
 
12417
fi
 
12418
 
 
12419
 
 
12420
 
 
12421
 
 
12422
  
 
12423
  for ac_header in $ac_header_list
 
12424
do :
 
12425
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
12426
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
 
12427
"
 
12428
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
 
12429
  cat >>confdefs.h <<_ACEOF
 
12430
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
12431
_ACEOF
 
12432
 
 
12433
fi
 
12434
 
 
12435
done
 
12436
 
 
12437
  
 
12438
 
 
12439
 
 
12440
 
 
12441
 
 
12442
 
 
12443
 
 
12444
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_get_user in -lpam" >&5
 
12445
$as_echo_n "checking for pam_get_user in -lpam... " >&6; }
 
12446
if ${ac_cv_lib_pam_pam_get_user+:} false; then :
 
12447
  $as_echo_n "(cached) " >&6
 
12448
else
 
12449
  ac_check_lib_save_LIBS=$LIBS
 
12450
LIBS="-lpam  $LIBS"
 
12451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12452
/* end confdefs.h.  */
 
12453
 
 
12454
/* Override any GCC internal prototype to avoid an error.
 
12455
   Use char because int might match the return type of a GCC
 
12456
   builtin and then its argument prototype would still apply.  */
 
12457
#ifdef __cplusplus
 
12458
extern "C"
 
12459
#endif
 
12460
char pam_get_user ();
 
12461
int
 
12462
main ()
 
12463
{
 
12464
return pam_get_user ();
 
12465
  ;
 
12466
  return 0;
 
12467
}
 
12468
_ACEOF
 
12469
if ac_fn_c_try_link "$LINENO"; then :
 
12470
  ac_cv_lib_pam_pam_get_user=yes
 
12471
else
 
12472
  ac_cv_lib_pam_pam_get_user=no
 
12473
fi
 
12474
rm -f core conftest.err conftest.$ac_objext \
 
12475
    conftest$ac_exeext conftest.$ac_ext
 
12476
LIBS=$ac_check_lib_save_LIBS
 
12477
fi
 
12478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_get_user" >&5
 
12479
$as_echo "$ac_cv_lib_pam_pam_get_user" >&6; }
 
12480
if test "x$ac_cv_lib_pam_pam_get_user" = xyes; then :
 
12481
  :
 
12482
fi
 
12483
 
 
12484
 
 
12485
if test "x$ac_cv_header_security_pam_modules_h" = "xno" \
 
12486
       -o "x$ac_cv_lib_pam_pam_get_user" = "xno"; then :
 
12487
  
 
12488
  as_fn_error $? "Unable to find the PAM library or the PAM header files" "$LINENO" 5
 
12489
 
 
12490
fi
 
12491
 
 
12492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the PAM module" >&5
 
12493
$as_echo_n "checking where to install the PAM module... " >&6; }
 
12494
if test "x$ac_cv_header_security_openpam_h" = "xyes"; then :
 
12495
          pammoddir='$(libdir)'
 
12496
elif test "x$ac_cv_header_security_pam_misc_h" = "xyes"; then :
 
12497
                          pammoddir='$(libdir)/security'
 
12498
else
 
12499
  pammoddir='$(libdir)'
 
12500
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown PAM implementation, defaulting to something safe" >&5
 
12501
$as_echo "$as_me: WARNING: Unknown PAM implementation, defaulting to something safe" >&2;}
 
12502
      
 
12503
fi
 
12504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pammoddir" >&5
 
12505
$as_echo "$pammoddir" >&6; }
 
12506
 
 
12507
 
 
12508
 
 
12509
ac_fn_c_check_func "$LINENO" "openpam_ttyconv" "ac_cv_func_openpam_ttyconv"
 
12510
if test "x$ac_cv_func_openpam_ttyconv" = xyes; then :
 
12511
  PAMCONVLIB=-lpam
 
12512
else
 
12513
  
 
12514
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5
 
12515
$as_echo_n "checking for misc_conv in -lpam_misc... " >&6; }
 
12516
if ${ac_cv_lib_pam_misc_misc_conv+:} false; then :
 
12517
  $as_echo_n "(cached) " >&6
 
12518
else
 
12519
  ac_check_lib_save_LIBS=$LIBS
 
12520
LIBS="-lpam_misc  $LIBS"
 
12521
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
12522
/* end confdefs.h.  */
 
12523
 
 
12524
/* Override any GCC internal prototype to avoid an error.
 
12525
   Use char because int might match the return type of a GCC
 
12526
   builtin and then its argument prototype would still apply.  */
 
12527
#ifdef __cplusplus
 
12528
extern "C"
 
12529
#endif
 
12530
char misc_conv ();
 
12531
int
 
12532
main ()
 
12533
{
 
12534
return misc_conv ();
 
12535
  ;
 
12536
  return 0;
 
12537
}
 
12538
_ACEOF
 
12539
if ac_fn_c_try_link "$LINENO"; then :
 
12540
  ac_cv_lib_pam_misc_misc_conv=yes
 
12541
else
 
12542
  ac_cv_lib_pam_misc_misc_conv=no
 
12543
fi
 
12544
rm -f core conftest.err conftest.$ac_objext \
 
12545
    conftest$ac_exeext conftest.$ac_ext
 
12546
LIBS=$ac_check_lib_save_LIBS
 
12547
fi
 
12548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5
 
12549
$as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; }
 
12550
if test "x$ac_cv_lib_pam_misc_misc_conv" = xyes; then :
 
12551
  PAMCONVLIB=-lpam_misc
 
12552
else
 
12553
  
 
12554
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find a compatible PAM conversation, not building tests" >&5
 
12555
$as_echo "$as_me: WARNING: Unable to find a compatible PAM conversation, not building tests" >&2;}
 
12556
  
 
12557
fi
 
12558
 
 
12559
 
 
12560
fi
 
12561
 
 
12562
 
 
12563
 if test "x$PAMCONVLIB" != "x"; then
 
12564
  HAVE_PAM_CONV_TRUE=
 
12565
  HAVE_PAM_CONV_FALSE='#'
 
12566
else
 
12567
  HAVE_PAM_CONV_TRUE='#'
 
12568
  HAVE_PAM_CONV_FALSE=
 
12569
fi
 
12570
 
 
12571
 
 
12572
 
 
12573
    
 
12574
@%:@ Check whether --with-postgresql was given.
 
12575
if test "${with_postgresql+set}" = set; then :
 
12576
  withval=$with_postgresql; 
 
12577
        if test "$withval" = "no"; then
 
12578
            want_postgresql="no"
 
12579
        elif test "$withval" = "yes"; then
 
12580
            want_postgresql="yes"
 
12581
        else
 
12582
            want_postgresql="yes"
 
12583
            PG_CONFIG="$withval"
 
12584
        fi
 
12585
        
 
12586
else
 
12587
  want_postgresql="yes"
 
12588
    
 
12589
fi
 
12590
 
 
12591
 
 
12592
    POSTGRESQL_CFLAGS=""
 
12593
    POSTGRESQL_LDFLAGS=""
 
12594
    POSTGRESQL_VERSION=""
 
12595
 
 
12596
            
 
12597
    if test "$want_postgresql" = "yes"; then
 
12598
 
 
12599
        if test -z "$PG_CONFIG" -o test; then
 
12600
            # Extract the first word of "pg_config", so it can be a program name with args.
 
12601
set dummy pg_config; ac_word=$2
 
12602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12603
$as_echo_n "checking for $ac_word... " >&6; }
 
12604
if ${ac_cv_path_PG_CONFIG+:} false; then :
 
12605
  $as_echo_n "(cached) " >&6
 
12606
else
 
12607
  case $PG_CONFIG in
 
12608
  [\\/]* | ?:[\\/]*)
 
12609
  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
 
12610
  ;;
 
12611
  *)
 
12612
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12613
for as_dir in $PATH
 
12614
do
 
12615
  IFS=$as_save_IFS
 
12616
  test -z "$as_dir" && as_dir=.
 
12617
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12618
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12619
    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12620
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12621
    break 2
 
12622
  fi
 
12623
done
 
12624
  done
 
12625
IFS=$as_save_IFS
 
12626
 
 
12627
  ;;
 
12628
esac
 
12629
fi
 
12630
PG_CONFIG=$ac_cv_path_PG_CONFIG
 
12631
if test -n "$PG_CONFIG"; then
 
12632
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
 
12633
$as_echo "$PG_CONFIG" >&6; }
 
12634
else
 
12635
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12636
$as_echo "no" >&6; }
 
12637
fi
 
12638
 
 
12639
 
 
12640
        fi
 
12641
 
 
12642
        if test ! -x "$PG_CONFIG"; then
 
12643
            as_fn_error $? "$PG_CONFIG does not exist or it is not an exectuable file" "$LINENO" 5
 
12644
            PG_CONFIG="no"
 
12645
            found_postgresql="no"
 
12646
        fi
 
12647
 
 
12648
        if test "$PG_CONFIG" != "no"; then
 
12649
            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5
 
12650
$as_echo_n "checking for PostgreSQL libraries... " >&6; }
 
12651
 
 
12652
            POSTGRESQL_CFLAGS="-I`$PG_CONFIG --includedir`"
 
12653
            POSTGRESQL_LDFLAGS="-L`$PG_CONFIG --libdir` -lpq"
 
12654
 
 
12655
            POSTGRESQL_VERSION=`$PG_CONFIG --version | sed -e 's#PostgreSQL ##'`
 
12656
 
 
12657
            
 
12658
$as_echo "@%:@define HAVE_POSTGRESQL 1" >>confdefs.h
 
12659
 
 
12660
 
 
12661
            found_postgresql="yes"
 
12662
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12663
$as_echo "yes" >&6; }
 
12664
        else
 
12665
            found_postgresql="no"
 
12666
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12667
$as_echo "no" >&6; }
 
12668
        fi
 
12669
    fi
 
12670
 
 
12671
            
 
12672
 
 
12673
    postgresql_version_req=
 
12674
 
 
12675
    if test "$found_postgresql" = "yes" -a -n "$postgresql_version_req"; then
 
12676
 
 
12677
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= $postgresql_version_req" >&5
 
12678
$as_echo_n "checking if PostgreSQL version is >= $postgresql_version_req... " >&6; }
 
12679
 
 
12680
                        postgresql_version_req_major=`expr $postgresql_version_req : '\([0-9]*\)'`
 
12681
        postgresql_version_req_minor=`expr $postgresql_version_req : '[0-9]*\.\([0-9]*\)'`
 
12682
        postgresql_version_req_micro=`expr $postgresql_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
 
12683
        if test "x$postgresql_version_req_micro" = "x"; then
 
12684
            postgresql_version_req_micro="0"
 
12685
        fi
 
12686
 
 
12687
        postgresql_version_req_number=`expr $postgresql_version_req_major \* 1000000 \
 
12688
                                   \+ $postgresql_version_req_minor \* 1000 \
 
12689
                                   \+ $postgresql_version_req_micro`
 
12690
 
 
12691
                        postgresql_version_major=`expr $POSTGRESQL_VERSION : '\([0-9]*\)'`
 
12692
        postgresql_version_minor=`expr $POSTGRESQL_VERSION : '[0-9]*\.\([0-9]*\)'`
 
12693
        postgresql_version_micro=`expr $POSTGRESQL_VERSION : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
 
12694
        if test "x$postgresql_version_micro" = "x"; then
 
12695
            postgresql_version_micro="0"
 
12696
        fi
 
12697
 
 
12698
        postgresql_version_number=`expr $postgresql_version_major \* 1000000 \
 
12699
                                   \+ $postgresql_version_minor \* 1000 \
 
12700
                                   \+ $postgresql_version_micro`
 
12701
 
 
12702
        postgresql_version_check=`expr $postgresql_version_number \>\= $postgresql_version_req_number`
 
12703
        if test "$postgresql_version_check" = "1"; then
 
12704
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
12705
$as_echo "yes" >&6; }
 
12706
        else
 
12707
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12708
$as_echo "no" >&6; }
 
12709
        fi
 
12710
    fi
 
12711
 
 
12712
    
 
12713
    
 
12714
    
 
12715
 
 
12716
if test "x$found_postgresql" != "xyes"; then :
 
12717
  
 
12718
  as_fn_error $? "Unable to find the PostgreSQL development files" "$LINENO" 5
 
12719
 
 
12720
fi
 
12721
 
 
12722
 
 
12723
  
 
12724
@%:@ Check whether --with-libgcrypt-prefix was given.
 
12725
if test "${with_libgcrypt_prefix+set}" = set; then :
 
12726
  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
 
12727
else
 
12728
  libgcrypt_config_prefix=""
 
12729
fi
 
12730
 
 
12731
  if test x$libgcrypt_config_prefix != x ; then
 
12732
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
12733
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
12734
     fi
 
12735
  fi
 
12736
 
 
12737
  if test -n "$ac_tool_prefix"; then
 
12738
  # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
 
12739
set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
 
12740
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12741
$as_echo_n "checking for $ac_word... " >&6; }
 
12742
if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
 
12743
  $as_echo_n "(cached) " >&6
 
12744
else
 
12745
  case $LIBGCRYPT_CONFIG in
 
12746
  [\\/]* | ?:[\\/]*)
 
12747
  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
 
12748
  ;;
 
12749
  *)
 
12750
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12751
for as_dir in $PATH
 
12752
do
 
12753
  IFS=$as_save_IFS
 
12754
  test -z "$as_dir" && as_dir=.
 
12755
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12756
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12757
    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12759
    break 2
 
12760
  fi
 
12761
done
 
12762
  done
 
12763
IFS=$as_save_IFS
 
12764
 
 
12765
  ;;
 
12766
esac
 
12767
fi
 
12768
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
 
12769
if test -n "$LIBGCRYPT_CONFIG"; then
 
12770
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
 
12771
$as_echo "$LIBGCRYPT_CONFIG" >&6; }
 
12772
else
 
12773
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12774
$as_echo "no" >&6; }
 
12775
fi
 
12776
 
 
12777
 
 
12778
fi
 
12779
if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
 
12780
  ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
 
12781
  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
 
12782
set dummy libgcrypt-config; ac_word=$2
 
12783
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 
12784
$as_echo_n "checking for $ac_word... " >&6; }
 
12785
if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
 
12786
  $as_echo_n "(cached) " >&6
 
12787
else
 
12788
  case $ac_pt_LIBGCRYPT_CONFIG in
 
12789
  [\\/]* | ?:[\\/]*)
 
12790
  ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
 
12791
  ;;
 
12792
  *)
 
12793
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
12794
for as_dir in $PATH
 
12795
do
 
12796
  IFS=$as_save_IFS
 
12797
  test -z "$as_dir" && as_dir=.
 
12798
    for ac_exec_ext in '' $ac_executable_extensions; do
 
12799
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
12800
    ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
12801
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 
12802
    break 2
 
12803
  fi
 
12804
done
 
12805
  done
 
12806
IFS=$as_save_IFS
 
12807
 
 
12808
  ;;
 
12809
esac
 
12810
fi
 
12811
ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
 
12812
if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
 
12813
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
 
12814
$as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
 
12815
else
 
12816
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12817
$as_echo "no" >&6; }
 
12818
fi
 
12819
 
 
12820
  if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
 
12821
    LIBGCRYPT_CONFIG="no"
 
12822
  else
 
12823
    case $cross_compiling:$ac_tool_warned in
 
12824
yes:)
 
12825
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 
12826
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
12827
ac_tool_warned=yes ;;
 
12828
esac
 
12829
    LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
 
12830
  fi
 
12831
else
 
12832
  LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
 
12833
fi
 
12834
 
 
12835
  tmp=1:1.2.0
 
12836
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
12837
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
12838
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
12839
  else
 
12840
     req_libgcrypt_api=0
 
12841
     min_libgcrypt_version="$tmp"
 
12842
  fi
 
12843
 
 
12844
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
 
12845
$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
 
12846
  ok=no
 
12847
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
12848
    req_major=`echo $min_libgcrypt_version | \
 
12849
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
12850
    req_minor=`echo $min_libgcrypt_version | \
 
12851
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
12852
    req_micro=`echo $min_libgcrypt_version | \
 
12853
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
12854
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
12855
    major=`echo $libgcrypt_config_version | \
 
12856
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
12857
    minor=`echo $libgcrypt_config_version | \
 
12858
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
12859
    micro=`echo $libgcrypt_config_version | \
 
12860
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
12861
    if test "$major" -gt "$req_major"; then
 
12862
        ok=yes
 
12863
    else
 
12864
        if test "$major" -eq "$req_major"; then
 
12865
            if test "$minor" -gt "$req_minor"; then
 
12866
               ok=yes
 
12867
            else
 
12868
               if test "$minor" -eq "$req_minor"; then
 
12869
                   if test "$micro" -ge "$req_micro"; then
 
12870
                     ok=yes
 
12871
                   fi
 
12872
               fi
 
12873
            fi
 
12874
        fi
 
12875
    fi
 
12876
  fi
 
12877
  if test $ok = yes; then
 
12878
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
 
12879
$as_echo "yes ($libgcrypt_config_version)" >&6; }
 
12880
  else
 
12881
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
12882
$as_echo "no" >&6; }
 
12883
  fi
 
12884
  if test $ok = yes; then
 
12885
     # If we have a recent libgcrypt, we should also check that the
 
12886
     # API is compatible
 
12887
     if test "$req_libgcrypt_api" -gt 0 ; then
 
12888
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
12889
        if test "$tmp" -gt 0 ; then
 
12890
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
 
12891
$as_echo_n "checking LIBGCRYPT API version... " >&6; }
 
12892
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
12893
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
 
12894
$as_echo "okay" >&6; }
 
12895
           else
 
12896
             ok=no
 
12897
             { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
 
12898
$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
 
12899
           fi
 
12900
        fi
 
12901
     fi
 
12902
  fi
 
12903
  if test $ok = yes; then
 
12904
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
12905
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
12906
    :
 
12907
    libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
 
12908
    if test x"$libgcrypt_config_host" != xnone ; then
 
12909
      if test x"$libgcrypt_config_host" != x"$host" ; then
 
12910
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 
 
12911
***
 
12912
*** The config script $LIBGCRYPT_CONFIG was
 
12913
*** built for $libgcrypt_config_host and thus may not match the
 
12914
*** used host $host.
 
12915
*** You may want to use the configure option --with-libgcrypt-prefix
 
12916
*** to specify a matching config script.
 
12917
***" >&5
 
12918
$as_echo "$as_me: WARNING: 
 
12919
***
 
12920
*** The config script $LIBGCRYPT_CONFIG was
 
12921
*** built for $libgcrypt_config_host and thus may not match the
 
12922
*** used host $host.
 
12923
*** You may want to use the configure option --with-libgcrypt-prefix
 
12924
*** to specify a matching config script.
 
12925
***" >&2;}
 
12926
      fi
 
12927
    fi
 
12928
  else
 
12929
    LIBGCRYPT_CFLAGS=""
 
12930
    LIBGCRYPT_LIBS=""
 
12931
    
 
12932
  as_fn_error $? "Unable to find libgcrypt development files" "$LINENO" 5
 
12933
 
 
12934
  fi
 
12935
  
 
12936
  
 
12937
 
 
12938
 
 
12939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for the pam_pgsql.conf file" >&5
 
12940
$as_echo_n "checking where to look for the pam_pgsql.conf file... " >&6; }
 
12941
 
 
12942
if test "${sysconfdir}" = '${prefix}/etc'; then :
 
12943
  sysconfdir=/etc
 
12944
fi
 
12945
 
 
12946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${sysconfdir}" >&5
 
12947
$as_echo "${sysconfdir}" >&6; }
 
12948
 
 
12949
ac_config_files="$ac_config_files Makefile"
 
12950
 
 
12951
 
 
12952
cat >confcache <<\_ACEOF
 
12953
# This file is a shell script that caches the results of configure
 
12954
# tests run on this system so they can be shared between configure
 
12955
# scripts and configure runs, see configure's option --config-cache.
 
12956
# It is not useful on other systems.  If it contains results you don't
 
12957
# want to keep, you may remove or edit it.
 
12958
#
 
12959
# config.status only pays attention to the cache file if you give it
 
12960
# the --recheck option to rerun configure.
 
12961
#
 
12962
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
12963
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
12964
# following values.
 
12965
 
 
12966
_ACEOF
 
12967
 
 
12968
# The following way of writing the cache mishandles newlines in values,
 
12969
# but we know of no workaround that is simple, portable, and efficient.
 
12970
# So, we kill variables containing newlines.
 
12971
# Ultrix sh set writes to stderr and can't be redirected directly,
 
12972
# and sets the high bit in the cache file unless we assign to the vars.
 
12973
(
 
12974
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
12975
    eval ac_val=\$$ac_var
 
12976
    case $ac_val in #(
 
12977
    *${as_nl}*)
 
12978
      case $ac_var in #(
 
12979
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 
12980
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
12981
      esac
 
12982
      case $ac_var in #(
 
12983
      _ | IFS | as_nl) ;; #(
 
12984
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
12985
      *) { eval $ac_var=; unset $ac_var;} ;;
 
12986
      esac ;;
 
12987
    esac
 
12988
  done
 
12989
 
 
12990
  (set) 2>&1 |
 
12991
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
12992
    *${as_nl}ac_space=\ *)
 
12993
      # `set' does not quote correctly, so add quotes: double-quote
 
12994
      # substitution turns \\\\ into \\, and sed turns \\ into \.
 
12995
      sed -n \
 
12996
        "s/'/'\\\\''/g;
 
12997
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
12998
      ;; #(
 
12999
    *)
 
13000
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
13001
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
13002
      ;;
 
13003
    esac |
 
13004
    sort
 
13005
) |
 
13006
  sed '
 
13007
     /^ac_cv_env_/b end
 
13008
     t clear
 
13009
     :clear
 
13010
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
13011
     t end
 
13012
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
13013
     :end' >>confcache
 
13014
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
13015
  if test -w "$cache_file"; then
 
13016
    if test "x$cache_file" != "x/dev/null"; then
 
13017
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 
13018
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
13019
      if test ! -f "$cache_file" || test -h "$cache_file"; then
 
13020
        cat confcache >"$cache_file"
 
13021
      else
 
13022
        case $cache_file in #(
 
13023
        */* | ?:*)
 
13024
          mv -f confcache "$cache_file"$$ &&
 
13025
          mv -f "$cache_file"$$ "$cache_file" ;; #(
 
13026
        *)
 
13027
          mv -f confcache "$cache_file" ;;
 
13028
        esac
 
13029
      fi
 
13030
    fi
 
13031
  else
 
13032
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 
13033
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
13034
  fi
 
13035
fi
 
13036
rm -f confcache
 
13037
 
 
13038
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
13039
# Let make expand exec_prefix.
 
13040
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
13041
 
 
13042
DEFS=-DHAVE_CONFIG_H
 
13043
 
 
13044
ac_libobjs=
 
13045
ac_ltlibobjs=
 
13046
U=
 
13047
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
13048
  # 1. Remove the extension, and $U if already installed.
 
13049
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
13050
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
13051
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
13052
  #    will be set to the directory where LIBOBJS objects are built.
 
13053
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
13054
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 
13055
done
 
13056
LIB@&t@OBJS=$ac_libobjs
 
13057
 
 
13058
LTLIBOBJS=$ac_ltlibobjs
 
13059
 
 
13060
 
 
13061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
 
13062
$as_echo_n "checking that generated files are newer than configure... " >&6; }
 
13063
   if test -n "$am_sleep_pid"; then
 
13064
     # Hide warnings about reused PIDs.
 
13065
     wait $am_sleep_pid 2>/dev/null
 
13066
   fi
 
13067
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
 
13068
$as_echo "done" >&6; }
 
13069
 if test -n "$EXEEXT"; then
 
13070
  am__EXEEXT_TRUE=
 
13071
  am__EXEEXT_FALSE='#'
 
13072
else
 
13073
  am__EXEEXT_TRUE='#'
 
13074
  am__EXEEXT_FALSE=
 
13075
fi
 
13076
 
 
13077
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
13078
  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
 
13079
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13080
fi
 
13081
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
13082
  as_fn_error $? "conditional \"AMDEP\" was never defined.
 
13083
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13084
fi
 
13085
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13086
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13087
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13088
fi
 
13089
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
13090
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
 
13091
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13092
fi
 
13093
if test -z "${HAVE_PAM_CONV_TRUE}" && test -z "${HAVE_PAM_CONV_FALSE}"; then
 
13094
  as_fn_error $? "conditional \"HAVE_PAM_CONV\" was never defined.
 
13095
Usually this means the macro was only invoked conditionally." "$LINENO" 5
 
13096
fi
 
13097
 
 
13098
: "${CONFIG_STATUS=./config.status}"
 
13099
ac_write_fail=0
 
13100
ac_clean_files_save=$ac_clean_files
 
13101
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
13102
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 
13103
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
13104
as_write_fail=0
 
13105
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 
13106
#! $SHELL
 
13107
# Generated by $as_me.
 
13108
# Run this file to recreate the current configuration.
 
13109
# Compiler output produced by configure, useful for debugging
 
13110
# configure, is in config.log if it exists.
 
13111
 
 
13112
debug=false
 
13113
ac_cs_recheck=false
 
13114
ac_cs_silent=false
 
13115
 
 
13116
SHELL=\${CONFIG_SHELL-$SHELL}
 
13117
export SHELL
 
13118
_ASEOF
 
13119
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 
13120
## -------------------- ##
 
13121
## M4sh Initialization. ##
 
13122
## -------------------- ##
 
13123
 
 
13124
# Be more Bourne compatible
 
13125
DUALCASE=1; export DUALCASE # for MKS sh
 
13126
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 
13127
  emulate sh
 
13128
  NULLCMD=:
 
13129
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
13130
  # is contrary to our usage.  Disable this feature.
 
13131
  alias -g '${1+"$@"}'='"$@"'
 
13132
  setopt NO_GLOB_SUBST
 
13133
else
 
13134
  case `(set -o) 2>/dev/null` in @%:@(
 
13135
  *posix*) :
 
13136
    set -o posix ;; @%:@(
 
13137
  *) :
 
13138
     ;;
 
13139
esac
 
13140
fi
 
13141
 
 
13142
 
 
13143
as_nl='
 
13144
'
 
13145
export as_nl
 
13146
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
13147
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
13148
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
13149
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
13150
# Prefer a ksh shell builtin over an external printf program on Solaris,
 
13151
# but without wasting forks for bash or zsh.
 
13152
if test -z "$BASH_VERSION$ZSH_VERSION" \
 
13153
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13154
  as_echo='print -r --'
 
13155
  as_echo_n='print -rn --'
 
13156
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
13157
  as_echo='printf %s\n'
 
13158
  as_echo_n='printf %s'
 
13159
else
 
13160
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
13161
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
13162
    as_echo_n='/usr/ucb/echo -n'
 
13163
  else
 
13164
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
13165
    as_echo_n_body='eval
 
13166
      arg=$1;
 
13167
      case $arg in @%:@(
 
13168
      *"$as_nl"*)
 
13169
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
13170
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
13171
      esac;
 
13172
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
13173
    '
 
13174
    export as_echo_n_body
 
13175
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
13176
  fi
 
13177
  export as_echo_body
 
13178
  as_echo='sh -c $as_echo_body as_echo'
 
13179
fi
 
13180
 
 
13181
# The user is always right.
 
13182
if test "${PATH_SEPARATOR+set}" != set; then
 
13183
  PATH_SEPARATOR=:
 
13184
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
13185
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
13186
      PATH_SEPARATOR=';'
 
13187
  }
 
13188
fi
 
13189
 
 
13190
 
 
13191
# IFS
 
13192
# We need space, tab and new line, in precisely that order.  Quoting is
 
13193
# there to prevent editors from complaining about space-tab.
 
13194
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
13195
# splitting by setting IFS to empty value.)
 
13196
IFS=" ""        $as_nl"
 
13197
 
 
13198
# Find who we are.  Look in the path if we contain no directory separator.
 
13199
as_myself=
 
13200
case $0 in @%:@((
 
13201
  *[\\/]* ) as_myself=$0 ;;
 
13202
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
13203
for as_dir in $PATH
 
13204
do
 
13205
  IFS=$as_save_IFS
 
13206
  test -z "$as_dir" && as_dir=.
 
13207
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
13208
  done
 
13209
IFS=$as_save_IFS
 
13210
 
 
13211
     ;;
 
13212
esac
 
13213
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
13214
# in which case we are not to be found in the path.
 
13215
if test "x$as_myself" = x; then
 
13216
  as_myself=$0
 
13217
fi
 
13218
if test ! -f "$as_myself"; then
 
13219
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
13220
  exit 1
 
13221
fi
 
13222
 
 
13223
# Unset variables that we do not need and which cause bugs (e.g. in
 
13224
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 
13225
# suppresses any "Segmentation fault" message there.  '((' could
 
13226
# trigger a bug in pdksh 5.2.14.
 
13227
for as_var in BASH_ENV ENV MAIL MAILPATH
 
13228
do eval test x\${$as_var+set} = xset \
 
13229
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 
13230
done
 
13231
PS1='$ '
 
13232
PS2='> '
 
13233
PS4='+ '
 
13234
 
 
13235
# NLS nuisances.
 
13236
LC_ALL=C
 
13237
export LC_ALL
 
13238
LANGUAGE=C
 
13239
export LANGUAGE
 
13240
 
 
13241
# CDPATH.
 
13242
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13243
 
 
13244
 
 
13245
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
 
13246
@%:@ ----------------------------------------
 
13247
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 
13248
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 
13249
@%:@ script with STATUS, using 1 if that was 0.
 
13250
as_fn_error ()
 
13251
{
 
13252
  as_status=$1; test $as_status -eq 0 && as_status=1
 
13253
  if test "$4"; then
 
13254
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 
13255
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 
13256
  fi
 
13257
  $as_echo "$as_me: error: $2" >&2
 
13258
  as_fn_exit $as_status
 
13259
} @%:@ as_fn_error
 
13260
 
 
13261
 
 
13262
@%:@ as_fn_set_status STATUS
 
13263
@%:@ -----------------------
 
13264
@%:@ Set @S|@? to STATUS, without forking.
 
13265
as_fn_set_status ()
 
13266
{
 
13267
  return $1
 
13268
} @%:@ as_fn_set_status
 
13269
 
 
13270
@%:@ as_fn_exit STATUS
 
13271
@%:@ -----------------
 
13272
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 
13273
as_fn_exit ()
 
13274
{
 
13275
  set +e
 
13276
  as_fn_set_status $1
 
13277
  exit $1
 
13278
} @%:@ as_fn_exit
 
13279
 
 
13280
@%:@ as_fn_unset VAR
 
13281
@%:@ ---------------
 
13282
@%:@ Portably unset VAR.
 
13283
as_fn_unset ()
 
13284
{
 
13285
  { eval $1=; unset $1;}
 
13286
}
 
13287
as_unset=as_fn_unset
 
13288
@%:@ as_fn_append VAR VALUE
 
13289
@%:@ ----------------------
 
13290
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
 
13291
@%:@ advantage of any shell optimizations that allow amortized linear growth over
 
13292
@%:@ repeated appends, instead of the typical quadratic growth present in naive
 
13293
@%:@ implementations.
 
13294
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 
13295
  eval 'as_fn_append ()
 
13296
  {
 
13297
    eval $1+=\$2
 
13298
  }'
 
13299
else
 
13300
  as_fn_append ()
 
13301
  {
 
13302
    eval $1=\$$1\$2
 
13303
  }
 
13304
fi # as_fn_append
 
13305
 
 
13306
@%:@ as_fn_arith ARG...
 
13307
@%:@ ------------------
 
13308
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
 
13309
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
 
13310
@%:@ must be portable across @S|@(()) and expr.
 
13311
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 
13312
  eval 'as_fn_arith ()
 
13313
  {
 
13314
    as_val=$(( $* ))
 
13315
  }'
 
13316
else
 
13317
  as_fn_arith ()
 
13318
  {
 
13319
    as_val=`expr "$@" || test $? -eq 1`
 
13320
  }
 
13321
fi # as_fn_arith
 
13322
 
 
13323
 
 
13324
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
13325
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
13326
  as_expr=expr
 
13327
else
 
13328
  as_expr=false
 
13329
fi
 
13330
 
 
13331
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
13332
  as_basename=basename
 
13333
else
 
13334
  as_basename=false
 
13335
fi
 
13336
 
 
13337
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
13338
  as_dirname=dirname
 
13339
else
 
13340
  as_dirname=false
 
13341
fi
 
13342
 
 
13343
as_me=`$as_basename -- "$0" ||
 
13344
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
13345
         X"$0" : 'X\(//\)$' \| \
 
13346
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
13347
$as_echo X/"$0" |
 
13348
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
13349
            s//\1/
 
13350
            q
 
13351
          }
 
13352
          /^X\/\(\/\/\)$/{
 
13353
            s//\1/
 
13354
            q
 
13355
          }
 
13356
          /^X\/\(\/\).*/{
 
13357
            s//\1/
 
13358
            q
 
13359
          }
 
13360
          s/.*/./; q'`
 
13361
 
 
13362
# Avoid depending upon Character Ranges.
 
13363
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
13364
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
13365
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
13366
as_cr_digits='0123456789'
 
13367
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
13368
 
 
13369
ECHO_C= ECHO_N= ECHO_T=
 
13370
case `echo -n x` in @%:@(((((
 
13371
-n*)
 
13372
  case `echo 'xy\c'` in
 
13373
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
13374
  xy)  ECHO_C='\c';;
 
13375
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 
13376
       ECHO_T=' ';;
 
13377
  esac;;
 
13378
*)
 
13379
  ECHO_N='-n';;
 
13380
esac
 
13381
 
 
13382
rm -f conf$$ conf$$.exe conf$$.file
 
13383
if test -d conf$$.dir; then
 
13384
  rm -f conf$$.dir/conf$$.file
 
13385
else
 
13386
  rm -f conf$$.dir
 
13387
  mkdir conf$$.dir 2>/dev/null
 
13388
fi
 
13389
if (echo >conf$$.file) 2>/dev/null; then
 
13390
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
13391
    as_ln_s='ln -s'
 
13392
    # ... but there are two gotchas:
 
13393
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
13394
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
13395
    # In both cases, we have to default to `cp -pR'.
 
13396
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
13397
      as_ln_s='cp -pR'
 
13398
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
13399
    as_ln_s=ln
 
13400
  else
 
13401
    as_ln_s='cp -pR'
 
13402
  fi
 
13403
else
 
13404
  as_ln_s='cp -pR'
 
13405
fi
 
13406
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
13407
rmdir conf$$.dir 2>/dev/null
 
13408
 
 
13409
 
 
13410
@%:@ as_fn_mkdir_p
 
13411
@%:@ -------------
 
13412
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
 
13413
as_fn_mkdir_p ()
 
13414
{
 
13415
 
 
13416
  case $as_dir in #(
 
13417
  -*) as_dir=./$as_dir;;
 
13418
  esac
 
13419
  test -d "$as_dir" || eval $as_mkdir_p || {
 
13420
    as_dirs=
 
13421
    while :; do
 
13422
      case $as_dir in #(
 
13423
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
13424
      *) as_qdir=$as_dir;;
 
13425
      esac
 
13426
      as_dirs="'$as_qdir' $as_dirs"
 
13427
      as_dir=`$as_dirname -- "$as_dir" ||
 
13428
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
13429
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
13430
         X"$as_dir" : 'X\(//\)$' \| \
 
13431
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
13432
$as_echo X"$as_dir" |
 
13433
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
13434
            s//\1/
 
13435
            q
 
13436
          }
 
13437
          /^X\(\/\/\)[^/].*/{
 
13438
            s//\1/
 
13439
            q
 
13440
          }
 
13441
          /^X\(\/\/\)$/{
 
13442
            s//\1/
 
13443
            q
 
13444
          }
 
13445
          /^X\(\/\).*/{
 
13446
            s//\1/
 
13447
            q
 
13448
          }
 
13449
          s/.*/./; q'`
 
13450
      test -d "$as_dir" && break
 
13451
    done
 
13452
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
13453
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 
13454
 
 
13455
 
 
13456
} @%:@ as_fn_mkdir_p
 
13457
if mkdir -p . 2>/dev/null; then
 
13458
  as_mkdir_p='mkdir -p "$as_dir"'
 
13459
else
 
13460
  test -d ./-p && rmdir ./-p
 
13461
  as_mkdir_p=false
 
13462
fi
 
13463
 
 
13464
 
 
13465
@%:@ as_fn_executable_p FILE
 
13466
@%:@ -----------------------
 
13467
@%:@ Test if FILE is an executable regular file.
 
13468
as_fn_executable_p ()
 
13469
{
 
13470
  test -f "$1" && test -x "$1"
 
13471
} @%:@ as_fn_executable_p
 
13472
as_test_x='test -x'
 
13473
as_executable_p=as_fn_executable_p
 
13474
 
 
13475
# Sed expression to map a string onto a valid CPP name.
 
13476
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
13477
 
 
13478
# Sed expression to map a string onto a valid variable name.
 
13479
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
13480
 
 
13481
 
 
13482
exec 6>&1
 
13483
## ----------------------------------- ##
 
13484
## Main body of $CONFIG_STATUS script. ##
 
13485
## ----------------------------------- ##
 
13486
_ASEOF
 
13487
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 
13488
 
 
13489
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13490
# Save the log message, to keep $0 and so on meaningful, and to
 
13491
# report actual input values of CONFIG_FILES etc. instead of their
 
13492
# values after options handling.
 
13493
ac_log="
 
13494
This file was extended by pam-pgsql $as_me 0.7.3.2, which was
 
13495
generated by GNU Autoconf 2.69.  Invocation command line was
 
13496
 
 
13497
  CONFIG_FILES    = $CONFIG_FILES
 
13498
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
13499
  CONFIG_LINKS    = $CONFIG_LINKS
 
13500
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
13501
  $ $0 $@
 
13502
 
 
13503
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
13504
"
 
13505
 
 
13506
_ACEOF
 
13507
 
 
13508
case $ac_config_files in *"
 
13509
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
13510
esac
 
13511
 
 
13512
case $ac_config_headers in *"
 
13513
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
13514
esac
 
13515
 
 
13516
 
 
13517
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13518
# Files that config.status was made for.
 
13519
config_files="$ac_config_files"
 
13520
config_headers="$ac_config_headers"
 
13521
config_commands="$ac_config_commands"
 
13522
 
 
13523
_ACEOF
 
13524
 
 
13525
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13526
ac_cs_usage="\
 
13527
\`$as_me' instantiates files and other configuration actions
 
13528
from templates according to the current configuration.  Unless the files
 
13529
and actions are specified as TAGs, all are instantiated by default.
 
13530
 
 
13531
Usage: $0 [OPTION]... [TAG]...
 
13532
 
 
13533
  -h, --help       print this help, then exit
 
13534
  -V, --version    print version number and configuration settings, then exit
 
13535
      --config     print configuration, then exit
 
13536
  -q, --quiet, --silent
 
13537
                   do not print progress messages
 
13538
  -d, --debug      don't remove temporary files
 
13539
      --recheck    update $as_me by reconfiguring in the same conditions
 
13540
      --file=FILE[:TEMPLATE] 
 
13541
                   instantiate the configuration file FILE
 
13542
      --header=FILE[:TEMPLATE] 
 
13543
                   instantiate the configuration header FILE
 
13544
 
 
13545
Configuration files:
 
13546
$config_files
 
13547
 
 
13548
Configuration headers:
 
13549
$config_headers
 
13550
 
 
13551
Configuration commands:
 
13552
$config_commands
 
13553
 
 
13554
Report bugs to <http://sourceforge.net/tracker/?func=add&group_id=62198&atid=499727>."
 
13555
 
 
13556
_ACEOF
 
13557
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13558
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 
13559
ac_cs_version="\\
 
13560
pam-pgsql config.status 0.7.3.2
 
13561
configured by $0, generated by GNU Autoconf 2.69,
 
13562
  with options \\"\$ac_cs_config\\"
 
13563
 
 
13564
Copyright (C) 2012 Free Software Foundation, Inc.
 
13565
This config.status script is free software; the Free Software Foundation
 
13566
gives unlimited permission to copy, distribute and modify it."
 
13567
 
 
13568
ac_pwd='$ac_pwd'
 
13569
srcdir='$srcdir'
 
13570
INSTALL='$INSTALL'
 
13571
MKDIR_P='$MKDIR_P'
 
13572
AWK='$AWK'
 
13573
test -n "\$AWK" || AWK=awk
 
13574
_ACEOF
 
13575
 
 
13576
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13577
# The default lists apply if the user does not specify any file.
 
13578
ac_need_defaults=:
 
13579
while test $# != 0
 
13580
do
 
13581
  case $1 in
 
13582
  --*=?*)
 
13583
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13584
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
13585
    ac_shift=:
 
13586
    ;;
 
13587
  --*=)
 
13588
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
13589
    ac_optarg=
 
13590
    ac_shift=:
 
13591
    ;;
 
13592
  *)
 
13593
    ac_option=$1
 
13594
    ac_optarg=$2
 
13595
    ac_shift=shift
 
13596
    ;;
 
13597
  esac
 
13598
 
 
13599
  case $ac_option in
 
13600
  # Handling of the options.
 
13601
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
13602
    ac_cs_recheck=: ;;
 
13603
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
13604
    $as_echo "$ac_cs_version"; exit ;;
 
13605
  --config | --confi | --conf | --con | --co | --c )
 
13606
    $as_echo "$ac_cs_config"; exit ;;
 
13607
  --debug | --debu | --deb | --de | --d | -d )
 
13608
    debug=: ;;
 
13609
  --file | --fil | --fi | --f )
 
13610
    $ac_shift
 
13611
    case $ac_optarg in
 
13612
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13613
    '') as_fn_error $? "missing file argument" ;;
 
13614
    esac
 
13615
    as_fn_append CONFIG_FILES " '$ac_optarg'"
 
13616
    ac_need_defaults=false;;
 
13617
  --header | --heade | --head | --hea )
 
13618
    $ac_shift
 
13619
    case $ac_optarg in
 
13620
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
13621
    esac
 
13622
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
 
13623
    ac_need_defaults=false;;
 
13624
  --he | --h)
 
13625
    # Conflict between --help and --header
 
13626
    as_fn_error $? "ambiguous option: \`$1'
 
13627
Try \`$0 --help' for more information.";;
 
13628
  --help | --hel | -h )
 
13629
    $as_echo "$ac_cs_usage"; exit ;;
 
13630
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
13631
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
13632
    ac_cs_silent=: ;;
 
13633
 
 
13634
  # This is an error.
 
13635
  -*) as_fn_error $? "unrecognized option: \`$1'
 
13636
Try \`$0 --help' for more information." ;;
 
13637
 
 
13638
  *) as_fn_append ac_config_targets " $1"
 
13639
     ac_need_defaults=false ;;
 
13640
 
 
13641
  esac
 
13642
  shift
 
13643
done
 
13644
 
 
13645
ac_configure_extra_args=
 
13646
 
 
13647
if $ac_cs_silent; then
 
13648
  exec 6>/dev/null
 
13649
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
13650
fi
 
13651
 
 
13652
_ACEOF
 
13653
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13654
if \$ac_cs_recheck; then
 
13655
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
13656
  shift
 
13657
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
13658
  CONFIG_SHELL='$SHELL'
 
13659
  export CONFIG_SHELL
 
13660
  exec "\$@"
 
13661
fi
 
13662
 
 
13663
_ACEOF
 
13664
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13665
exec 5>>config.log
 
13666
{
 
13667
  echo
 
13668
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
13669
@%:@@%:@ Running $as_me. @%:@@%:@
 
13670
_ASBOX
 
13671
  $as_echo "$ac_log"
 
13672
} >&5
 
13673
 
 
13674
_ACEOF
 
13675
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
13676
#
 
13677
# INIT-COMMANDS
 
13678
#
 
13679
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
13680
 
 
13681
 
 
13682
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
13683
# if CDPATH is set.
 
13684
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
13685
 
 
13686
sed_quote_subst='$sed_quote_subst'
 
13687
double_quote_subst='$double_quote_subst'
 
13688
delay_variable_subst='$delay_variable_subst'
 
13689
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
 
13690
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
 
13691
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
 
13692
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
 
13693
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
 
13694
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
 
13695
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
 
13696
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
 
13697
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
 
13698
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
 
13699
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
 
13700
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
 
13701
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
 
13702
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
 
13703
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
 
13704
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
 
13705
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
 
13706
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
 
13707
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
 
13708
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
 
13709
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
 
13710
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
 
13711
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
 
13712
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
 
13713
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
 
13714
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
 
13715
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
 
13716
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
 
13717
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
 
13718
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13719
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
 
13720
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
 
13721
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
 
13722
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
 
13723
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
 
13724
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
 
13725
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
 
13726
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
 
13727
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
 
13728
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
 
13729
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
 
13730
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
 
13731
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
 
13732
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
 
13733
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
 
13734
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13735
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13736
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13737
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
 
13738
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
 
13739
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
 
13740
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
 
13741
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
 
13742
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
 
13743
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
13744
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
 
13745
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13746
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13747
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
 
13748
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
 
13749
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
 
13750
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
 
13751
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
 
13752
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
 
13753
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
 
13754
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
 
13755
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
 
13756
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
 
13757
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
 
13758
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
 
13759
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
 
13760
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
 
13761
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
 
13762
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
 
13763
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
 
13764
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13765
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
 
13766
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
 
13767
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13768
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13769
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
 
13770
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
 
13771
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
 
13772
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
 
13773
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13774
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
 
13775
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
 
13776
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
 
13777
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13778
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
 
13779
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
 
13780
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
 
13781
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
 
13782
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
 
13783
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
 
13784
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13785
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
 
13786
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
 
13787
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
 
13788
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
 
13789
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
 
13790
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
 
13791
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
 
13792
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
 
13793
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
 
13794
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
 
13795
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
 
13796
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
13797
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
 
13798
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
 
13799
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
 
13800
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
 
13801
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
 
13802
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
 
13803
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
 
13804
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
 
13805
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
 
13806
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13807
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
 
13808
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
 
13809
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
 
13810
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
 
13811
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
 
13812
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
 
13813
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
 
13814
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
 
13815
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
 
13816
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
 
13817
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
 
13818
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
 
13819
 
 
13820
LTCC='$LTCC'
 
13821
LTCFLAGS='$LTCFLAGS'
 
13822
compiler='$compiler_DEFAULT'
 
13823
 
 
13824
# A function that is used when there is no print builtin or printf.
 
13825
func_fallback_echo ()
 
13826
{
 
13827
  eval 'cat <<_LTECHO_EOF
 
13828
\$1
 
13829
_LTECHO_EOF'
 
13830
}
 
13831
 
 
13832
# Quote evaled strings.
 
13833
for var in SHELL \
 
13834
ECHO \
 
13835
PATH_SEPARATOR \
 
13836
SED \
 
13837
GREP \
 
13838
EGREP \
 
13839
FGREP \
 
13840
LD \
 
13841
NM \
 
13842
LN_S \
 
13843
lt_SP2NL \
 
13844
lt_NL2SP \
 
13845
reload_flag \
 
13846
OBJDUMP \
 
13847
deplibs_check_method \
 
13848
file_magic_cmd \
 
13849
file_magic_glob \
 
13850
want_nocaseglob \
 
13851
DLLTOOL \
 
13852
sharedlib_from_linklib_cmd \
 
13853
AR \
 
13854
AR_FLAGS \
 
13855
archiver_list_spec \
 
13856
STRIP \
 
13857
RANLIB \
 
13858
CC \
 
13859
CFLAGS \
 
13860
compiler \
 
13861
lt_cv_sys_global_symbol_pipe \
 
13862
lt_cv_sys_global_symbol_to_cdecl \
 
13863
lt_cv_sys_global_symbol_to_c_name_address \
 
13864
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
13865
nm_file_list_spec \
 
13866
lt_prog_compiler_no_builtin_flag \
 
13867
lt_prog_compiler_pic \
 
13868
lt_prog_compiler_wl \
 
13869
lt_prog_compiler_static \
 
13870
lt_cv_prog_compiler_c_o \
 
13871
need_locks \
 
13872
MANIFEST_TOOL \
 
13873
DSYMUTIL \
 
13874
NMEDIT \
 
13875
LIPO \
 
13876
OTOOL \
 
13877
OTOOL64 \
 
13878
shrext_cmds \
 
13879
export_dynamic_flag_spec \
 
13880
whole_archive_flag_spec \
 
13881
compiler_needs_object \
 
13882
with_gnu_ld \
 
13883
allow_undefined_flag \
 
13884
no_undefined_flag \
 
13885
hardcode_libdir_flag_spec \
 
13886
hardcode_libdir_separator \
 
13887
exclude_expsyms \
 
13888
include_expsyms \
 
13889
file_list_spec \
 
13890
variables_saved_for_relink \
 
13891
libname_spec \
 
13892
library_names_spec \
 
13893
soname_spec \
 
13894
install_override_mode \
 
13895
finish_eval \
 
13896
old_striplib \
 
13897
striplib; do
 
13898
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13899
    *[\\\\\\\`\\"\\\$]*)
 
13900
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
13901
      ;;
 
13902
    *)
 
13903
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13904
      ;;
 
13905
    esac
 
13906
done
 
13907
 
 
13908
# Double-quote double-evaled strings.
 
13909
for var in reload_cmds \
 
13910
old_postinstall_cmds \
 
13911
old_postuninstall_cmds \
 
13912
old_archive_cmds \
 
13913
extract_expsyms_cmds \
 
13914
old_archive_from_new_cmds \
 
13915
old_archive_from_expsyms_cmds \
 
13916
archive_cmds \
 
13917
archive_expsym_cmds \
 
13918
module_cmds \
 
13919
module_expsym_cmds \
 
13920
export_symbols_cmds \
 
13921
prelink_cmds \
 
13922
postlink_cmds \
 
13923
postinstall_cmds \
 
13924
postuninstall_cmds \
 
13925
finish_cmds \
 
13926
sys_lib_search_path_spec \
 
13927
sys_lib_dlsearch_path_spec; do
 
13928
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
 
13929
    *[\\\\\\\`\\"\\\$]*)
 
13930
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
13931
      ;;
 
13932
    *)
 
13933
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
13934
      ;;
 
13935
    esac
 
13936
done
 
13937
 
 
13938
ac_aux_dir='$ac_aux_dir'
 
13939
xsi_shell='$xsi_shell'
 
13940
lt_shell_append='$lt_shell_append'
 
13941
 
 
13942
# See if we are running on zsh, and set the options which allow our
 
13943
# commands through without removal of \ escapes INIT.
 
13944
if test -n "\${ZSH_VERSION+set}" ; then
 
13945
   setopt NO_GLOB_SUBST
 
13946
fi
 
13947
 
 
13948
 
 
13949
    PACKAGE='$PACKAGE'
 
13950
    VERSION='$VERSION'
 
13951
    TIMESTAMP='$TIMESTAMP'
 
13952
    RM='$RM'
 
13953
    ofile='$ofile'
 
13954
 
 
13955
 
 
13956
 
 
13957
 
 
13958
_ACEOF
 
13959
 
 
13960
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
13961
 
 
13962
# Handling of arguments.
 
13963
for ac_config_target in $ac_config_targets
 
13964
do
 
13965
  case $ac_config_target in
 
13966
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
13967
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
13968
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
13969
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
13970
 
 
13971
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 
13972
  esac
 
13973
done
 
13974
 
 
13975
 
 
13976
# If the user did not use the arguments to specify the items to instantiate,
 
13977
# then the envvar interface is used.  Set only those that are not.
 
13978
# We use the long form for the default assignment because of an extremely
 
13979
# bizarre bug on SunOS 4.1.3.
 
13980
if $ac_need_defaults; then
 
13981
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
13982
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
13983
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
13984
fi
 
13985
 
 
13986
# Have a temporary directory for convenience.  Make it in the build tree
 
13987
# simply because there is no reason against having it here, and in addition,
 
13988
# creating and moving files from /tmp can sometimes cause problems.
 
13989
# Hook for its removal unless debugging.
 
13990
# Note that there is a small window in which the directory will not be cleaned:
 
13991
# after its creation but before its name has been assigned to `$tmp'.
 
13992
$debug ||
 
13993
{
 
13994
  tmp= ac_tmp=
 
13995
  trap 'exit_status=$?
 
13996
  : "${ac_tmp:=$tmp}"
 
13997
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 
13998
' 0
 
13999
  trap 'as_fn_exit 1' 1 2 13 15
 
14000
}
 
14001
# Create a (secure) tmp directory for tmp files.
 
14002
 
 
14003
{
 
14004
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
14005
  test -d "$tmp"
 
14006
}  ||
 
14007
{
 
14008
  tmp=./conf$$-$RANDOM
 
14009
  (umask 077 && mkdir "$tmp")
 
14010
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 
14011
ac_tmp=$tmp
 
14012
 
 
14013
# Set up the scripts for CONFIG_FILES section.
 
14014
# No need to generate them if there are no CONFIG_FILES.
 
14015
# This happens for instance with `./config.status config.h'.
 
14016
if test -n "$CONFIG_FILES"; then
 
14017
 
 
14018
 
 
14019
ac_cr=`echo X | tr X '\015'`
 
14020
# On cygwin, bash can eat \r inside `` if the user requested igncr.
 
14021
# But we know of no other shell where ac_cr would be empty at this
 
14022
# point, so we can use a bashism as a fallback.
 
14023
if test "x$ac_cr" = x; then
 
14024
  eval ac_cr=\$\'\\r\'
 
14025
fi
 
14026
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
14027
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
14028
  ac_cs_awk_cr='\\r'
 
14029
else
 
14030
  ac_cs_awk_cr=$ac_cr
 
14031
fi
 
14032
 
 
14033
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 
14034
_ACEOF
 
14035
 
 
14036
 
 
14037
{
 
14038
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
14039
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
14040
  echo "_ACEOF"
 
14041
} >conf$$subs.sh ||
 
14042
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14043
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 
14044
ac_delim='%!_!# '
 
14045
for ac_last_try in false false false false false :; do
 
14046
  . ./conf$$subs.sh ||
 
14047
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14048
 
 
14049
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
14050
  if test $ac_delim_n = $ac_delim_num; then
 
14051
    break
 
14052
  elif $ac_last_try; then
 
14053
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 
14054
  else
 
14055
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14056
  fi
 
14057
done
 
14058
rm -f conf$$subs.sh
 
14059
 
 
14060
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14061
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 
14062
_ACEOF
 
14063
sed -n '
 
14064
h
 
14065
s/^/S["/; s/!.*/"]=/
 
14066
p
 
14067
g
 
14068
s/^[^!]*!//
 
14069
:repl
 
14070
t repl
 
14071
s/'"$ac_delim"'$//
 
14072
t delim
 
14073
:nl
 
14074
h
 
14075
s/\(.\{148\}\)..*/\1/
 
14076
t more1
 
14077
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
14078
p
 
14079
n
 
14080
b repl
 
14081
:more1
 
14082
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14083
p
 
14084
g
 
14085
s/.\{148\}//
 
14086
t nl
 
14087
:delim
 
14088
h
 
14089
s/\(.\{148\}\)..*/\1/
 
14090
t more2
 
14091
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
14092
p
 
14093
b
 
14094
:more2
 
14095
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
14096
p
 
14097
g
 
14098
s/.\{148\}//
 
14099
t delim
 
14100
' <conf$$subs.awk | sed '
 
14101
/^[^""]/{
 
14102
  N
 
14103
  s/\n//
 
14104
}
 
14105
' >>$CONFIG_STATUS || ac_write_fail=1
 
14106
rm -f conf$$subs.awk
 
14107
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14108
_ACAWK
 
14109
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 
14110
  for (key in S) S_is_set[key] = 1
 
14111
  FS = ""
 
14112
 
 
14113
}
 
14114
{
 
14115
  line = $ 0
 
14116
  nfields = split(line, field, "@")
 
14117
  substed = 0
 
14118
  len = length(field[1])
 
14119
  for (i = 2; i < nfields; i++) {
 
14120
    key = field[i]
 
14121
    keylen = length(key)
 
14122
    if (S_is_set[key]) {
 
14123
      value = S[key]
 
14124
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
14125
      len += length(value) + length(field[++i])
 
14126
      substed = 1
 
14127
    } else
 
14128
      len += 1 + keylen
 
14129
  }
 
14130
 
 
14131
  print line
 
14132
}
 
14133
 
 
14134
_ACAWK
 
14135
_ACEOF
 
14136
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14137
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
14138
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
14139
else
 
14140
  cat
 
14141
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 
14142
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 
14143
_ACEOF
 
14144
 
 
14145
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 
14146
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 
14147
# trailing colons and then remove the whole line if VPATH becomes empty
 
14148
# (actually we leave an empty line to preserve line numbers).
 
14149
if test "x$srcdir" = x.; then
 
14150
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
 
14151
h
 
14152
s///
 
14153
s/^/:/
 
14154
s/[      ]*$/:/
 
14155
s/:\$(srcdir):/:/g
 
14156
s/:\${srcdir}:/:/g
 
14157
s/:@srcdir@:/:/g
 
14158
s/^:*//
 
14159
s/:*$//
 
14160
x
 
14161
s/\(=[   ]*\).*/\1/
 
14162
G
 
14163
s/\n//
 
14164
s/^[^=]*=[       ]*$//
 
14165
}'
 
14166
fi
 
14167
 
 
14168
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14169
fi # test -n "$CONFIG_FILES"
 
14170
 
 
14171
# Set up the scripts for CONFIG_HEADERS section.
 
14172
# No need to generate them if there are no CONFIG_HEADERS.
 
14173
# This happens for instance with `./config.status Makefile'.
 
14174
if test -n "$CONFIG_HEADERS"; then
 
14175
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
 
14176
BEGIN {
 
14177
_ACEOF
 
14178
 
 
14179
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
14180
# here-document in config.status, that substitutes the proper values into
 
14181
# config.h.in to produce config.h.
 
14182
 
 
14183
# Create a delimiter string that does not exist in confdefs.h, to ease
 
14184
# handling of long lines.
 
14185
ac_delim='%!_!# '
 
14186
for ac_last_try in false false :; do
 
14187
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
 
14188
  if test -z "$ac_tt"; then
 
14189
    break
 
14190
  elif $ac_last_try; then
 
14191
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
 
14192
  else
 
14193
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
14194
  fi
 
14195
done
 
14196
 
 
14197
# For the awk script, D is an array of macro values keyed by name,
 
14198
# likewise P contains macro parameters if any.  Preserve backslash
 
14199
# newline sequences.
 
14200
 
 
14201
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
14202
sed -n '
 
14203
s/.\{148\}/&'"$ac_delim"'/g
 
14204
t rset
 
14205
:rset
 
14206
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
14207
t def
 
14208
d
 
14209
:def
 
14210
s/\\$//
 
14211
t bsnl
 
14212
s/["\\]/\\&/g
 
14213
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14214
D["\1"]=" \3"/p
 
14215
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
14216
d
 
14217
:bsnl
 
14218
s/["\\]/\\&/g
 
14219
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
14220
D["\1"]=" \3\\\\\\n"\\/p
 
14221
t cont
 
14222
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
14223
t cont
 
14224
d
 
14225
:cont
 
14226
n
 
14227
s/.\{148\}/&'"$ac_delim"'/g
 
14228
t clear
 
14229
:clear
 
14230
s/\\$//
 
14231
t bsnlc
 
14232
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
14233
d
 
14234
:bsnlc
 
14235
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
14236
b cont
 
14237
' <confdefs.h | sed '
 
14238
s/'"$ac_delim"'/"\\\
 
14239
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
14240
 
 
14241
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14242
  for (key in D) D_is_set[key] = 1
 
14243
  FS = ""
 
14244
}
 
14245
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
14246
  line = \$ 0
 
14247
  split(line, arg, " ")
 
14248
  if (arg[1] == "#") {
 
14249
    defundef = arg[2]
 
14250
    mac1 = arg[3]
 
14251
  } else {
 
14252
    defundef = substr(arg[1], 2)
 
14253
    mac1 = arg[2]
 
14254
  }
 
14255
  split(mac1, mac2, "(") #)
 
14256
  macro = mac2[1]
 
14257
  prefix = substr(line, 1, index(line, defundef) - 1)
 
14258
  if (D_is_set[macro]) {
 
14259
    # Preserve the white space surrounding the "#".
 
14260
    print prefix "define", macro P[macro] D[macro]
 
14261
    next
 
14262
  } else {
 
14263
    # Replace #undef with comments.  This is necessary, for example,
 
14264
    # in the case of _POSIX_SOURCE, which is predefined and required
 
14265
    # on some systems where configure will not decide to define it.
 
14266
    if (defundef == "undef") {
 
14267
      print "/*", prefix defundef, macro, "*/"
 
14268
      next
 
14269
    }
 
14270
  }
 
14271
}
 
14272
{ print }
 
14273
_ACAWK
 
14274
_ACEOF
 
14275
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14276
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
 
14277
fi # test -n "$CONFIG_HEADERS"
 
14278
 
 
14279
 
 
14280
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
14281
shift
 
14282
for ac_tag
 
14283
do
 
14284
  case $ac_tag in
 
14285
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
14286
  esac
 
14287
  case $ac_mode$ac_tag in
 
14288
  :[FHL]*:*);;
 
14289
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 
14290
  :[FH]-) ac_tag=-:-;;
 
14291
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
14292
  esac
 
14293
  ac_save_IFS=$IFS
 
14294
  IFS=:
 
14295
  set x $ac_tag
 
14296
  IFS=$ac_save_IFS
 
14297
  shift
 
14298
  ac_file=$1
 
14299
  shift
 
14300
 
 
14301
  case $ac_mode in
 
14302
  :L) ac_source=$1;;
 
14303
  :[FH])
 
14304
    ac_file_inputs=
 
14305
    for ac_f
 
14306
    do
 
14307
      case $ac_f in
 
14308
      -) ac_f="$ac_tmp/stdin";;
 
14309
      *) # Look for the file first in the build tree, then in the source tree
 
14310
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
14311
         # because $ac_f cannot contain `:'.
 
14312
         test -f "$ac_f" ||
 
14313
           case $ac_f in
 
14314
           [\\/$]*) false;;
 
14315
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
14316
           esac ||
 
14317
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
 
14318
      esac
 
14319
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
14320
      as_fn_append ac_file_inputs " '$ac_f'"
 
14321
    done
 
14322
 
 
14323
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
14324
    # use $as_me), people would be surprised to read:
 
14325
    #    /* config.h.  Generated by config.status.  */
 
14326
    configure_input='Generated from '`
 
14327
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
14328
        `' by configure.'
 
14329
    if test x"$ac_file" != x-; then
 
14330
      configure_input="$ac_file.  $configure_input"
 
14331
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
 
14332
$as_echo "$as_me: creating $ac_file" >&6;}
 
14333
    fi
 
14334
    # Neutralize special characters interpreted by sed in replacement strings.
 
14335
    case $configure_input in #(
 
14336
    *\&* | *\|* | *\\* )
 
14337
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
14338
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
14339
    *) ac_sed_conf_input=$configure_input;;
 
14340
    esac
 
14341
 
 
14342
    case $ac_tag in
 
14343
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
 
14344
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
 
14345
    esac
 
14346
    ;;
 
14347
  esac
 
14348
 
 
14349
  ac_dir=`$as_dirname -- "$ac_file" ||
 
14350
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14351
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
14352
         X"$ac_file" : 'X\(//\)$' \| \
 
14353
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
14354
$as_echo X"$ac_file" |
 
14355
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14356
            s//\1/
 
14357
            q
 
14358
          }
 
14359
          /^X\(\/\/\)[^/].*/{
 
14360
            s//\1/
 
14361
            q
 
14362
          }
 
14363
          /^X\(\/\/\)$/{
 
14364
            s//\1/
 
14365
            q
 
14366
          }
 
14367
          /^X\(\/\).*/{
 
14368
            s//\1/
 
14369
            q
 
14370
          }
 
14371
          s/.*/./; q'`
 
14372
  as_dir="$ac_dir"; as_fn_mkdir_p
 
14373
  ac_builddir=.
 
14374
 
 
14375
case "$ac_dir" in
 
14376
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14377
*)
 
14378
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
14379
  # A ".." for each directory in $ac_dir_suffix.
 
14380
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
14381
  case $ac_top_builddir_sub in
 
14382
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
14383
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
14384
  esac ;;
 
14385
esac
 
14386
ac_abs_top_builddir=$ac_pwd
 
14387
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
14388
# for backward compatibility:
 
14389
ac_top_builddir=$ac_top_build_prefix
 
14390
 
 
14391
case $srcdir in
 
14392
  .)  # We are building in place.
 
14393
    ac_srcdir=.
 
14394
    ac_top_srcdir=$ac_top_builddir_sub
 
14395
    ac_abs_top_srcdir=$ac_pwd ;;
 
14396
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
14397
    ac_srcdir=$srcdir$ac_dir_suffix;
 
14398
    ac_top_srcdir=$srcdir
 
14399
    ac_abs_top_srcdir=$srcdir ;;
 
14400
  *) # Relative name.
 
14401
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
14402
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
14403
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
14404
esac
 
14405
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
14406
 
 
14407
 
 
14408
  case $ac_mode in
 
14409
  :F)
 
14410
  #
 
14411
  # CONFIG_FILE
 
14412
  #
 
14413
 
 
14414
  case $INSTALL in
 
14415
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
14416
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
14417
  esac
 
14418
  ac_MKDIR_P=$MKDIR_P
 
14419
  case $MKDIR_P in
 
14420
  [\\/$]* | ?:[\\/]* ) ;;
 
14421
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
14422
  esac
 
14423
_ACEOF
 
14424
 
 
14425
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14426
# If the template does not know about datarootdir, expand it.
 
14427
# FIXME: This hack should be removed a few years after 2.60.
 
14428
ac_datarootdir_hack=; ac_datarootdir_seen=
 
14429
ac_sed_dataroot='
 
14430
/datarootdir/ {
 
14431
  p
 
14432
  q
 
14433
}
 
14434
/@datadir@/p
 
14435
/@docdir@/p
 
14436
/@infodir@/p
 
14437
/@localedir@/p
 
14438
/@mandir@/p'
 
14439
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
14440
*datarootdir*) ac_datarootdir_seen=yes;;
 
14441
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
14442
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
14443
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
14444
_ACEOF
 
14445
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14446
  ac_datarootdir_hack='
 
14447
  s&@datadir@&$datadir&g
 
14448
  s&@docdir@&$docdir&g
 
14449
  s&@infodir@&$infodir&g
 
14450
  s&@localedir@&$localedir&g
 
14451
  s&@mandir@&$mandir&g
 
14452
  s&\\\${datarootdir}&$datarootdir&g' ;;
 
14453
esac
 
14454
_ACEOF
 
14455
 
 
14456
# Neutralize VPATH when `$srcdir' = `.'.
 
14457
# Shell code in configure.ac might set extrasub.
 
14458
# FIXME: do we really want to maintain this feature?
 
14459
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
14460
ac_sed_extra="$ac_vpsub
 
14461
$extrasub
 
14462
_ACEOF
 
14463
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
14464
:t
 
14465
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
14466
s|@configure_input@|$ac_sed_conf_input|;t t
 
14467
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
14468
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
14469
s&@srcdir@&$ac_srcdir&;t t
 
14470
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
14471
s&@top_srcdir@&$ac_top_srcdir&;t t
 
14472
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
14473
s&@builddir@&$ac_builddir&;t t
 
14474
s&@abs_builddir@&$ac_abs_builddir&;t t
 
14475
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
14476
s&@INSTALL@&$ac_INSTALL&;t t
 
14477
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
14478
$ac_datarootdir_hack
 
14479
"
 
14480
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
 
14481
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14482
 
 
14483
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
14484
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
 
14485
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
 
14486
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
 
14487
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14488
which seems to be undefined.  Please make sure it is defined" >&5
 
14489
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
14490
which seems to be undefined.  Please make sure it is defined" >&2;}
 
14491
 
 
14492
  rm -f "$ac_tmp/stdin"
 
14493
  case $ac_file in
 
14494
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
 
14495
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
 
14496
  esac \
 
14497
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14498
 ;;
 
14499
  :H)
 
14500
  #
 
14501
  # CONFIG_HEADER
 
14502
  #
 
14503
  if test x"$ac_file" != x-; then
 
14504
    {
 
14505
      $as_echo "/* $configure_input  */" \
 
14506
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
 
14507
    } >"$ac_tmp/config.h" \
 
14508
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14509
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
 
14510
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
 
14511
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
14512
    else
 
14513
      rm -f "$ac_file"
 
14514
      mv "$ac_tmp/config.h" "$ac_file" \
 
14515
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 
14516
    fi
 
14517
  else
 
14518
    $as_echo "/* $configure_input  */" \
 
14519
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
 
14520
      || as_fn_error $? "could not create -" "$LINENO" 5
 
14521
  fi
 
14522
# Compute "$ac_file"'s index in $config_headers.
 
14523
_am_arg="$ac_file"
 
14524
_am_stamp_count=1
 
14525
for _am_header in $config_headers :; do
 
14526
  case $_am_header in
 
14527
    $_am_arg | $_am_arg:* )
 
14528
      break ;;
 
14529
    * )
 
14530
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
14531
  esac
 
14532
done
 
14533
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
14534
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14535
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
14536
         X"$_am_arg" : 'X\(//\)$' \| \
 
14537
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
14538
$as_echo X"$_am_arg" |
 
14539
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14540
            s//\1/
 
14541
            q
 
14542
          }
 
14543
          /^X\(\/\/\)[^/].*/{
 
14544
            s//\1/
 
14545
            q
 
14546
          }
 
14547
          /^X\(\/\/\)$/{
 
14548
            s//\1/
 
14549
            q
 
14550
          }
 
14551
          /^X\(\/\).*/{
 
14552
            s//\1/
 
14553
            q
 
14554
          }
 
14555
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
14556
 ;;
 
14557
  
 
14558
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
 
14559
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
14560
 ;;
 
14561
  esac
 
14562
 
 
14563
 
 
14564
  case $ac_file$ac_mode in
 
14565
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
14566
  # Older Autoconf quotes --file arguments for eval, but not when files
 
14567
  # are listed without --file.  Let's play safe and only enable the eval
 
14568
  # if we detect the quoting.
 
14569
  case $CONFIG_FILES in
 
14570
  *\'*) eval set x "$CONFIG_FILES" ;;
 
14571
  *)   set x $CONFIG_FILES ;;
 
14572
  esac
 
14573
  shift
 
14574
  for mf
 
14575
  do
 
14576
    # Strip MF so we end up with the name of the file.
 
14577
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
14578
    # Check whether this is an Automake generated Makefile or not.
 
14579
    # We used to match only the files named 'Makefile.in', but
 
14580
    # some people rename them; so instead we look at the file content.
 
14581
    # Grep'ing the first line is not enough: some people post-process
 
14582
    # each Makefile.in and add a new line on top of each file to say so.
 
14583
    # Grep'ing the whole file is not good either: AIX grep has a line
 
14584
    # limit of 2048, but all sed's we know have understand at least 4000.
 
14585
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
14586
      dirpart=`$as_dirname -- "$mf" ||
 
14587
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14588
         X"$mf" : 'X\(//\)[^/]' \| \
 
14589
         X"$mf" : 'X\(//\)$' \| \
 
14590
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
14591
$as_echo X"$mf" |
 
14592
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14593
            s//\1/
 
14594
            q
 
14595
          }
 
14596
          /^X\(\/\/\)[^/].*/{
 
14597
            s//\1/
 
14598
            q
 
14599
          }
 
14600
          /^X\(\/\/\)$/{
 
14601
            s//\1/
 
14602
            q
 
14603
          }
 
14604
          /^X\(\/\).*/{
 
14605
            s//\1/
 
14606
            q
 
14607
          }
 
14608
          s/.*/./; q'`
 
14609
    else
 
14610
      continue
 
14611
    fi
 
14612
    # Extract the definition of DEPDIR, am__include, and am__quote
 
14613
    # from the Makefile without running 'make'.
 
14614
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
14615
    test -z "$DEPDIR" && continue
 
14616
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
14617
    test -z "$am__include" && continue
 
14618
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
14619
    # Find all dependency output files, they are included files with
 
14620
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
14621
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
14622
    # expansion.
 
14623
    for file in `sed -n "
 
14624
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
14625
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
 
14626
      # Make sure the directory exists.
 
14627
      test -f "$dirpart/$file" && continue
 
14628
      fdir=`$as_dirname -- "$file" ||
 
14629
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
14630
         X"$file" : 'X\(//\)[^/]' \| \
 
14631
         X"$file" : 'X\(//\)$' \| \
 
14632
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
14633
$as_echo X"$file" |
 
14634
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
14635
            s//\1/
 
14636
            q
 
14637
          }
 
14638
          /^X\(\/\/\)[^/].*/{
 
14639
            s//\1/
 
14640
            q
 
14641
          }
 
14642
          /^X\(\/\/\)$/{
 
14643
            s//\1/
 
14644
            q
 
14645
          }
 
14646
          /^X\(\/\).*/{
 
14647
            s//\1/
 
14648
            q
 
14649
          }
 
14650
          s/.*/./; q'`
 
14651
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
 
14652
      # echo "creating $dirpart/$file"
 
14653
      echo '# dummy' > "$dirpart/$file"
 
14654
    done
 
14655
  done
 
14656
}
 
14657
 ;;
 
14658
    "libtool":C) 
 
14659
    
 
14660
    # See if we are running on zsh, and set the options which allow our
 
14661
    # commands through without removal of \ escapes.
 
14662
    if test -n "${ZSH_VERSION+set}" ; then
 
14663
      setopt NO_GLOB_SUBST
 
14664
    fi
 
14665
 
 
14666
    cfgfile="${ofile}T"
 
14667
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
14668
    $RM "$cfgfile"
 
14669
 
 
14670
    cat <<_LT_EOF >> "$cfgfile"
 
14671
#! $SHELL
 
14672
 
 
14673
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
14674
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
14675
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14676
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
14677
#
 
14678
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
14679
#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
 
14680
#                 Foundation, Inc.
 
14681
#   Written by Gordon Matzigkeit, 1996
 
14682
#
 
14683
#   This file is part of GNU Libtool.
 
14684
#
 
14685
# GNU Libtool is free software; you can redistribute it and/or
 
14686
# modify it under the terms of the GNU General Public License as
 
14687
# published by the Free Software Foundation; either version 2 of
 
14688
# the License, or (at your option) any later version.
 
14689
#
 
14690
# As a special exception to the GNU General Public License,
 
14691
# if you distribute this file as part of a program or library that
 
14692
# is built using GNU Libtool, you may include this file under the
 
14693
# same distribution terms that you use for the rest of that program.
 
14694
#
 
14695
# GNU Libtool is distributed in the hope that it will be useful,
 
14696
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14697
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14698
# GNU General Public License for more details.
 
14699
#
 
14700
# You should have received a copy of the GNU General Public License
 
14701
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
14702
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
14703
# obtained by writing to the Free Software Foundation, Inc.,
 
14704
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
14705
 
 
14706
 
 
14707
# The names of the tagged configurations supported by this script.
 
14708
available_tags=""
 
14709
 
 
14710
# ### BEGIN LIBTOOL CONFIG
 
14711
 
 
14712
# Which release of libtool.m4 was used?
 
14713
macro_version=$macro_version
 
14714
macro_revision=$macro_revision
 
14715
 
 
14716
# Whether or not to build static libraries.
 
14717
build_old_libs=$enable_static
 
14718
 
 
14719
# Whether or not to build shared libraries.
 
14720
build_libtool_libs=$enable_shared
 
14721
 
 
14722
# What type of objects to build.
 
14723
pic_mode=$pic_mode
 
14724
 
 
14725
# Whether or not to optimize for fast installation.
 
14726
fast_install=$enable_fast_install
 
14727
 
 
14728
# Shell to use when invoking shell scripts.
 
14729
SHELL=$lt_SHELL
 
14730
 
 
14731
# An echo program that protects backslashes.
 
14732
ECHO=$lt_ECHO
 
14733
 
 
14734
# The PATH separator for the build system.
 
14735
PATH_SEPARATOR=$lt_PATH_SEPARATOR
 
14736
 
 
14737
# The host system.
 
14738
host_alias=$host_alias
 
14739
host=$host
 
14740
host_os=$host_os
 
14741
 
 
14742
# The build system.
 
14743
build_alias=$build_alias
 
14744
build=$build
 
14745
build_os=$build_os
 
14746
 
 
14747
# A sed program that does not truncate output.
 
14748
SED=$lt_SED
 
14749
 
 
14750
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
14751
Xsed="\$SED -e 1s/^X//"
 
14752
 
 
14753
# A grep program that handles long lines.
 
14754
GREP=$lt_GREP
 
14755
 
 
14756
# An ERE matcher.
 
14757
EGREP=$lt_EGREP
 
14758
 
 
14759
# A literal string matcher.
 
14760
FGREP=$lt_FGREP
 
14761
 
 
14762
# A BSD- or MS-compatible name lister.
 
14763
NM=$lt_NM
 
14764
 
 
14765
# Whether we need soft or hard links.
 
14766
LN_S=$lt_LN_S
 
14767
 
 
14768
# What is the maximum length of a command?
 
14769
max_cmd_len=$max_cmd_len
 
14770
 
 
14771
# Object file suffix (normally "o").
 
14772
objext=$ac_objext
 
14773
 
 
14774
# Executable file suffix (normally "").
 
14775
exeext=$exeext
 
14776
 
 
14777
# whether the shell understands "unset".
 
14778
lt_unset=$lt_unset
 
14779
 
 
14780
# turn spaces into newlines.
 
14781
SP2NL=$lt_lt_SP2NL
 
14782
 
 
14783
# turn newlines into spaces.
 
14784
NL2SP=$lt_lt_NL2SP
 
14785
 
 
14786
# convert \$build file names to \$host format.
 
14787
to_host_file_cmd=$lt_cv_to_host_file_cmd
 
14788
 
 
14789
# convert \$build files to toolchain format.
 
14790
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 
14791
 
 
14792
# An object symbol dumper.
 
14793
OBJDUMP=$lt_OBJDUMP
 
14794
 
 
14795
# Method to check whether dependent libraries are shared objects.
 
14796
deplibs_check_method=$lt_deplibs_check_method
 
14797
 
 
14798
# Command to use when deplibs_check_method = "file_magic".
 
14799
file_magic_cmd=$lt_file_magic_cmd
 
14800
 
 
14801
# How to find potential files when deplibs_check_method = "file_magic".
 
14802
file_magic_glob=$lt_file_magic_glob
 
14803
 
 
14804
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
 
14805
want_nocaseglob=$lt_want_nocaseglob
 
14806
 
 
14807
# DLL creation program.
 
14808
DLLTOOL=$lt_DLLTOOL
 
14809
 
 
14810
# Command to associate shared and link libraries.
 
14811
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
 
14812
 
 
14813
# The archiver.
 
14814
AR=$lt_AR
 
14815
 
 
14816
# Flags to create an archive.
 
14817
AR_FLAGS=$lt_AR_FLAGS
 
14818
 
 
14819
# How to feed a file listing to the archiver.
 
14820
archiver_list_spec=$lt_archiver_list_spec
 
14821
 
 
14822
# A symbol stripping program.
 
14823
STRIP=$lt_STRIP
 
14824
 
 
14825
# Commands used to install an old-style archive.
 
14826
RANLIB=$lt_RANLIB
 
14827
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14828
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14829
 
 
14830
# Whether to use a lock for old archive extraction.
 
14831
lock_old_archive_extraction=$lock_old_archive_extraction
 
14832
 
 
14833
# A C compiler.
 
14834
LTCC=$lt_CC
 
14835
 
 
14836
# LTCC compiler flags.
 
14837
LTCFLAGS=$lt_CFLAGS
 
14838
 
 
14839
# Take the output of nm and produce a listing of raw symbols and C names.
 
14840
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14841
 
 
14842
# Transform the output of nm in a proper C declaration.
 
14843
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14844
 
 
14845
# Transform the output of nm in a C name address pair.
 
14846
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14847
 
 
14848
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
14849
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
14850
 
 
14851
# Specify filename containing input files for \$NM.
 
14852
nm_file_list_spec=$lt_nm_file_list_spec
 
14853
 
 
14854
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
14855
lt_sysroot=$lt_sysroot
 
14856
 
 
14857
# The name of the directory that contains temporary libtool files.
 
14858
objdir=$objdir
 
14859
 
 
14860
# Used to examine libraries when file_magic_cmd begins with "file".
 
14861
MAGIC_CMD=$MAGIC_CMD
 
14862
 
 
14863
# Must we lock files when doing compilation?
 
14864
need_locks=$lt_need_locks
 
14865
 
 
14866
# Manifest tool.
 
14867
MANIFEST_TOOL=$lt_MANIFEST_TOOL
 
14868
 
 
14869
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
14870
DSYMUTIL=$lt_DSYMUTIL
 
14871
 
 
14872
# Tool to change global to local symbols on Mac OS X.
 
14873
NMEDIT=$lt_NMEDIT
 
14874
 
 
14875
# Tool to manipulate fat objects and archives on Mac OS X.
 
14876
LIPO=$lt_LIPO
 
14877
 
 
14878
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
14879
OTOOL=$lt_OTOOL
 
14880
 
 
14881
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
14882
OTOOL64=$lt_OTOOL64
 
14883
 
 
14884
# Old archive suffix (normally "a").
 
14885
libext=$libext
 
14886
 
 
14887
# Shared library suffix (normally ".so").
 
14888
shrext_cmds=$lt_shrext_cmds
 
14889
 
 
14890
# The commands to extract the exported symbol list from a shared archive.
 
14891
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14892
 
 
14893
# Variables whose values should be saved in libtool wrapper scripts and
 
14894
# restored at link time.
 
14895
variables_saved_for_relink=$lt_variables_saved_for_relink
 
14896
 
 
14897
# Do we need the "lib" prefix for modules?
 
14898
need_lib_prefix=$need_lib_prefix
 
14899
 
 
14900
# Do we need a version for libraries?
 
14901
need_version=$need_version
 
14902
 
 
14903
# Library versioning type.
 
14904
version_type=$version_type
 
14905
 
 
14906
# Shared library runtime path variable.
 
14907
runpath_var=$runpath_var
 
14908
 
 
14909
# Shared library path variable.
 
14910
shlibpath_var=$shlibpath_var
 
14911
 
 
14912
# Is shlibpath searched before the hard-coded library search path?
 
14913
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14914
 
 
14915
# Format of library name prefix.
 
14916
libname_spec=$lt_libname_spec
 
14917
 
 
14918
# List of archive names.  First name is the real one, the rest are links.
 
14919
# The last name is the one that the linker finds with -lNAME
 
14920
library_names_spec=$lt_library_names_spec
 
14921
 
 
14922
# The coded name of the library, if different from the real name.
 
14923
soname_spec=$lt_soname_spec
 
14924
 
 
14925
# Permission mode override for installation of shared libraries.
 
14926
install_override_mode=$lt_install_override_mode
 
14927
 
 
14928
# Command to use after installation of a shared archive.
 
14929
postinstall_cmds=$lt_postinstall_cmds
 
14930
 
 
14931
# Command to use after uninstallation of a shared archive.
 
14932
postuninstall_cmds=$lt_postuninstall_cmds
 
14933
 
 
14934
# Commands used to finish a libtool library installation in a directory.
 
14935
finish_cmds=$lt_finish_cmds
 
14936
 
 
14937
# As "finish_cmds", except a single script fragment to be evaled but
 
14938
# not shown.
 
14939
finish_eval=$lt_finish_eval
 
14940
 
 
14941
# Whether we should hardcode library paths into libraries.
 
14942
hardcode_into_libs=$hardcode_into_libs
 
14943
 
 
14944
# Compile-time system search path for libraries.
 
14945
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14946
 
 
14947
# Run-time system search path for libraries.
 
14948
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14949
 
 
14950
# Whether dlopen is supported.
 
14951
dlopen_support=$enable_dlopen
 
14952
 
 
14953
# Whether dlopen of programs is supported.
 
14954
dlopen_self=$enable_dlopen_self
 
14955
 
 
14956
# Whether dlopen of statically linked programs is supported.
 
14957
dlopen_self_static=$enable_dlopen_self_static
 
14958
 
 
14959
# Commands to strip libraries.
 
14960
old_striplib=$lt_old_striplib
 
14961
striplib=$lt_striplib
 
14962
 
 
14963
 
 
14964
# The linker used to build libraries.
 
14965
LD=$lt_LD
 
14966
 
 
14967
# How to create reloadable object files.
 
14968
reload_flag=$lt_reload_flag
 
14969
reload_cmds=$lt_reload_cmds
 
14970
 
 
14971
# Commands used to build an old-style archive.
 
14972
old_archive_cmds=$lt_old_archive_cmds
 
14973
 
 
14974
# A language specific compiler.
 
14975
CC=$lt_compiler
 
14976
 
 
14977
# Is the compiler the GNU compiler?
 
14978
with_gcc=$GCC
 
14979
 
 
14980
# Compiler flag to turn off builtin functions.
 
14981
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
14982
 
 
14983
# Additional compiler flags for building library objects.
 
14984
pic_flag=$lt_lt_prog_compiler_pic
 
14985
 
 
14986
# How to pass a linker flag through the compiler.
 
14987
wl=$lt_lt_prog_compiler_wl
 
14988
 
 
14989
# Compiler flag to prevent dynamic linking.
 
14990
link_static_flag=$lt_lt_prog_compiler_static
 
14991
 
 
14992
# Does compiler simultaneously support -c and -o options?
 
14993
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
14994
 
 
14995
# Whether or not to add -lc for building shared libraries.
 
14996
build_libtool_need_lc=$archive_cmds_need_lc
 
14997
 
 
14998
# Whether or not to disallow shared libs when runtime libs are static.
 
14999
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
15000
 
 
15001
# Compiler flag to allow reflexive dlopens.
 
15002
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
15003
 
 
15004
# Compiler flag to generate shared objects directly from archives.
 
15005
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
15006
 
 
15007
# Whether the compiler copes with passing no objects directly.
 
15008
compiler_needs_object=$lt_compiler_needs_object
 
15009
 
 
15010
# Create an old-style archive from a shared archive.
 
15011
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
15012
 
 
15013
# Create a temporary old-style archive to link instead of a shared archive.
 
15014
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
15015
 
 
15016
# Commands used to build a shared archive.
 
15017
archive_cmds=$lt_archive_cmds
 
15018
archive_expsym_cmds=$lt_archive_expsym_cmds
 
15019
 
 
15020
# Commands used to build a loadable module if different from building
 
15021
# a shared archive.
 
15022
module_cmds=$lt_module_cmds
 
15023
module_expsym_cmds=$lt_module_expsym_cmds
 
15024
 
 
15025
# Whether we are building with GNU ld or not.
 
15026
with_gnu_ld=$lt_with_gnu_ld
 
15027
 
 
15028
# Flag that allows shared libraries with undefined symbols to be built.
 
15029
allow_undefined_flag=$lt_allow_undefined_flag
 
15030
 
 
15031
# Flag that enforces no undefined symbols.
 
15032
no_undefined_flag=$lt_no_undefined_flag
 
15033
 
 
15034
# Flag to hardcode \$libdir into a binary during linking.
 
15035
# This must work even if \$libdir does not exist
 
15036
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
15037
 
 
15038
# Whether we need a single "-rpath" flag with a separated argument.
 
15039
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
15040
 
 
15041
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15042
# DIR into the resulting binary.
 
15043
hardcode_direct=$hardcode_direct
 
15044
 
 
15045
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
15046
# DIR into the resulting binary and the resulting library dependency is
 
15047
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
15048
# library is relocated.
 
15049
hardcode_direct_absolute=$hardcode_direct_absolute
 
15050
 
 
15051
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
15052
# into the resulting binary.
 
15053
hardcode_minus_L=$hardcode_minus_L
 
15054
 
 
15055
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
15056
# into the resulting binary.
 
15057
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
15058
 
 
15059
# Set to "yes" if building a shared library automatically hardcodes DIR
 
15060
# into the library and all subsequent libraries and executables linked
 
15061
# against it.
 
15062
hardcode_automatic=$hardcode_automatic
 
15063
 
 
15064
# Set to yes if linker adds runtime paths of dependent libraries
 
15065
# to runtime path list.
 
15066
inherit_rpath=$inherit_rpath
 
15067
 
 
15068
# Whether libtool must link a program against all its dependency libraries.
 
15069
link_all_deplibs=$link_all_deplibs
 
15070
 
 
15071
# Set to "yes" if exported symbols are required.
 
15072
always_export_symbols=$always_export_symbols
 
15073
 
 
15074
# The commands to list exported symbols.
 
15075
export_symbols_cmds=$lt_export_symbols_cmds
 
15076
 
 
15077
# Symbols that should not be listed in the preloaded symbols.
 
15078
exclude_expsyms=$lt_exclude_expsyms
 
15079
 
 
15080
# Symbols that must always be exported.
 
15081
include_expsyms=$lt_include_expsyms
 
15082
 
 
15083
# Commands necessary for linking programs (against libraries) with templates.
 
15084
prelink_cmds=$lt_prelink_cmds
 
15085
 
 
15086
# Commands necessary for finishing linking programs.
 
15087
postlink_cmds=$lt_postlink_cmds
 
15088
 
 
15089
# Specify filename containing input files.
 
15090
file_list_spec=$lt_file_list_spec
 
15091
 
 
15092
# How to hardcode a shared library path into an executable.
 
15093
hardcode_action=$hardcode_action
 
15094
 
 
15095
# ### END LIBTOOL CONFIG
 
15096
 
 
15097
_LT_EOF
 
15098
 
 
15099
  case $host_os in
 
15100
  aix3*)
 
15101
    cat <<\_LT_EOF >> "$cfgfile"
 
15102
# AIX sometimes has problems with the GCC collect2 program.  For some
 
15103
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
15104
# vanish in a puff of smoke.
 
15105
if test "X${COLLECT_NAMES+set}" != Xset; then
 
15106
  COLLECT_NAMES=
 
15107
  export COLLECT_NAMES
 
15108
fi
 
15109
_LT_EOF
 
15110
    ;;
 
15111
  esac
 
15112
 
 
15113
  
 
15114
ltmain="$ac_aux_dir/ltmain.sh"
 
15115
 
 
15116
 
 
15117
  # We use sed instead of cat because bash on DJGPP gets confused if
 
15118
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
15119
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
15120
  # is reportedly fixed, but why not run on old versions too?
 
15121
  sed '$q' "$ltmain" >> "$cfgfile" \
 
15122
     || (rm -f "$cfgfile"; exit 1)
 
15123
 
 
15124
  if test x"$xsi_shell" = xyes; then
 
15125
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
 
15126
func_dirname ()\
 
15127
{\
 
15128
\    case ${1} in\
 
15129
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15130
\      *  ) func_dirname_result="${3}" ;;\
 
15131
\    esac\
 
15132
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
 
15133
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15134
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15135
test 0 -eq $? || _lt_function_replace_fail=:
 
15136
 
 
15137
 
 
15138
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
 
15139
func_basename ()\
 
15140
{\
 
15141
\    func_basename_result="${1##*/}"\
 
15142
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15143
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15144
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15145
test 0 -eq $? || _lt_function_replace_fail=:
 
15146
 
 
15147
 
 
15148
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
 
15149
func_dirname_and_basename ()\
 
15150
{\
 
15151
\    case ${1} in\
 
15152
\      */*) func_dirname_result="${1%/*}${2}" ;;\
 
15153
\      *  ) func_dirname_result="${3}" ;;\
 
15154
\    esac\
 
15155
\    func_basename_result="${1##*/}"\
 
15156
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
 
15157
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15158
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15159
test 0 -eq $? || _lt_function_replace_fail=:
 
15160
 
 
15161
 
 
15162
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
 
15163
func_stripname ()\
 
15164
{\
 
15165
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
 
15166
\    # positional parameters, so assign one to ordinary parameter first.\
 
15167
\    func_stripname_result=${3}\
 
15168
\    func_stripname_result=${func_stripname_result#"${1}"}\
 
15169
\    func_stripname_result=${func_stripname_result%"${2}"}\
 
15170
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
 
15171
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15172
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15173
test 0 -eq $? || _lt_function_replace_fail=:
 
15174
 
 
15175
 
 
15176
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
 
15177
func_split_long_opt ()\
 
15178
{\
 
15179
\    func_split_long_opt_name=${1%%=*}\
 
15180
\    func_split_long_opt_arg=${1#*=}\
 
15181
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15182
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15183
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15184
test 0 -eq $? || _lt_function_replace_fail=:
 
15185
 
 
15186
 
 
15187
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
 
15188
func_split_short_opt ()\
 
15189
{\
 
15190
\    func_split_short_opt_arg=${1#??}\
 
15191
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
 
15192
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
 
15193
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15194
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15195
test 0 -eq $? || _lt_function_replace_fail=:
 
15196
 
 
15197
 
 
15198
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
 
15199
func_lo2o ()\
 
15200
{\
 
15201
\    case ${1} in\
 
15202
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
 
15203
\      *)    func_lo2o_result=${1} ;;\
 
15204
\    esac\
 
15205
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
 
15206
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15207
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15208
test 0 -eq $? || _lt_function_replace_fail=:
 
15209
 
 
15210
 
 
15211
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
 
15212
func_xform ()\
 
15213
{\
 
15214
    func_xform_result=${1%.*}.lo\
 
15215
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
 
15216
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15217
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15218
test 0 -eq $? || _lt_function_replace_fail=:
 
15219
 
 
15220
 
 
15221
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
 
15222
func_arith ()\
 
15223
{\
 
15224
    func_arith_result=$(( $* ))\
 
15225
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
 
15226
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15227
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15228
test 0 -eq $? || _lt_function_replace_fail=:
 
15229
 
 
15230
 
 
15231
  sed -e '/^func_len ()$/,/^} # func_len /c\
 
15232
func_len ()\
 
15233
{\
 
15234
    func_len_result=${#1}\
 
15235
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
 
15236
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15237
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15238
test 0 -eq $? || _lt_function_replace_fail=:
 
15239
 
 
15240
fi
 
15241
 
 
15242
if test x"$lt_shell_append" = xyes; then
 
15243
  sed -e '/^func_append ()$/,/^} # func_append /c\
 
15244
func_append ()\
 
15245
{\
 
15246
    eval "${1}+=\\${2}"\
 
15247
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
 
15248
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15249
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15250
test 0 -eq $? || _lt_function_replace_fail=:
 
15251
 
 
15252
 
 
15253
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
 
15254
func_append_quoted ()\
 
15255
{\
 
15256
\    func_quote_for_eval "${2}"\
 
15257
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
 
15258
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
 
15259
  && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15260
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15261
test 0 -eq $? || _lt_function_replace_fail=:
 
15262
 
 
15263
 
 
15264
  # Save a `func_append' function call where possible by direct use of '+='
 
15265
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
 
15266
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15267
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15268
  test 0 -eq $? || _lt_function_replace_fail=:
 
15269
else
 
15270
  # Save a `func_append' function call even when '+=' is not available
 
15271
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
 
15272
    && mv -f "$cfgfile.tmp" "$cfgfile" \
 
15273
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
 
15274
  test 0 -eq $? || _lt_function_replace_fail=:
 
15275
fi
 
15276
 
 
15277
if test x"$_lt_function_replace_fail" = x":"; then
 
15278
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
 
15279
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
 
15280
fi
 
15281
 
 
15282
 
 
15283
   mv -f "$cfgfile" "$ofile" ||
 
15284
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
15285
  chmod +x "$ofile"
 
15286
 
 
15287
 ;;
 
15288
 
 
15289
  esac
 
15290
done # for ac_tag
 
15291
 
 
15292
 
 
15293
as_fn_exit 0
 
15294
_ACEOF
 
15295
ac_clean_files=$ac_clean_files_save
 
15296
 
 
15297
test $ac_write_fail = 0 ||
 
15298
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
 
15299
 
 
15300
 
 
15301
# configure is writing to config.log, and then calls config.status.
 
15302
# config.status does its own redirection, appending to config.log.
 
15303
# Unfortunately, on DOS this fails, as config.log is still kept open
 
15304
# by configure, so config.status won't be able to write to it; its
 
15305
# output is simply discarded.  So we exec the FD to /dev/null,
 
15306
# effectively closing config.log, so it can be properly (re)opened and
 
15307
# appended to by config.status.  When coming back to configure, we
 
15308
# need to make the FD available again.
 
15309
if test "$no_create" != yes; then
 
15310
  ac_cs_success=:
 
15311
  ac_config_status_args=
 
15312
  test "$silent" = yes &&
 
15313
    ac_config_status_args="$ac_config_status_args --quiet"
 
15314
  exec 5>/dev/null
 
15315
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
15316
  exec 5>>config.log
 
15317
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
15318
  # would make configure fail if this is the last instruction.
 
15319
  $ac_cs_success || as_fn_exit 1
 
15320
fi
 
15321
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
15322
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
15323
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
15324
fi
 
15325