~ubuntu-branches/ubuntu/trusty/sflphone/trusty

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.0.1/aconfigure

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (4.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140128182336-jrsv0k9u6cawc068
Tags: 1.3.0-1
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

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 pjproject 2.x.
4
 
#
5
 
#
6
 
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7
 
#
8
 
#
9
 
# This configure script is free software; the Free Software Foundation
10
 
# gives unlimited permission to copy, distribute and modify it.
11
 
## -------------------- ##
12
 
## M4sh Initialization. ##
13
 
## -------------------- ##
14
 
 
15
 
# Be more Bourne compatible
16
 
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18
 
  emulate sh
19
 
  NULLCMD=:
20
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
 
  # is contrary to our usage.  Disable this feature.
22
 
  alias -g '${1+"$@"}'='"$@"'
23
 
  setopt NO_GLOB_SUBST
24
 
else
25
 
  case `(set -o) 2>/dev/null` in #(
26
 
  *posix*) :
27
 
    set -o posix ;; #(
28
 
  *) :
29
 
     ;;
30
 
esac
31
 
fi
32
 
 
33
 
 
34
 
as_nl='
35
 
'
36
 
export as_nl
37
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
 
# but without wasting forks for bash or zsh.
43
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45
 
  as_echo='print -r --'
46
 
  as_echo_n='print -rn --'
47
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48
 
  as_echo='printf %s\n'
49
 
  as_echo_n='printf %s'
50
 
else
51
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
 
    as_echo_n='/usr/ucb/echo -n'
54
 
  else
55
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56
 
    as_echo_n_body='eval
57
 
      arg=$1;
58
 
      case $arg in #(
59
 
      *"$as_nl"*)
60
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
61
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62
 
      esac;
63
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64
 
    '
65
 
    export as_echo_n_body
66
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
67
 
  fi
68
 
  export as_echo_body
69
 
  as_echo='sh -c $as_echo_body as_echo'
70
 
fi
71
 
 
72
 
# The user is always right.
73
 
if test "${PATH_SEPARATOR+set}" != set; then
74
 
  PATH_SEPARATOR=:
75
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77
 
      PATH_SEPARATOR=';'
78
 
  }
79
 
fi
80
 
 
81
 
 
82
 
# IFS
83
 
# We need space, tab and new line, in precisely that order.  Quoting is
84
 
# there to prevent editors from complaining about space-tab.
85
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
 
# splitting by setting IFS to empty value.)
87
 
IFS=" ""        $as_nl"
88
 
 
89
 
# Find who we are.  Look in the path if we contain no directory separator.
90
 
as_myself=
91
 
case $0 in #((
92
 
  *[\\/]* ) as_myself=$0 ;;
93
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94
 
for as_dir in $PATH
95
 
do
96
 
  IFS=$as_save_IFS
97
 
  test -z "$as_dir" && as_dir=.
98
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99
 
  done
100
 
IFS=$as_save_IFS
101
 
 
102
 
     ;;
103
 
esac
104
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
 
# in which case we are not to be found in the path.
106
 
if test "x$as_myself" = x; then
107
 
  as_myself=$0
108
 
fi
109
 
if test ! -f "$as_myself"; then
110
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111
 
  exit 1
112
 
fi
113
 
 
114
 
# Unset variables that we do not need and which cause bugs (e.g. in
115
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116
 
# suppresses any "Segmentation fault" message there.  '((' could
117
 
# trigger a bug in pdksh 5.2.14.
118
 
for as_var in BASH_ENV ENV MAIL MAILPATH
119
 
do eval test x\${$as_var+set} = xset \
120
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121
 
done
122
 
PS1='$ '
123
 
PS2='> '
124
 
PS4='+ '
125
 
 
126
 
# NLS nuisances.
127
 
LC_ALL=C
128
 
export LC_ALL
129
 
LANGUAGE=C
130
 
export LANGUAGE
131
 
 
132
 
# CDPATH.
133
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
 
 
135
 
# Use a proper internal environment variable to ensure we don't fall
136
 
  # into an infinite loop, continuously re-executing ourselves.
137
 
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
 
    _as_can_reexec=no; export _as_can_reexec;
139
 
    # We cannot yet assume a decent shell, so we have to provide a
140
 
# neutralization value for shells without unset; and this also
141
 
# works around shells that cannot unset nonexistent variables.
142
 
# Preserve -v and -x to the replacement shell.
143
 
BASH_ENV=/dev/null
144
 
ENV=/dev/null
145
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146
 
case $- in # ((((
147
 
  *v*x* | *x*v* ) as_opts=-vx ;;
148
 
  *v* ) as_opts=-v ;;
149
 
  *x* ) as_opts=-x ;;
150
 
  * ) as_opts= ;;
151
 
esac
152
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
 
# Admittedly, this is quite paranoid, since all the known shells bail
154
 
# out after a failed `exec'.
155
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156
 
as_fn_exit 255
157
 
  fi
158
 
  # We don't want this to propagate to other subprocesses.
159
 
          { _as_can_reexec=; unset _as_can_reexec;}
160
 
if test "x$CONFIG_SHELL" = x; then
161
 
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162
 
  emulate sh
163
 
  NULLCMD=:
164
 
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
 
  # is contrary to our usage.  Disable this feature.
166
 
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167
 
  setopt NO_GLOB_SUBST
168
 
else
169
 
  case \`(set -o) 2>/dev/null\` in #(
170
 
  *posix*) :
171
 
    set -o posix ;; #(
172
 
  *) :
173
 
     ;;
174
 
esac
175
 
fi
176
 
"
177
 
  as_required="as_fn_return () { (exit \$1); }
178
 
as_fn_success () { as_fn_return 0; }
179
 
as_fn_failure () { as_fn_return 1; }
180
 
as_fn_ret_success () { return 0; }
181
 
as_fn_ret_failure () { return 1; }
182
 
 
183
 
exitcode=0
184
 
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
 
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
 
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
 
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
 
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
 
 
190
 
else
191
 
  exitcode=1; echo positional parameters were not saved.
192
 
fi
193
 
test x\$exitcode = x0 || exit 1
194
 
test -x / || exit 1"
195
 
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
 
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
 
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
 
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
 
test \$(( 1 + 1 )) = 2 || exit 1"
200
 
  if (eval "$as_required") 2>/dev/null; then :
201
 
  as_have_required=yes
202
 
else
203
 
  as_have_required=no
204
 
fi
205
 
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
 
 
207
 
else
208
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209
 
as_found=false
210
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211
 
do
212
 
  IFS=$as_save_IFS
213
 
  test -z "$as_dir" && as_dir=.
214
 
  as_found=:
215
 
  case $as_dir in #(
216
 
         /*)
217
 
           for as_base in sh bash ksh sh5; do
218
 
             # Try only shells that exist, to save several forks.
219
 
             as_shell=$as_dir/$as_base
220
 
             if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
 
                    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
 
  CONFIG_SHELL=$as_shell as_have_required=yes
223
 
                   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224
 
  break 2
225
 
fi
226
 
fi
227
 
           done;;
228
 
       esac
229
 
  as_found=false
230
 
done
231
 
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
 
              { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
 
  CONFIG_SHELL=$SHELL as_have_required=yes
234
 
fi; }
235
 
IFS=$as_save_IFS
236
 
 
237
 
 
238
 
      if test "x$CONFIG_SHELL" != x; then :
239
 
  export CONFIG_SHELL
240
 
             # We cannot yet assume a decent shell, so we have to provide a
241
 
# neutralization value for shells without unset; and this also
242
 
# works around shells that cannot unset nonexistent variables.
243
 
# Preserve -v and -x to the replacement shell.
244
 
BASH_ENV=/dev/null
245
 
ENV=/dev/null
246
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247
 
case $- in # ((((
248
 
  *v*x* | *x*v* ) as_opts=-vx ;;
249
 
  *v* ) as_opts=-v ;;
250
 
  *x* ) as_opts=-x ;;
251
 
  * ) as_opts= ;;
252
 
esac
253
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
 
# Admittedly, this is quite paranoid, since all the known shells bail
255
 
# out after a failed `exec'.
256
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257
 
exit 255
258
 
fi
259
 
 
260
 
    if test x$as_have_required = xno; then :
261
 
  $as_echo "$0: This script requires a shell more modern than all"
262
 
  $as_echo "$0: the shells that I found on your system."
263
 
  if test x${ZSH_VERSION+set} = xset ; then
264
 
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
 
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266
 
  else
267
 
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
 
$0: including any error possibly output before this
269
 
$0: message. Then install a modern shell, or manually run
270
 
$0: the script under such a shell if you do have one."
271
 
  fi
272
 
  exit 1
273
 
fi
274
 
fi
275
 
fi
276
 
SHELL=${CONFIG_SHELL-/bin/sh}
277
 
export SHELL
278
 
# Unset more variables known to interfere with behavior of common tools.
279
 
CLICOLOR_FORCE= GREP_OPTIONS=
280
 
unset CLICOLOR_FORCE GREP_OPTIONS
281
 
 
282
 
## --------------------- ##
283
 
## M4sh Shell Functions. ##
284
 
## --------------------- ##
285
 
# as_fn_unset VAR
286
 
# ---------------
287
 
# Portably unset VAR.
288
 
as_fn_unset ()
289
 
{
290
 
  { eval $1=; unset $1;}
291
 
}
292
 
as_unset=as_fn_unset
293
 
 
294
 
# as_fn_set_status STATUS
295
 
# -----------------------
296
 
# Set $? to STATUS, without forking.
297
 
as_fn_set_status ()
298
 
{
299
 
  return $1
300
 
} # as_fn_set_status
301
 
 
302
 
# as_fn_exit STATUS
303
 
# -----------------
304
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305
 
as_fn_exit ()
306
 
{
307
 
  set +e
308
 
  as_fn_set_status $1
309
 
  exit $1
310
 
} # as_fn_exit
311
 
 
312
 
# as_fn_mkdir_p
313
 
# -------------
314
 
# Create "$as_dir" as a directory, including parents if necessary.
315
 
as_fn_mkdir_p ()
316
 
{
317
 
 
318
 
  case $as_dir in #(
319
 
  -*) as_dir=./$as_dir;;
320
 
  esac
321
 
  test -d "$as_dir" || eval $as_mkdir_p || {
322
 
    as_dirs=
323
 
    while :; do
324
 
      case $as_dir in #(
325
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326
 
      *) as_qdir=$as_dir;;
327
 
      esac
328
 
      as_dirs="'$as_qdir' $as_dirs"
329
 
      as_dir=`$as_dirname -- "$as_dir" ||
330
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
332
 
         X"$as_dir" : 'X\(//\)$' \| \
333
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
 
$as_echo X"$as_dir" |
335
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336
 
            s//\1/
337
 
            q
338
 
          }
339
 
          /^X\(\/\/\)[^/].*/{
340
 
            s//\1/
341
 
            q
342
 
          }
343
 
          /^X\(\/\/\)$/{
344
 
            s//\1/
345
 
            q
346
 
          }
347
 
          /^X\(\/\).*/{
348
 
            s//\1/
349
 
            q
350
 
          }
351
 
          s/.*/./; q'`
352
 
      test -d "$as_dir" && break
353
 
    done
354
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
355
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
 
 
357
 
 
358
 
} # as_fn_mkdir_p
359
 
 
360
 
# as_fn_executable_p FILE
361
 
# -----------------------
362
 
# Test if FILE is an executable regular file.
363
 
as_fn_executable_p ()
364
 
{
365
 
  test -f "$1" && test -x "$1"
366
 
} # as_fn_executable_p
367
 
# as_fn_append VAR VALUE
368
 
# ----------------------
369
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
 
# advantage of any shell optimizations that allow amortized linear growth over
371
 
# repeated appends, instead of the typical quadratic growth present in naive
372
 
# implementations.
373
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
 
  eval 'as_fn_append ()
375
 
  {
376
 
    eval $1+=\$2
377
 
  }'
378
 
else
379
 
  as_fn_append ()
380
 
  {
381
 
    eval $1=\$$1\$2
382
 
  }
383
 
fi # as_fn_append
384
 
 
385
 
# as_fn_arith ARG...
386
 
# ------------------
387
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
 
# must be portable across $(()) and expr.
390
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391
 
  eval 'as_fn_arith ()
392
 
  {
393
 
    as_val=$(( $* ))
394
 
  }'
395
 
else
396
 
  as_fn_arith ()
397
 
  {
398
 
    as_val=`expr "$@" || test $? -eq 1`
399
 
  }
400
 
fi # as_fn_arith
401
 
 
402
 
 
403
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
 
# ----------------------------------------
405
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
 
# script with STATUS, using 1 if that was 0.
408
 
as_fn_error ()
409
 
{
410
 
  as_status=$1; test $as_status -eq 0 && as_status=1
411
 
  if test "$4"; then
412
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414
 
  fi
415
 
  $as_echo "$as_me: error: $2" >&2
416
 
  as_fn_exit $as_status
417
 
} # as_fn_error
418
 
 
419
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421
 
  as_expr=expr
422
 
else
423
 
  as_expr=false
424
 
fi
425
 
 
426
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427
 
  as_basename=basename
428
 
else
429
 
  as_basename=false
430
 
fi
431
 
 
432
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433
 
  as_dirname=dirname
434
 
else
435
 
  as_dirname=false
436
 
fi
437
 
 
438
 
as_me=`$as_basename -- "$0" ||
439
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
 
         X"$0" : 'X\(//\)$' \| \
441
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442
 
$as_echo X/"$0" |
443
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
444
 
            s//\1/
445
 
            q
446
 
          }
447
 
          /^X\/\(\/\/\)$/{
448
 
            s//\1/
449
 
            q
450
 
          }
451
 
          /^X\/\(\/\).*/{
452
 
            s//\1/
453
 
            q
454
 
          }
455
 
          s/.*/./; q'`
456
 
 
457
 
# Avoid depending upon Character Ranges.
458
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
 
as_cr_digits='0123456789'
462
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
463
 
 
464
 
 
465
 
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
 
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
 
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
 
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
 
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470
 
  sed -n '
471
 
    p
472
 
    /[$]LINENO/=
473
 
  ' <$as_myself |
474
 
    sed '
475
 
      s/[$]LINENO.*/&-/
476
 
      t lineno
477
 
      b
478
 
      :lineno
479
 
      N
480
 
      :loop
481
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482
 
      t loop
483
 
      s/-\n.*//
484
 
    ' >$as_me.lineno &&
485
 
  chmod +x "$as_me.lineno" ||
486
 
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
 
 
488
 
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
 
  # already done that, so ensure we don't try to do so again and fall
490
 
  # in an infinite loop.  This has already happened in practice.
491
 
  _as_can_reexec=no; export _as_can_reexec
492
 
  # Don't try to exec as it changes $[0], causing all sort of problems
493
 
  # (the dirname of $[0] is not the place where we might find the
494
 
  # original and so on.  Autoconf is especially sensitive to this).
495
 
  . "./$as_me.lineno"
496
 
  # Exit status is that of the last command.
497
 
  exit
498
 
}
499
 
 
500
 
ECHO_C= ECHO_N= ECHO_T=
501
 
case `echo -n x` in #(((((
502
 
-n*)
503
 
  case `echo 'xy\c'` in
504
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
505
 
  xy)  ECHO_C='\c';;
506
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507
 
       ECHO_T=' ';;
508
 
  esac;;
509
 
*)
510
 
  ECHO_N='-n';;
511
 
esac
512
 
 
513
 
rm -f conf$$ conf$$.exe conf$$.file
514
 
if test -d conf$$.dir; then
515
 
  rm -f conf$$.dir/conf$$.file
516
 
else
517
 
  rm -f conf$$.dir
518
 
  mkdir conf$$.dir 2>/dev/null
519
 
fi
520
 
if (echo >conf$$.file) 2>/dev/null; then
521
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
522
 
    as_ln_s='ln -s'
523
 
    # ... but there are two gotchas:
524
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
 
    # In both cases, we have to default to `cp -pR'.
527
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528
 
      as_ln_s='cp -pR'
529
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
530
 
    as_ln_s=ln
531
 
  else
532
 
    as_ln_s='cp -pR'
533
 
  fi
534
 
else
535
 
  as_ln_s='cp -pR'
536
 
fi
537
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
 
rmdir conf$$.dir 2>/dev/null
539
 
 
540
 
if mkdir -p . 2>/dev/null; then
541
 
  as_mkdir_p='mkdir -p "$as_dir"'
542
 
else
543
 
  test -d ./-p && rmdir ./-p
544
 
  as_mkdir_p=false
545
 
fi
546
 
 
547
 
as_test_x='test -x'
548
 
as_executable_p=as_fn_executable_p
549
 
 
550
 
# Sed expression to map a string onto a valid CPP name.
551
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
 
 
553
 
# Sed expression to map a string onto a valid variable name.
554
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
 
 
556
 
 
557
 
test -n "$DJDIR" || exec 7<&0 </dev/null
558
 
exec 6>&1
559
 
 
560
 
# Name of the host.
561
 
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
 
# so uname gets run too.
563
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
 
 
565
 
#
566
 
# Initializations.
567
 
#
568
 
ac_default_prefix=/usr/local
569
 
ac_clean_files=
570
 
ac_config_libobj_dir=.
571
 
LIBOBJS=
572
 
cross_compiling=no
573
 
subdirs=
574
 
MFLAGS=
575
 
MAKEFLAGS=
576
 
 
577
 
# Identity of this package.
578
 
PACKAGE_NAME='pjproject'
579
 
PACKAGE_TARNAME='pjproject'
580
 
PACKAGE_VERSION='2.x'
581
 
PACKAGE_STRING='pjproject 2.x'
582
 
PACKAGE_BUGREPORT=''
583
 
PACKAGE_URL=''
584
 
 
585
 
# Factoring default headers for most tests.
586
 
ac_includes_default="\
587
 
#include <stdio.h>
588
 
#ifdef HAVE_SYS_TYPES_H
589
 
# include <sys/types.h>
590
 
#endif
591
 
#ifdef HAVE_SYS_STAT_H
592
 
# include <sys/stat.h>
593
 
#endif
594
 
#ifdef STDC_HEADERS
595
 
# include <stdlib.h>
596
 
# include <stddef.h>
597
 
#else
598
 
# ifdef HAVE_STDLIB_H
599
 
#  include <stdlib.h>
600
 
# endif
601
 
#endif
602
 
#ifdef HAVE_STRING_H
603
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604
 
#  include <memory.h>
605
 
# endif
606
 
# include <string.h>
607
 
#endif
608
 
#ifdef HAVE_STRINGS_H
609
 
# include <strings.h>
610
 
#endif
611
 
#ifdef HAVE_INTTYPES_H
612
 
# include <inttypes.h>
613
 
#endif
614
 
#ifdef HAVE_STDINT_H
615
 
# include <stdint.h>
616
 
#endif
617
 
#ifdef HAVE_UNISTD_H
618
 
# include <unistd.h>
619
 
#endif"
620
 
 
621
 
ac_subst_vars='LTLIBOBJS
622
 
LIBOBJS
623
 
ac_main_obj
624
 
ac_host
625
 
ac_linux_poll
626
 
opencore_amrnb_present
627
 
opencore_amrnb_h_present
628
 
ac_no_opencore_amrnb
629
 
libcrypto_present
630
 
libssl_present
631
 
openssl_h_present
632
 
ac_no_ssl
633
 
ac_v4l2_ldflags
634
 
ac_v4l2_cflags
635
 
PKG_CONFIG
636
 
SAVED_PKG_CONFIG_PATH
637
 
ac_ffmpeg_ldflags
638
 
ac_ffmpeg_cflags
639
 
ac_has_ffmpeg
640
 
ac_sdl_ldflags
641
 
ac_sdl_cflags
642
 
SDL_CONFIG
643
 
ac_resample_dll
644
 
ac_no_ilbc_codec
645
 
ac_no_speex_codec
646
 
ac_no_g7221_codec
647
 
ac_no_g722_codec
648
 
ac_no_gsm_codec
649
 
ac_no_l16_codec
650
 
ac_no_g711_codec
651
 
ac_no_speex_aec
652
 
ac_no_large_filter
653
 
ac_no_small_filter
654
 
ac_qt_cflags
655
 
ac_pjmedia_video_has_qt
656
 
ac_ios_cflags
657
 
ac_pjmedia_video_has_ios
658
 
ac_pjmedia_video
659
 
ac_pa_use_oss
660
 
ac_pa_use_alsa
661
 
ac_pa_cflags
662
 
ac_external_pa
663
 
ac_pjmedia_snd
664
 
ac_external_gsm
665
 
ac_external_speex
666
 
ac_os_objs
667
 
EGREP
668
 
GREP
669
 
CPP
670
 
ac_cross_compile
671
 
ac_shlib_suffix
672
 
ac_build_mak_vars
673
 
ac_pjdir
674
 
CC_CFLAGS
675
 
CC_OPTIMIZE
676
 
CC_DEF
677
 
CC_INC
678
 
CC_OUT
679
 
LIBEXT2
680
 
LIBEXT
681
 
RANLIB
682
 
LDOUT
683
 
LD
684
 
AR
685
 
ac_ct_CXX
686
 
CXXFLAGS
687
 
CXX
688
 
OBJEXT
689
 
EXEEXT
690
 
ac_ct_CC
691
 
CPPFLAGS
692
 
LDFLAGS
693
 
CFLAGS
694
 
CC
695
 
target_os
696
 
target_vendor
697
 
target_cpu
698
 
target
699
 
host_os
700
 
host_vendor
701
 
host_cpu
702
 
host
703
 
build_os
704
 
build_vendor
705
 
build_cpu
706
 
build
707
 
target_alias
708
 
host_alias
709
 
build_alias
710
 
LIBS
711
 
ECHO_T
712
 
ECHO_N
713
 
ECHO_C
714
 
DEFS
715
 
mandir
716
 
localedir
717
 
libdir
718
 
psdir
719
 
pdfdir
720
 
dvidir
721
 
htmldir
722
 
infodir
723
 
docdir
724
 
oldincludedir
725
 
includedir
726
 
localstatedir
727
 
sharedstatedir
728
 
sysconfdir
729
 
datadir
730
 
datarootdir
731
 
libexecdir
732
 
sbindir
733
 
bindir
734
 
program_transform_name
735
 
prefix
736
 
exec_prefix
737
 
PACKAGE_URL
738
 
PACKAGE_BUGREPORT
739
 
PACKAGE_STRING
740
 
PACKAGE_VERSION
741
 
PACKAGE_TARNAME
742
 
PACKAGE_NAME
743
 
PATH_SEPARATOR
744
 
SHELL'
745
 
ac_subst_files=''
746
 
ac_user_opts='
747
 
enable_option_checking
748
 
enable_floating_point
749
 
enable_epoll
750
 
with_external_speex
751
 
with_external_gsm
752
 
enable_sound
753
 
with_external_pa
754
 
enable_oss
755
 
enable_video
756
 
enable_ext_sound
757
 
enable_small_filter
758
 
enable_large_filter
759
 
enable_speex_aec
760
 
enable_g711_codec
761
 
enable_l16_codec
762
 
enable_gsm_codec
763
 
enable_g722_codec
764
 
enable_g7221_codec
765
 
enable_speex_codec
766
 
enable_ilbc_codec
767
 
enable_libsamplerate
768
 
enable_resample_dll
769
 
with_sdl
770
 
enable_sdl
771
 
with_ffmpeg
772
 
enable_ffmpeg
773
 
enable_v4l2
774
 
enable_ipp
775
 
with_ipp
776
 
with_ipp_samples
777
 
with_ipp_arch
778
 
with_ssl
779
 
enable_ssl
780
 
with_opencore_amrnb
781
 
enable_opencore_amrnb
782
 
'
783
 
      ac_precious_vars='build_alias
784
 
host_alias
785
 
target_alias
786
 
CC
787
 
CFLAGS
788
 
LDFLAGS
789
 
LIBS
790
 
CPPFLAGS
791
 
CXX
792
 
CXXFLAGS
793
 
CCC
794
 
CPP'
795
 
 
796
 
 
797
 
# Initialize some variables set by options.
798
 
ac_init_help=
799
 
ac_init_version=false
800
 
ac_unrecognized_opts=
801
 
ac_unrecognized_sep=
802
 
# The variables have the same names as the options, with
803
 
# dashes changed to underlines.
804
 
cache_file=/dev/null
805
 
exec_prefix=NONE
806
 
no_create=
807
 
no_recursion=
808
 
prefix=NONE
809
 
program_prefix=NONE
810
 
program_suffix=NONE
811
 
program_transform_name=s,x,x,
812
 
silent=
813
 
site=
814
 
srcdir=
815
 
verbose=
816
 
x_includes=NONE
817
 
x_libraries=NONE
818
 
 
819
 
# Installation directory options.
820
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
821
 
# and all the variables that are supposed to be based on exec_prefix
822
 
# by default will actually change.
823
 
# Use braces instead of parens because sh, perl, etc. also accept them.
824
 
# (The list follows the same order as the GNU Coding Standards.)
825
 
bindir='${exec_prefix}/bin'
826
 
sbindir='${exec_prefix}/sbin'
827
 
libexecdir='${exec_prefix}/libexec'
828
 
datarootdir='${prefix}/share'
829
 
datadir='${datarootdir}'
830
 
sysconfdir='${prefix}/etc'
831
 
sharedstatedir='${prefix}/com'
832
 
localstatedir='${prefix}/var'
833
 
includedir='${prefix}/include'
834
 
oldincludedir='/usr/include'
835
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836
 
infodir='${datarootdir}/info'
837
 
htmldir='${docdir}'
838
 
dvidir='${docdir}'
839
 
pdfdir='${docdir}'
840
 
psdir='${docdir}'
841
 
libdir='${exec_prefix}/lib'
842
 
localedir='${datarootdir}/locale'
843
 
mandir='${datarootdir}/man'
844
 
 
845
 
ac_prev=
846
 
ac_dashdash=
847
 
for ac_option
848
 
do
849
 
  # If the previous option needs an argument, assign it.
850
 
  if test -n "$ac_prev"; then
851
 
    eval $ac_prev=\$ac_option
852
 
    ac_prev=
853
 
    continue
854
 
  fi
855
 
 
856
 
  case $ac_option in
857
 
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858
 
  *=)   ac_optarg= ;;
859
 
  *)    ac_optarg=yes ;;
860
 
  esac
861
 
 
862
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
863
 
 
864
 
  case $ac_dashdash$ac_option in
865
 
  --)
866
 
    ac_dashdash=yes ;;
867
 
 
868
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869
 
    ac_prev=bindir ;;
870
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871
 
    bindir=$ac_optarg ;;
872
 
 
873
 
  -build | --build | --buil | --bui | --bu)
874
 
    ac_prev=build_alias ;;
875
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876
 
    build_alias=$ac_optarg ;;
877
 
 
878
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
879
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880
 
    ac_prev=cache_file ;;
881
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883
 
    cache_file=$ac_optarg ;;
884
 
 
885
 
  --config-cache | -C)
886
 
    cache_file=config.cache ;;
887
 
 
888
 
  -datadir | --datadir | --datadi | --datad)
889
 
    ac_prev=datadir ;;
890
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891
 
    datadir=$ac_optarg ;;
892
 
 
893
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894
 
  | --dataroo | --dataro | --datar)
895
 
    ac_prev=datarootdir ;;
896
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898
 
    datarootdir=$ac_optarg ;;
899
 
 
900
 
  -disable-* | --disable-*)
901
 
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902
 
    # Reject names that are not valid shell variable names.
903
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904
 
      as_fn_error $? "invalid feature name: $ac_useropt"
905
 
    ac_useropt_orig=$ac_useropt
906
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907
 
    case $ac_user_opts in
908
 
      *"
909
 
"enable_$ac_useropt"
910
 
"*) ;;
911
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912
 
         ac_unrecognized_sep=', ';;
913
 
    esac
914
 
    eval enable_$ac_useropt=no ;;
915
 
 
916
 
  -docdir | --docdir | --docdi | --doc | --do)
917
 
    ac_prev=docdir ;;
918
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919
 
    docdir=$ac_optarg ;;
920
 
 
921
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922
 
    ac_prev=dvidir ;;
923
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924
 
    dvidir=$ac_optarg ;;
925
 
 
926
 
  -enable-* | --enable-*)
927
 
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928
 
    # Reject names that are not valid shell variable names.
929
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930
 
      as_fn_error $? "invalid feature name: $ac_useropt"
931
 
    ac_useropt_orig=$ac_useropt
932
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933
 
    case $ac_user_opts in
934
 
      *"
935
 
"enable_$ac_useropt"
936
 
"*) ;;
937
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938
 
         ac_unrecognized_sep=', ';;
939
 
    esac
940
 
    eval enable_$ac_useropt=\$ac_optarg ;;
941
 
 
942
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944
 
  | --exec | --exe | --ex)
945
 
    ac_prev=exec_prefix ;;
946
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948
 
  | --exec=* | --exe=* | --ex=*)
949
 
    exec_prefix=$ac_optarg ;;
950
 
 
951
 
  -gas | --gas | --ga | --g)
952
 
    # Obsolete; use --with-gas.
953
 
    with_gas=yes ;;
954
 
 
955
 
  -help | --help | --hel | --he | -h)
956
 
    ac_init_help=long ;;
957
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958
 
    ac_init_help=recursive ;;
959
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960
 
    ac_init_help=short ;;
961
 
 
962
 
  -host | --host | --hos | --ho)
963
 
    ac_prev=host_alias ;;
964
 
  -host=* | --host=* | --hos=* | --ho=*)
965
 
    host_alias=$ac_optarg ;;
966
 
 
967
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968
 
    ac_prev=htmldir ;;
969
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970
 
  | --ht=*)
971
 
    htmldir=$ac_optarg ;;
972
 
 
973
 
  -includedir | --includedir | --includedi | --included | --include \
974
 
  | --includ | --inclu | --incl | --inc)
975
 
    ac_prev=includedir ;;
976
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
978
 
    includedir=$ac_optarg ;;
979
 
 
980
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
981
 
    ac_prev=infodir ;;
982
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983
 
    infodir=$ac_optarg ;;
984
 
 
985
 
  -libdir | --libdir | --libdi | --libd)
986
 
    ac_prev=libdir ;;
987
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
988
 
    libdir=$ac_optarg ;;
989
 
 
990
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991
 
  | --libexe | --libex | --libe)
992
 
    ac_prev=libexecdir ;;
993
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994
 
  | --libexe=* | --libex=* | --libe=*)
995
 
    libexecdir=$ac_optarg ;;
996
 
 
997
 
  -localedir | --localedir | --localedi | --localed | --locale)
998
 
    ac_prev=localedir ;;
999
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000
 
    localedir=$ac_optarg ;;
1001
 
 
1002
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1003
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1004
 
    ac_prev=localstatedir ;;
1005
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007
 
    localstatedir=$ac_optarg ;;
1008
 
 
1009
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010
 
    ac_prev=mandir ;;
1011
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012
 
    mandir=$ac_optarg ;;
1013
 
 
1014
 
  -nfp | --nfp | --nf)
1015
 
    # Obsolete; use --without-fp.
1016
 
    with_fp=no ;;
1017
 
 
1018
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019
 
  | --no-cr | --no-c | -n)
1020
 
    no_create=yes ;;
1021
 
 
1022
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024
 
    no_recursion=yes ;;
1025
 
 
1026
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028
 
  | --oldin | --oldi | --old | --ol | --o)
1029
 
    ac_prev=oldincludedir ;;
1030
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033
 
    oldincludedir=$ac_optarg ;;
1034
 
 
1035
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036
 
    ac_prev=prefix ;;
1037
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038
 
    prefix=$ac_optarg ;;
1039
 
 
1040
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041
 
  | --program-pre | --program-pr | --program-p)
1042
 
    ac_prev=program_prefix ;;
1043
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045
 
    program_prefix=$ac_optarg ;;
1046
 
 
1047
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048
 
  | --program-suf | --program-su | --program-s)
1049
 
    ac_prev=program_suffix ;;
1050
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052
 
    program_suffix=$ac_optarg ;;
1053
 
 
1054
 
  -program-transform-name | --program-transform-name \
1055
 
  | --program-transform-nam | --program-transform-na \
1056
 
  | --program-transform-n | --program-transform- \
1057
 
  | --program-transform | --program-transfor \
1058
 
  | --program-transfo | --program-transf \
1059
 
  | --program-trans | --program-tran \
1060
 
  | --progr-tra | --program-tr | --program-t)
1061
 
    ac_prev=program_transform_name ;;
1062
 
  -program-transform-name=* | --program-transform-name=* \
1063
 
  | --program-transform-nam=* | --program-transform-na=* \
1064
 
  | --program-transform-n=* | --program-transform-=* \
1065
 
  | --program-transform=* | --program-transfor=* \
1066
 
  | --program-transfo=* | --program-transf=* \
1067
 
  | --program-trans=* | --program-tran=* \
1068
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1069
 
    program_transform_name=$ac_optarg ;;
1070
 
 
1071
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072
 
    ac_prev=pdfdir ;;
1073
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074
 
    pdfdir=$ac_optarg ;;
1075
 
 
1076
 
  -psdir | --psdir | --psdi | --psd | --ps)
1077
 
    ac_prev=psdir ;;
1078
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079
 
    psdir=$ac_optarg ;;
1080
 
 
1081
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082
 
  | -silent | --silent | --silen | --sile | --sil)
1083
 
    silent=yes ;;
1084
 
 
1085
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086
 
    ac_prev=sbindir ;;
1087
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088
 
  | --sbi=* | --sb=*)
1089
 
    sbindir=$ac_optarg ;;
1090
 
 
1091
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093
 
  | --sharedst | --shareds | --shared | --share | --shar \
1094
 
  | --sha | --sh)
1095
 
    ac_prev=sharedstatedir ;;
1096
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099
 
  | --sha=* | --sh=*)
1100
 
    sharedstatedir=$ac_optarg ;;
1101
 
 
1102
 
  -site | --site | --sit)
1103
 
    ac_prev=site ;;
1104
 
  -site=* | --site=* | --sit=*)
1105
 
    site=$ac_optarg ;;
1106
 
 
1107
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108
 
    ac_prev=srcdir ;;
1109
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110
 
    srcdir=$ac_optarg ;;
1111
 
 
1112
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1114
 
    ac_prev=sysconfdir ;;
1115
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117
 
    sysconfdir=$ac_optarg ;;
1118
 
 
1119
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1120
 
    ac_prev=target_alias ;;
1121
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122
 
    target_alias=$ac_optarg ;;
1123
 
 
1124
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125
 
    verbose=yes ;;
1126
 
 
1127
 
  -version | --version | --versio | --versi | --vers | -V)
1128
 
    ac_init_version=: ;;
1129
 
 
1130
 
  -with-* | --with-*)
1131
 
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132
 
    # Reject names that are not valid shell variable names.
1133
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134
 
      as_fn_error $? "invalid package name: $ac_useropt"
1135
 
    ac_useropt_orig=$ac_useropt
1136
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137
 
    case $ac_user_opts in
1138
 
      *"
1139
 
"with_$ac_useropt"
1140
 
"*) ;;
1141
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142
 
         ac_unrecognized_sep=', ';;
1143
 
    esac
1144
 
    eval with_$ac_useropt=\$ac_optarg ;;
1145
 
 
1146
 
  -without-* | --without-*)
1147
 
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148
 
    # Reject names that are not valid shell variable names.
1149
 
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150
 
      as_fn_error $? "invalid package name: $ac_useropt"
1151
 
    ac_useropt_orig=$ac_useropt
1152
 
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153
 
    case $ac_user_opts in
1154
 
      *"
1155
 
"with_$ac_useropt"
1156
 
"*) ;;
1157
 
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158
 
         ac_unrecognized_sep=', ';;
1159
 
    esac
1160
 
    eval with_$ac_useropt=no ;;
1161
 
 
1162
 
  --x)
1163
 
    # Obsolete; use --with-x.
1164
 
    with_x=yes ;;
1165
 
 
1166
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167
 
  | --x-incl | --x-inc | --x-in | --x-i)
1168
 
    ac_prev=x_includes ;;
1169
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171
 
    x_includes=$ac_optarg ;;
1172
 
 
1173
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175
 
    ac_prev=x_libraries ;;
1176
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178
 
    x_libraries=$ac_optarg ;;
1179
 
 
1180
 
  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181
 
Try \`$0 --help' for more information"
1182
 
    ;;
1183
 
 
1184
 
  *=*)
1185
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186
 
    # Reject names that are not valid shell variable names.
1187
 
    case $ac_envvar in #(
1188
 
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189
 
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190
 
    esac
1191
 
    eval $ac_envvar=\$ac_optarg
1192
 
    export $ac_envvar ;;
1193
 
 
1194
 
  *)
1195
 
    # FIXME: should be removed in autoconf 3.0.
1196
 
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198
 
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199
 
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200
 
    ;;
1201
 
 
1202
 
  esac
1203
 
done
1204
 
 
1205
 
if test -n "$ac_prev"; then
1206
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207
 
  as_fn_error $? "missing argument to $ac_option"
1208
 
fi
1209
 
 
1210
 
if test -n "$ac_unrecognized_opts"; then
1211
 
  case $enable_option_checking in
1212
 
    no) ;;
1213
 
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214
 
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215
 
  esac
1216
 
fi
1217
 
 
1218
 
# Check all directory arguments for consistency.
1219
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1221
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222
 
                libdir localedir mandir
1223
 
do
1224
 
  eval ac_val=\$$ac_var
1225
 
  # Remove trailing slashes.
1226
 
  case $ac_val in
1227
 
    */ )
1228
 
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229
 
      eval $ac_var=\$ac_val;;
1230
 
  esac
1231
 
  # Be sure to have absolute directory names.
1232
 
  case $ac_val in
1233
 
    [\\/$]* | ?:[\\/]* )  continue;;
1234
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235
 
  esac
1236
 
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237
 
done
1238
 
 
1239
 
# There might be people who depend on the old broken behavior: `$host'
1240
 
# used to hold the argument of --host etc.
1241
 
# FIXME: To remove some day.
1242
 
build=$build_alias
1243
 
host=$host_alias
1244
 
target=$target_alias
1245
 
 
1246
 
# FIXME: To remove some day.
1247
 
if test "x$host_alias" != x; then
1248
 
  if test "x$build_alias" = x; then
1249
 
    cross_compiling=maybe
1250
 
  elif test "x$build_alias" != "x$host_alias"; then
1251
 
    cross_compiling=yes
1252
 
  fi
1253
 
fi
1254
 
 
1255
 
ac_tool_prefix=
1256
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
 
 
1258
 
test "$silent" = yes && exec 6>/dev/null
1259
 
 
1260
 
 
1261
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262
 
ac_ls_di=`ls -di .` &&
1263
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264
 
  as_fn_error $? "working directory cannot be determined"
1265
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266
 
  as_fn_error $? "pwd does not report name of working directory"
1267
 
 
1268
 
 
1269
 
# Find the source files, if location was not specified.
1270
 
if test -z "$srcdir"; then
1271
 
  ac_srcdir_defaulted=yes
1272
 
  # Try the directory containing this script, then the parent directory.
1273
 
  ac_confdir=`$as_dirname -- "$as_myself" ||
1274
 
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275
 
         X"$as_myself" : 'X\(//\)[^/]' \| \
1276
 
         X"$as_myself" : 'X\(//\)$' \| \
1277
 
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278
 
$as_echo X"$as_myself" |
1279
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280
 
            s//\1/
1281
 
            q
1282
 
          }
1283
 
          /^X\(\/\/\)[^/].*/{
1284
 
            s//\1/
1285
 
            q
1286
 
          }
1287
 
          /^X\(\/\/\)$/{
1288
 
            s//\1/
1289
 
            q
1290
 
          }
1291
 
          /^X\(\/\).*/{
1292
 
            s//\1/
1293
 
            q
1294
 
          }
1295
 
          s/.*/./; q'`
1296
 
  srcdir=$ac_confdir
1297
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1298
 
    srcdir=..
1299
 
  fi
1300
 
else
1301
 
  ac_srcdir_defaulted=no
1302
 
fi
1303
 
if test ! -r "$srcdir/$ac_unique_file"; then
1304
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305
 
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306
 
fi
1307
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308
 
ac_abs_confdir=`(
1309
 
        cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310
 
        pwd)`
1311
 
# When building in place, set srcdir=.
1312
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1313
 
  srcdir=.
1314
 
fi
1315
 
# Remove unnecessary trailing slashes from srcdir.
1316
 
# Double slashes in file names in object file debugging info
1317
 
# mess up M-x gdb in Emacs.
1318
 
case $srcdir in
1319
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320
 
esac
1321
 
for ac_var in $ac_precious_vars; do
1322
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1324
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326
 
done
1327
 
 
1328
 
#
1329
 
# Report the --help message.
1330
 
#
1331
 
if test "$ac_init_help" = "long"; then
1332
 
  # Omit some internal or obsolete options to make the list less imposing.
1333
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1334
 
  cat <<_ACEOF
1335
 
\`configure' configures pjproject 2.x to adapt to many kinds of systems.
1336
 
 
1337
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1338
 
 
1339
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
 
 
1342
 
Defaults for the options are specified in brackets.
1343
 
 
1344
 
Configuration:
1345
 
  -h, --help              display this help and exit
1346
 
      --help=short        display options specific to this package
1347
 
      --help=recursive    display the short help of all the included packages
1348
 
  -V, --version           display version information and exit
1349
 
  -q, --quiet, --silent   do not print \`checking ...' messages
1350
 
      --cache-file=FILE   cache test results in FILE [disabled]
1351
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1352
 
  -n, --no-create         do not create output files
1353
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
 
 
1355
 
Installation directories:
1356
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1357
 
                          [$ac_default_prefix]
1358
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359
 
                          [PREFIX]
1360
 
 
1361
 
By default, \`make install' will install all the files in
1362
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364
 
for instance \`--prefix=\$HOME'.
1365
 
 
1366
 
For better control, use the options below.
1367
 
 
1368
 
Fine tuning of the installation directories:
1369
 
  --bindir=DIR            user executables [EPREFIX/bin]
1370
 
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371
 
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372
 
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373
 
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374
 
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375
 
  --libdir=DIR            object code libraries [EPREFIX/lib]
1376
 
  --includedir=DIR        C header files [PREFIX/include]
1377
 
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378
 
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379
 
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380
 
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1381
 
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382
 
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1383
 
  --docdir=DIR            documentation root [DATAROOTDIR/doc/pjproject]
1384
 
  --htmldir=DIR           html documentation [DOCDIR]
1385
 
  --dvidir=DIR            dvi documentation [DOCDIR]
1386
 
  --pdfdir=DIR            pdf documentation [DOCDIR]
1387
 
  --psdir=DIR             ps documentation [DOCDIR]
1388
 
_ACEOF
1389
 
 
1390
 
  cat <<\_ACEOF
1391
 
 
1392
 
System types:
1393
 
  --build=BUILD     configure for building on BUILD [guessed]
1394
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1396
 
_ACEOF
1397
 
fi
1398
 
 
1399
 
if test -n "$ac_init_help"; then
1400
 
  case $ac_init_help in
1401
 
     short | recursive ) echo "Configuration of pjproject 2.x:";;
1402
 
   esac
1403
 
  cat <<\_ACEOF
1404
 
 
1405
 
Optional Features:
1406
 
  --disable-option-checking  ignore unrecognized --enable/--with options
1407
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409
 
  --disable-floating-point
1410
 
                          Disable floating point where possible
1411
 
  --enable-epoll          Use /dev/epoll ioqueue on Linux (experimental)
1412
 
  --disable-sound         Exclude sound (i.e. use null sound)
1413
 
  --disable-oss           Disable OSS audio (default: not disabled)
1414
 
  --disable-video         Disable video feature
1415
 
  --enable-ext-sound      PJMEDIA will not provide any sound device backend
1416
 
  --disable-small-filter  Exclude small filter in resampling
1417
 
  --disable-large-filter  Exclude large filter in resampling
1418
 
  --disable-speex-aec     Exclude Speex Acoustic Echo Canceller/AEC
1419
 
  --disable-g711-codec    Exclude G.711 codecs from the build
1420
 
  --disable-l16-codec     Exclude Linear/L16 codec family from the build
1421
 
  --disable-gsm-codec     Exclude GSM codec in the build
1422
 
  --disable-g722-codec    Exclude G.722 codec in the build
1423
 
  --disable-g7221-codec   Exclude G.7221 codec in the build
1424
 
  --disable-speex-codec   Exclude Speex codecs in the build
1425
 
  --disable-ilbc-codec    Exclude iLBC codec in the build
1426
 
  --enable-libsamplerate  Link with libsamplerate when available. Note that
1427
 
                          PJMEDIA_RESAMPLE_IMP must also be configured
1428
 
  --enable-resample-dll   Build libresample as shared library
1429
 
  --disable-sdl           Disable SDL (default: not disabled)
1430
 
  --disable-ffmpeg        Disable ffmpeg (default: not disabled)
1431
 
  --disable-v4l2          Disable Video4Linux2 (default: not disabled)
1432
 
  --enable-ipp            Enable Intel IPP support. Specify the Intel IPP
1433
 
                          package and samples location using IPPROOT and
1434
 
                          IPPSAMPLES env var or with --with-ipp and
1435
 
                          --with-ipp-samples options
1436
 
  --disable-ssl           Exclude SSL support the build (default: autodetect)
1437
 
 
1438
 
  --disable-opencore-amrnb
1439
 
                          Exclude OpenCORE AMR-NB support from the build
1440
 
                          (default: autodetect)
1441
 
 
1442
 
 
1443
 
Optional Packages:
1444
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1445
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1446
 
  --with-external-speex   Use external Speex development files, not the one in
1447
 
                          "third_party" directory. When this option is set,
1448
 
                          make sure that Speex is accessible to use (hint: use
1449
 
                          CFLAGS and LDFLAGS env var to set the include/lib
1450
 
                          paths)
1451
 
  --with-external-gsm     Use external GSM codec library, not the one in
1452
 
                          "third_party" directory. When this option is set,
1453
 
                          make sure that the GSM include/lib files are
1454
 
                          accessible to use (hint: use CFLAGS and LDFLAGS env
1455
 
                          var to set the include/lib paths)
1456
 
  --with-external-pa      Use external PortAudio development files, not the
1457
 
                          one in "third_party" directory. When this option is
1458
 
                          set, make sure that PortAudio is accessible to use
1459
 
                          (hint: use CFLAGS and LDFLAGS env var to set the
1460
 
                          include/lib paths)
1461
 
  --with-sdl=DIR          Specify alternate libSDL prefix
1462
 
  --with-ffmpeg=DIR       Specify alternate FFMPEG prefix
1463
 
  --with-ipp=DIR          Specify the Intel IPP location
1464
 
  --with-ipp-samples=DIR  Specify the Intel IPP samples location
1465
 
  --with-ipp-arch=ARCH    Specify the Intel IPP ARCH suffix, e.g. "64" or
1466
 
                          "em64t. Default is blank for IA32"
1467
 
  --with-ssl=DIR          Specify alternate libssl prefix
1468
 
  --with-opencore-amrnb=DIR
1469
 
                          Specify alternate libopencore-amrnb prefix
1470
 
 
1471
 
Some influential environment variables:
1472
 
  CC          C compiler command
1473
 
  CFLAGS      C compiler flags
1474
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1475
 
              nonstandard directory <lib dir>
1476
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1477
 
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478
 
              you have headers in a nonstandard directory <include dir>
1479
 
  CXX         C++ compiler command
1480
 
  CXXFLAGS    C++ compiler flags
1481
 
  CPP         C preprocessor
1482
 
 
1483
 
Use these variables to override the choices made by `configure' or to help
1484
 
it to find libraries and programs with nonstandard names/locations.
1485
 
 
1486
 
Report bugs to the package provider.
1487
 
_ACEOF
1488
 
ac_status=$?
1489
 
fi
1490
 
 
1491
 
if test "$ac_init_help" = "recursive"; then
1492
 
  # If there are subdirs, report their specific --help.
1493
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494
 
    test -d "$ac_dir" ||
1495
 
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496
 
      continue
1497
 
    ac_builddir=.
1498
 
 
1499
 
case "$ac_dir" in
1500
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501
 
*)
1502
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503
 
  # A ".." for each directory in $ac_dir_suffix.
1504
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505
 
  case $ac_top_builddir_sub in
1506
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508
 
  esac ;;
1509
 
esac
1510
 
ac_abs_top_builddir=$ac_pwd
1511
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512
 
# for backward compatibility:
1513
 
ac_top_builddir=$ac_top_build_prefix
1514
 
 
1515
 
case $srcdir in
1516
 
  .)  # We are building in place.
1517
 
    ac_srcdir=.
1518
 
    ac_top_srcdir=$ac_top_builddir_sub
1519
 
    ac_abs_top_srcdir=$ac_pwd ;;
1520
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1521
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1522
 
    ac_top_srcdir=$srcdir
1523
 
    ac_abs_top_srcdir=$srcdir ;;
1524
 
  *) # Relative name.
1525
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528
 
esac
1529
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
 
 
1531
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1532
 
    # Check for guested configure.
1533
 
    if test -f "$ac_srcdir/configure.gnu"; then
1534
 
      echo &&
1535
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536
 
    elif test -f "$ac_srcdir/configure"; then
1537
 
      echo &&
1538
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1539
 
    else
1540
 
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541
 
    fi || ac_status=$?
1542
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1543
 
  done
1544
 
fi
1545
 
 
1546
 
test -n "$ac_init_help" && exit $ac_status
1547
 
if $ac_init_version; then
1548
 
  cat <<\_ACEOF
1549
 
pjproject configure 2.x
1550
 
generated by GNU Autoconf 2.69
1551
 
 
1552
 
Copyright (C) 2012 Free Software Foundation, Inc.
1553
 
This configure script is free software; the Free Software Foundation
1554
 
gives unlimited permission to copy, distribute and modify it.
1555
 
_ACEOF
1556
 
  exit
1557
 
fi
1558
 
 
1559
 
## ------------------------ ##
1560
 
## Autoconf initialization. ##
1561
 
## ------------------------ ##
1562
 
 
1563
 
# ac_fn_c_try_compile LINENO
1564
 
# --------------------------
1565
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566
 
ac_fn_c_try_compile ()
1567
 
{
1568
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569
 
  rm -f conftest.$ac_objext
1570
 
  if { { ac_try="$ac_compile"
1571
 
case "(($ac_try" in
1572
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573
 
  *) ac_try_echo=$ac_try;;
1574
 
esac
1575
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576
 
$as_echo "$ac_try_echo"; } >&5
1577
 
  (eval "$ac_compile") 2>conftest.err
1578
 
  ac_status=$?
1579
 
  if test -s conftest.err; then
1580
 
    grep -v '^ *+' conftest.err >conftest.er1
1581
 
    cat conftest.er1 >&5
1582
 
    mv -f conftest.er1 conftest.err
1583
 
  fi
1584
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585
 
  test $ac_status = 0; } && {
1586
 
         test -z "$ac_c_werror_flag" ||
1587
 
         test ! -s conftest.err
1588
 
       } && test -s conftest.$ac_objext; then :
1589
 
  ac_retval=0
1590
 
else
1591
 
  $as_echo "$as_me: failed program was:" >&5
1592
 
sed 's/^/| /' conftest.$ac_ext >&5
1593
 
 
1594
 
        ac_retval=1
1595
 
fi
1596
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597
 
  as_fn_set_status $ac_retval
1598
 
 
1599
 
} # ac_fn_c_try_compile
1600
 
 
1601
 
# ac_fn_cxx_try_compile LINENO
1602
 
# ----------------------------
1603
 
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1604
 
ac_fn_cxx_try_compile ()
1605
 
{
1606
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607
 
  rm -f conftest.$ac_objext
1608
 
  if { { ac_try="$ac_compile"
1609
 
case "(($ac_try" in
1610
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611
 
  *) ac_try_echo=$ac_try;;
1612
 
esac
1613
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614
 
$as_echo "$ac_try_echo"; } >&5
1615
 
  (eval "$ac_compile") 2>conftest.err
1616
 
  ac_status=$?
1617
 
  if test -s conftest.err; then
1618
 
    grep -v '^ *+' conftest.err >conftest.er1
1619
 
    cat conftest.er1 >&5
1620
 
    mv -f conftest.er1 conftest.err
1621
 
  fi
1622
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623
 
  test $ac_status = 0; } && {
1624
 
         test -z "$ac_cxx_werror_flag" ||
1625
 
         test ! -s conftest.err
1626
 
       } && test -s conftest.$ac_objext; then :
1627
 
  ac_retval=0
1628
 
else
1629
 
  $as_echo "$as_me: failed program was:" >&5
1630
 
sed 's/^/| /' conftest.$ac_ext >&5
1631
 
 
1632
 
        ac_retval=1
1633
 
fi
1634
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635
 
  as_fn_set_status $ac_retval
1636
 
 
1637
 
} # ac_fn_cxx_try_compile
1638
 
 
1639
 
# ac_fn_c_try_link LINENO
1640
 
# -----------------------
1641
 
# Try to link conftest.$ac_ext, and return whether this succeeded.
1642
 
ac_fn_c_try_link ()
1643
 
{
1644
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645
 
  rm -f conftest.$ac_objext conftest$ac_exeext
1646
 
  if { { ac_try="$ac_link"
1647
 
case "(($ac_try" in
1648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649
 
  *) ac_try_echo=$ac_try;;
1650
 
esac
1651
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652
 
$as_echo "$ac_try_echo"; } >&5
1653
 
  (eval "$ac_link") 2>conftest.err
1654
 
  ac_status=$?
1655
 
  if test -s conftest.err; then
1656
 
    grep -v '^ *+' conftest.err >conftest.er1
1657
 
    cat conftest.er1 >&5
1658
 
    mv -f conftest.er1 conftest.err
1659
 
  fi
1660
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661
 
  test $ac_status = 0; } && {
1662
 
         test -z "$ac_c_werror_flag" ||
1663
 
         test ! -s conftest.err
1664
 
       } && test -s conftest$ac_exeext && {
1665
 
         test "$cross_compiling" = yes ||
1666
 
         test -x conftest$ac_exeext
1667
 
       }; then :
1668
 
  ac_retval=0
1669
 
else
1670
 
  $as_echo "$as_me: failed program was:" >&5
1671
 
sed 's/^/| /' conftest.$ac_ext >&5
1672
 
 
1673
 
        ac_retval=1
1674
 
fi
1675
 
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1676
 
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1677
 
  # interfere with the next link command; also delete a directory that is
1678
 
  # left behind by Apple's compiler.  We do this before executing the actions.
1679
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681
 
  as_fn_set_status $ac_retval
1682
 
 
1683
 
} # ac_fn_c_try_link
1684
 
 
1685
 
# ac_fn_c_try_run LINENO
1686
 
# ----------------------
1687
 
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688
 
# that executables *can* be run.
1689
 
ac_fn_c_try_run ()
1690
 
{
1691
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692
 
  if { { ac_try="$ac_link"
1693
 
case "(($ac_try" in
1694
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695
 
  *) ac_try_echo=$ac_try;;
1696
 
esac
1697
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698
 
$as_echo "$ac_try_echo"; } >&5
1699
 
  (eval "$ac_link") 2>&5
1700
 
  ac_status=$?
1701
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702
 
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703
 
  { { case "(($ac_try" in
1704
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705
 
  *) ac_try_echo=$ac_try;;
1706
 
esac
1707
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708
 
$as_echo "$ac_try_echo"; } >&5
1709
 
  (eval "$ac_try") 2>&5
1710
 
  ac_status=$?
1711
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712
 
  test $ac_status = 0; }; }; then :
1713
 
  ac_retval=0
1714
 
else
1715
 
  $as_echo "$as_me: program exited with status $ac_status" >&5
1716
 
       $as_echo "$as_me: failed program was:" >&5
1717
 
sed 's/^/| /' conftest.$ac_ext >&5
1718
 
 
1719
 
       ac_retval=$ac_status
1720
 
fi
1721
 
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
 
  as_fn_set_status $ac_retval
1724
 
 
1725
 
} # ac_fn_c_try_run
1726
 
 
1727
 
# ac_fn_c_try_cpp LINENO
1728
 
# ----------------------
1729
 
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730
 
ac_fn_c_try_cpp ()
1731
 
{
1732
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733
 
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1734
 
case "(($ac_try" in
1735
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736
 
  *) ac_try_echo=$ac_try;;
1737
 
esac
1738
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739
 
$as_echo "$ac_try_echo"; } >&5
1740
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741
 
  ac_status=$?
1742
 
  if test -s conftest.err; then
1743
 
    grep -v '^ *+' conftest.err >conftest.er1
1744
 
    cat conftest.er1 >&5
1745
 
    mv -f conftest.er1 conftest.err
1746
 
  fi
1747
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748
 
  test $ac_status = 0; } > conftest.i && {
1749
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750
 
         test ! -s conftest.err
1751
 
       }; then :
1752
 
  ac_retval=0
1753
 
else
1754
 
  $as_echo "$as_me: failed program was:" >&5
1755
 
sed 's/^/| /' conftest.$ac_ext >&5
1756
 
 
1757
 
    ac_retval=1
1758
 
fi
1759
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
 
  as_fn_set_status $ac_retval
1761
 
 
1762
 
} # ac_fn_c_try_cpp
1763
 
 
1764
 
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765
 
# -------------------------------------------------------
1766
 
# Tests whether HEADER exists and can be compiled using the include files in
1767
 
# INCLUDES, setting the cache variable VAR accordingly.
1768
 
ac_fn_c_check_header_compile ()
1769
 
{
1770
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772
 
$as_echo_n "checking for $2... " >&6; }
1773
 
if eval \${$3+:} false; then :
1774
 
  $as_echo_n "(cached) " >&6
1775
 
else
1776
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777
 
/* end confdefs.h.  */
1778
 
$4
1779
 
#include <$2>
1780
 
_ACEOF
1781
 
if ac_fn_c_try_compile "$LINENO"; then :
1782
 
  eval "$3=yes"
1783
 
else
1784
 
  eval "$3=no"
1785
 
fi
1786
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787
 
fi
1788
 
eval ac_res=\$$3
1789
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790
 
$as_echo "$ac_res" >&6; }
1791
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
 
 
1793
 
} # ac_fn_c_check_header_compile
1794
 
 
1795
 
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796
 
# -------------------------------------------------------
1797
 
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798
 
# the include files in INCLUDES and setting the cache variable VAR
1799
 
# accordingly.
1800
 
ac_fn_c_check_header_mongrel ()
1801
 
{
1802
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803
 
  if eval \${$3+:} false; then :
1804
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805
 
$as_echo_n "checking for $2... " >&6; }
1806
 
if eval \${$3+:} false; then :
1807
 
  $as_echo_n "(cached) " >&6
1808
 
fi
1809
 
eval ac_res=\$$3
1810
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811
 
$as_echo "$ac_res" >&6; }
1812
 
else
1813
 
  # Is the header compilable?
1814
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815
 
$as_echo_n "checking $2 usability... " >&6; }
1816
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817
 
/* end confdefs.h.  */
1818
 
$4
1819
 
#include <$2>
1820
 
_ACEOF
1821
 
if ac_fn_c_try_compile "$LINENO"; then :
1822
 
  ac_header_compiler=yes
1823
 
else
1824
 
  ac_header_compiler=no
1825
 
fi
1826
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828
 
$as_echo "$ac_header_compiler" >&6; }
1829
 
 
1830
 
# Is the header present?
1831
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832
 
$as_echo_n "checking $2 presence... " >&6; }
1833
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834
 
/* end confdefs.h.  */
1835
 
#include <$2>
1836
 
_ACEOF
1837
 
if ac_fn_c_try_cpp "$LINENO"; then :
1838
 
  ac_header_preproc=yes
1839
 
else
1840
 
  ac_header_preproc=no
1841
 
fi
1842
 
rm -f conftest.err conftest.i conftest.$ac_ext
1843
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844
 
$as_echo "$ac_header_preproc" >&6; }
1845
 
 
1846
 
# So?  What about this header?
1847
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848
 
  yes:no: )
1849
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850
 
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853
 
    ;;
1854
 
  no:yes:* )
1855
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856
 
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858
 
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860
 
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862
 
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864
 
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865
 
    ;;
1866
 
esac
1867
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868
 
$as_echo_n "checking for $2... " >&6; }
1869
 
if eval \${$3+:} false; then :
1870
 
  $as_echo_n "(cached) " >&6
1871
 
else
1872
 
  eval "$3=\$ac_header_compiler"
1873
 
fi
1874
 
eval ac_res=\$$3
1875
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876
 
$as_echo "$ac_res" >&6; }
1877
 
fi
1878
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
 
 
1880
 
} # ac_fn_c_check_header_mongrel
1881
 
 
1882
 
# ac_fn_c_check_func LINENO FUNC VAR
1883
 
# ----------------------------------
1884
 
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885
 
ac_fn_c_check_func ()
1886
 
{
1887
 
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889
 
$as_echo_n "checking for $2... " >&6; }
1890
 
if eval \${$3+:} false; then :
1891
 
  $as_echo_n "(cached) " >&6
1892
 
else
1893
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894
 
/* end confdefs.h.  */
1895
 
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1897
 
#define $2 innocuous_$2
1898
 
 
1899
 
/* System header to define __stub macros and hopefully few prototypes,
1900
 
    which can conflict with char $2 (); below.
1901
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902
 
    <limits.h> exists even on freestanding compilers.  */
1903
 
 
1904
 
#ifdef __STDC__
1905
 
# include <limits.h>
1906
 
#else
1907
 
# include <assert.h>
1908
 
#endif
1909
 
 
1910
 
#undef $2
1911
 
 
1912
 
/* Override any GCC internal prototype to avoid an error.
1913
 
   Use char because int might match the return type of a GCC
1914
 
   builtin and then its argument prototype would still apply.  */
1915
 
#ifdef __cplusplus
1916
 
extern "C"
1917
 
#endif
1918
 
char $2 ();
1919
 
/* The GNU C library defines this for functions which it implements
1920
 
    to always fail with ENOSYS.  Some functions are actually named
1921
 
    something starting with __ and the normal name is an alias.  */
1922
 
#if defined __stub_$2 || defined __stub___$2
1923
 
choke me
1924
 
#endif
1925
 
 
1926
 
int
1927
 
main ()
1928
 
{
1929
 
return $2 ();
1930
 
  ;
1931
 
  return 0;
1932
 
}
1933
 
_ACEOF
1934
 
if ac_fn_c_try_link "$LINENO"; then :
1935
 
  eval "$3=yes"
1936
 
else
1937
 
  eval "$3=no"
1938
 
fi
1939
 
rm -f core conftest.err conftest.$ac_objext \
1940
 
    conftest$ac_exeext conftest.$ac_ext
1941
 
fi
1942
 
eval ac_res=\$$3
1943
 
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944
 
$as_echo "$ac_res" >&6; }
1945
 
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
 
 
1947
 
} # ac_fn_c_check_func
1948
 
cat >config.log <<_ACEOF
1949
 
This file contains any messages produced by compilers while
1950
 
running configure, to aid debugging if configure makes a mistake.
1951
 
 
1952
 
It was created by pjproject $as_me 2.x, which was
1953
 
generated by GNU Autoconf 2.69.  Invocation command line was
1954
 
 
1955
 
  $ $0 $@
1956
 
 
1957
 
_ACEOF
1958
 
exec 5>>config.log
1959
 
{
1960
 
cat <<_ASUNAME
1961
 
## --------- ##
1962
 
## Platform. ##
1963
 
## --------- ##
1964
 
 
1965
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1966
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1967
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1968
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1969
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1970
 
 
1971
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1972
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1973
 
 
1974
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1975
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1976
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1977
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1978
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1979
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1980
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1981
 
 
1982
 
_ASUNAME
1983
 
 
1984
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985
 
for as_dir in $PATH
1986
 
do
1987
 
  IFS=$as_save_IFS
1988
 
  test -z "$as_dir" && as_dir=.
1989
 
    $as_echo "PATH: $as_dir"
1990
 
  done
1991
 
IFS=$as_save_IFS
1992
 
 
1993
 
} >&5
1994
 
 
1995
 
cat >&5 <<_ACEOF
1996
 
 
1997
 
 
1998
 
## ----------- ##
1999
 
## Core tests. ##
2000
 
## ----------- ##
2001
 
 
2002
 
_ACEOF
2003
 
 
2004
 
 
2005
 
# Keep a trace of the command line.
2006
 
# Strip out --no-create and --no-recursion so they do not pile up.
2007
 
# Strip out --silent because we don't want to record it for future runs.
2008
 
# Also quote any args containing shell meta-characters.
2009
 
# Make two passes to allow for proper duplicate-argument suppression.
2010
 
ac_configure_args=
2011
 
ac_configure_args0=
2012
 
ac_configure_args1=
2013
 
ac_must_keep_next=false
2014
 
for ac_pass in 1 2
2015
 
do
2016
 
  for ac_arg
2017
 
  do
2018
 
    case $ac_arg in
2019
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2020
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2021
 
    | -silent | --silent | --silen | --sile | --sil)
2022
 
      continue ;;
2023
 
    *\'*)
2024
 
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2025
 
    esac
2026
 
    case $ac_pass in
2027
 
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2028
 
    2)
2029
 
      as_fn_append ac_configure_args1 " '$ac_arg'"
2030
 
      if test $ac_must_keep_next = true; then
2031
 
        ac_must_keep_next=false # Got value, back to normal.
2032
 
      else
2033
 
        case $ac_arg in
2034
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
2035
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2036
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2037
 
          | -with-* | --with-* | -without-* | --without-* | --x)
2038
 
            case "$ac_configure_args0 " in
2039
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2040
 
            esac
2041
 
            ;;
2042
 
          -* ) ac_must_keep_next=true ;;
2043
 
        esac
2044
 
      fi
2045
 
      as_fn_append ac_configure_args " '$ac_arg'"
2046
 
      ;;
2047
 
    esac
2048
 
  done
2049
 
done
2050
 
{ ac_configure_args0=; unset ac_configure_args0;}
2051
 
{ ac_configure_args1=; unset ac_configure_args1;}
2052
 
 
2053
 
# When interrupted or exit'd, cleanup temporary files, and complete
2054
 
# config.log.  We remove comments because anyway the quotes in there
2055
 
# would cause problems or look ugly.
2056
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
2057
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2058
 
trap 'exit_status=$?
2059
 
  # Save into config.log some information that might help in debugging.
2060
 
  {
2061
 
    echo
2062
 
 
2063
 
    $as_echo "## ---------------- ##
2064
 
## Cache variables. ##
2065
 
## ---------------- ##"
2066
 
    echo
2067
 
    # The following way of writing the cache mishandles newlines in values,
2068
 
(
2069
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2070
 
    eval ac_val=\$$ac_var
2071
 
    case $ac_val in #(
2072
 
    *${as_nl}*)
2073
 
      case $ac_var in #(
2074
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2075
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2076
 
      esac
2077
 
      case $ac_var in #(
2078
 
      _ | IFS | as_nl) ;; #(
2079
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2080
 
      *) { eval $ac_var=; unset $ac_var;} ;;
2081
 
      esac ;;
2082
 
    esac
2083
 
  done
2084
 
  (set) 2>&1 |
2085
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2086
 
    *${as_nl}ac_space=\ *)
2087
 
      sed -n \
2088
 
        "s/'\''/'\''\\\\'\'''\''/g;
2089
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2090
 
      ;; #(
2091
 
    *)
2092
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2093
 
      ;;
2094
 
    esac |
2095
 
    sort
2096
 
)
2097
 
    echo
2098
 
 
2099
 
    $as_echo "## ----------------- ##
2100
 
## Output variables. ##
2101
 
## ----------------- ##"
2102
 
    echo
2103
 
    for ac_var in $ac_subst_vars
2104
 
    do
2105
 
      eval ac_val=\$$ac_var
2106
 
      case $ac_val in
2107
 
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108
 
      esac
2109
 
      $as_echo "$ac_var='\''$ac_val'\''"
2110
 
    done | sort
2111
 
    echo
2112
 
 
2113
 
    if test -n "$ac_subst_files"; then
2114
 
      $as_echo "## ------------------- ##
2115
 
## File substitutions. ##
2116
 
## ------------------- ##"
2117
 
      echo
2118
 
      for ac_var in $ac_subst_files
2119
 
      do
2120
 
        eval ac_val=\$$ac_var
2121
 
        case $ac_val in
2122
 
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2123
 
        esac
2124
 
        $as_echo "$ac_var='\''$ac_val'\''"
2125
 
      done | sort
2126
 
      echo
2127
 
    fi
2128
 
 
2129
 
    if test -s confdefs.h; then
2130
 
      $as_echo "## ----------- ##
2131
 
## confdefs.h. ##
2132
 
## ----------- ##"
2133
 
      echo
2134
 
      cat confdefs.h
2135
 
      echo
2136
 
    fi
2137
 
    test "$ac_signal" != 0 &&
2138
 
      $as_echo "$as_me: caught signal $ac_signal"
2139
 
    $as_echo "$as_me: exit $exit_status"
2140
 
  } >&5
2141
 
  rm -f core *.core core.conftest.* &&
2142
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143
 
    exit $exit_status
2144
 
' 0
2145
 
for ac_signal in 1 2 13 15; do
2146
 
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147
 
done
2148
 
ac_signal=0
2149
 
 
2150
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2151
 
rm -f -r conftest* confdefs.h
2152
 
 
2153
 
$as_echo "/* confdefs.h */" > confdefs.h
2154
 
 
2155
 
# Predefined preprocessor variables.
2156
 
 
2157
 
cat >>confdefs.h <<_ACEOF
2158
 
#define PACKAGE_NAME "$PACKAGE_NAME"
2159
 
_ACEOF
2160
 
 
2161
 
cat >>confdefs.h <<_ACEOF
2162
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163
 
_ACEOF
2164
 
 
2165
 
cat >>confdefs.h <<_ACEOF
2166
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2167
 
_ACEOF
2168
 
 
2169
 
cat >>confdefs.h <<_ACEOF
2170
 
#define PACKAGE_STRING "$PACKAGE_STRING"
2171
 
_ACEOF
2172
 
 
2173
 
cat >>confdefs.h <<_ACEOF
2174
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175
 
_ACEOF
2176
 
 
2177
 
cat >>confdefs.h <<_ACEOF
2178
 
#define PACKAGE_URL "$PACKAGE_URL"
2179
 
_ACEOF
2180
 
 
2181
 
 
2182
 
# Let the site file select an alternate cache file if it wants to.
2183
 
# Prefer an explicitly selected file to automatically selected ones.
2184
 
ac_site_file1=NONE
2185
 
ac_site_file2=NONE
2186
 
if test -n "$CONFIG_SITE"; then
2187
 
  # We do not want a PATH search for config.site.
2188
 
  case $CONFIG_SITE in #((
2189
 
    -*)  ac_site_file1=./$CONFIG_SITE;;
2190
 
    */*) ac_site_file1=$CONFIG_SITE;;
2191
 
    *)   ac_site_file1=./$CONFIG_SITE;;
2192
 
  esac
2193
 
elif test "x$prefix" != xNONE; then
2194
 
  ac_site_file1=$prefix/share/config.site
2195
 
  ac_site_file2=$prefix/etc/config.site
2196
 
else
2197
 
  ac_site_file1=$ac_default_prefix/share/config.site
2198
 
  ac_site_file2=$ac_default_prefix/etc/config.site
2199
 
fi
2200
 
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2201
 
do
2202
 
  test "x$ac_site_file" = xNONE && continue
2203
 
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2204
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2205
 
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2206
 
    sed 's/^/| /' "$ac_site_file" >&5
2207
 
    . "$ac_site_file" \
2208
 
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2210
 
as_fn_error $? "failed to load site script $ac_site_file
2211
 
See \`config.log' for more details" "$LINENO" 5; }
2212
 
  fi
2213
 
done
2214
 
 
2215
 
if test -r "$cache_file"; then
2216
 
  # Some versions of bash will fail to source /dev/null (special files
2217
 
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2218
 
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2219
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220
 
$as_echo "$as_me: loading cache $cache_file" >&6;}
2221
 
    case $cache_file in
2222
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223
 
      *)                      . "./$cache_file";;
2224
 
    esac
2225
 
  fi
2226
 
else
2227
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228
 
$as_echo "$as_me: creating cache $cache_file" >&6;}
2229
 
  >$cache_file
2230
 
fi
2231
 
 
2232
 
# Check that the precious variables saved in the cache have kept the same
2233
 
# value.
2234
 
ac_cache_corrupted=false
2235
 
for ac_var in $ac_precious_vars; do
2236
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237
 
  eval ac_new_set=\$ac_env_${ac_var}_set
2238
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239
 
  eval ac_new_val=\$ac_env_${ac_var}_value
2240
 
  case $ac_old_set,$ac_new_set in
2241
 
    set,)
2242
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243
 
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244
 
      ac_cache_corrupted=: ;;
2245
 
    ,set)
2246
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247
 
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248
 
      ac_cache_corrupted=: ;;
2249
 
    ,);;
2250
 
    *)
2251
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
2252
 
        # differences in whitespace do not lead to failure.
2253
 
        ac_old_val_w=`echo x $ac_old_val`
2254
 
        ac_new_val_w=`echo x $ac_new_val`
2255
 
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257
 
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258
 
          ac_cache_corrupted=:
2259
 
        else
2260
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261
 
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262
 
          eval $ac_var=\$ac_old_val
2263
 
        fi
2264
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265
 
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266
 
        { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267
 
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268
 
      fi;;
2269
 
  esac
2270
 
  # Pass precious variables to config.status.
2271
 
  if test "$ac_new_set" = set; then
2272
 
    case $ac_new_val in
2273
 
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274
 
    *) ac_arg=$ac_var=$ac_new_val ;;
2275
 
    esac
2276
 
    case " $ac_configure_args " in
2277
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278
 
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279
 
    esac
2280
 
  fi
2281
 
done
2282
 
if $ac_cache_corrupted; then
2283
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286
 
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287
 
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288
 
fi
2289
 
## -------------------- ##
2290
 
## Main body of script. ##
2291
 
## -------------------- ##
2292
 
 
2293
 
ac_ext=c
2294
 
ac_cpp='$CPP $CPPFLAGS'
2295
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
 
 
2299
 
 
2300
 
 
2301
 
host_orig="$host"
2302
 
 
2303
 
ac_aux_dir=
2304
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2305
 
  if test -f "$ac_dir/install-sh"; then
2306
 
    ac_aux_dir=$ac_dir
2307
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2308
 
    break
2309
 
  elif test -f "$ac_dir/install.sh"; then
2310
 
    ac_aux_dir=$ac_dir
2311
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2312
 
    break
2313
 
  elif test -f "$ac_dir/shtool"; then
2314
 
    ac_aux_dir=$ac_dir
2315
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2316
 
    break
2317
 
  fi
2318
 
done
2319
 
if test -z "$ac_aux_dir"; then
2320
 
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2321
 
fi
2322
 
 
2323
 
# These three variables are undocumented and unsupported,
2324
 
# and are intended to be withdrawn in a future Autoconf release.
2325
 
# They can cause serious problems if a builder's source tree is in a directory
2326
 
# whose full name contains unusual characters.
2327
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2328
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2329
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2330
 
 
2331
 
 
2332
 
# Make sure we can run config.sub.
2333
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2334
 
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2335
 
 
2336
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2337
 
$as_echo_n "checking build system type... " >&6; }
2338
 
if ${ac_cv_build+:} false; then :
2339
 
  $as_echo_n "(cached) " >&6
2340
 
else
2341
 
  ac_build_alias=$build_alias
2342
 
test "x$ac_build_alias" = x &&
2343
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344
 
test "x$ac_build_alias" = x &&
2345
 
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2346
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2347
 
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2348
 
 
2349
 
fi
2350
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2351
 
$as_echo "$ac_cv_build" >&6; }
2352
 
case $ac_cv_build in
2353
 
*-*-*) ;;
2354
 
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2355
 
esac
2356
 
build=$ac_cv_build
2357
 
ac_save_IFS=$IFS; IFS='-'
2358
 
set x $ac_cv_build
2359
 
shift
2360
 
build_cpu=$1
2361
 
build_vendor=$2
2362
 
shift; shift
2363
 
# Remember, the first character of IFS is used to create $*,
2364
 
# except with old shells:
2365
 
build_os=$*
2366
 
IFS=$ac_save_IFS
2367
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2368
 
 
2369
 
 
2370
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2371
 
$as_echo_n "checking host system type... " >&6; }
2372
 
if ${ac_cv_host+:} false; then :
2373
 
  $as_echo_n "(cached) " >&6
2374
 
else
2375
 
  if test "x$host_alias" = x; then
2376
 
  ac_cv_host=$ac_cv_build
2377
 
else
2378
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2379
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2380
 
fi
2381
 
 
2382
 
fi
2383
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2384
 
$as_echo "$ac_cv_host" >&6; }
2385
 
case $ac_cv_host in
2386
 
*-*-*) ;;
2387
 
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2388
 
esac
2389
 
host=$ac_cv_host
2390
 
ac_save_IFS=$IFS; IFS='-'
2391
 
set x $ac_cv_host
2392
 
shift
2393
 
host_cpu=$1
2394
 
host_vendor=$2
2395
 
shift; shift
2396
 
# Remember, the first character of IFS is used to create $*,
2397
 
# except with old shells:
2398
 
host_os=$*
2399
 
IFS=$ac_save_IFS
2400
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2401
 
 
2402
 
 
2403
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2404
 
$as_echo_n "checking target system type... " >&6; }
2405
 
if ${ac_cv_target+:} false; then :
2406
 
  $as_echo_n "(cached) " >&6
2407
 
else
2408
 
  if test "x$target_alias" = x; then
2409
 
  ac_cv_target=$ac_cv_host
2410
 
else
2411
 
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2412
 
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2413
 
fi
2414
 
 
2415
 
fi
2416
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2417
 
$as_echo "$ac_cv_target" >&6; }
2418
 
case $ac_cv_target in
2419
 
*-*-*) ;;
2420
 
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2421
 
esac
2422
 
target=$ac_cv_target
2423
 
ac_save_IFS=$IFS; IFS='-'
2424
 
set x $ac_cv_target
2425
 
shift
2426
 
target_cpu=$1
2427
 
target_vendor=$2
2428
 
shift; shift
2429
 
# Remember, the first character of IFS is used to create $*,
2430
 
# except with old shells:
2431
 
target_os=$*
2432
 
IFS=$ac_save_IFS
2433
 
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2434
 
 
2435
 
 
2436
 
# The aliases save the names the user supplied, while $host etc.
2437
 
# will get canonicalized.
2438
 
test -n "$target_alias" &&
2439
 
  test "$program_prefix$program_suffix$program_transform_name" = \
2440
 
    NONENONEs,x,x, &&
2441
 
  program_prefix=${target_alias}-
2442
 
ac_config_headers="$ac_config_headers pjlib/include/pj/compat/os_auto.h pjlib/include/pj/compat/m_auto.h pjmedia/include/pjmedia/config_auto.h pjmedia/include/pjmedia-codec/config_auto.h pjsip/include/pjsip/sip_autoconf.h"
2443
 
 
2444
 
ac_config_files="$ac_config_files build.mak build/os-auto.mak build/cc-auto.mak pjlib/build/os-auto.mak pjlib-util/build/os-auto.mak pjmedia/build/os-auto.mak pjsip/build/os-auto.mak third_party/build/os-auto.mak third_party/build/portaudio/os-auto.mak"
2445
 
 
2446
 
 
2447
 
 
2448
 
if test "$CFLAGS" = ""; then
2449
 
  CFLAGS="-O2"
2450
 
else
2451
 
  CFLAGS="$CFLAGS"
2452
 
fi
2453
 
 
2454
 
CXXFLAGS="$CFLAGS $CXXFLAGS"
2455
 
 
2456
 
ac_ext=c
2457
 
ac_cpp='$CPP $CPPFLAGS'
2458
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
 
if test -n "$ac_tool_prefix"; then
2462
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2463
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2464
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465
 
$as_echo_n "checking for $ac_word... " >&6; }
2466
 
if ${ac_cv_prog_CC+:} false; then :
2467
 
  $as_echo_n "(cached) " >&6
2468
 
else
2469
 
  if test -n "$CC"; then
2470
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2471
 
else
2472
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473
 
for as_dir in $PATH
2474
 
do
2475
 
  IFS=$as_save_IFS
2476
 
  test -z "$as_dir" && as_dir=.
2477
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2478
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2480
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481
 
    break 2
2482
 
  fi
2483
 
done
2484
 
  done
2485
 
IFS=$as_save_IFS
2486
 
 
2487
 
fi
2488
 
fi
2489
 
CC=$ac_cv_prog_CC
2490
 
if test -n "$CC"; then
2491
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492
 
$as_echo "$CC" >&6; }
2493
 
else
2494
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495
 
$as_echo "no" >&6; }
2496
 
fi
2497
 
 
2498
 
 
2499
 
fi
2500
 
if test -z "$ac_cv_prog_CC"; then
2501
 
  ac_ct_CC=$CC
2502
 
  # Extract the first word of "gcc", so it can be a program name with args.
2503
 
set dummy gcc; ac_word=$2
2504
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505
 
$as_echo_n "checking for $ac_word... " >&6; }
2506
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2507
 
  $as_echo_n "(cached) " >&6
2508
 
else
2509
 
  if test -n "$ac_ct_CC"; then
2510
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2511
 
else
2512
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513
 
for as_dir in $PATH
2514
 
do
2515
 
  IFS=$as_save_IFS
2516
 
  test -z "$as_dir" && as_dir=.
2517
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2518
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519
 
    ac_cv_prog_ac_ct_CC="gcc"
2520
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521
 
    break 2
2522
 
  fi
2523
 
done
2524
 
  done
2525
 
IFS=$as_save_IFS
2526
 
 
2527
 
fi
2528
 
fi
2529
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530
 
if test -n "$ac_ct_CC"; then
2531
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2532
 
$as_echo "$ac_ct_CC" >&6; }
2533
 
else
2534
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535
 
$as_echo "no" >&6; }
2536
 
fi
2537
 
 
2538
 
  if test "x$ac_ct_CC" = x; then
2539
 
    CC=""
2540
 
  else
2541
 
    case $cross_compiling:$ac_tool_warned in
2542
 
yes:)
2543
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545
 
ac_tool_warned=yes ;;
2546
 
esac
2547
 
    CC=$ac_ct_CC
2548
 
  fi
2549
 
else
2550
 
  CC="$ac_cv_prog_CC"
2551
 
fi
2552
 
 
2553
 
if test -z "$CC"; then
2554
 
          if test -n "$ac_tool_prefix"; then
2555
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2557
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558
 
$as_echo_n "checking for $ac_word... " >&6; }
2559
 
if ${ac_cv_prog_CC+:} false; then :
2560
 
  $as_echo_n "(cached) " >&6
2561
 
else
2562
 
  if test -n "$CC"; then
2563
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2564
 
else
2565
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566
 
for as_dir in $PATH
2567
 
do
2568
 
  IFS=$as_save_IFS
2569
 
  test -z "$as_dir" && as_dir=.
2570
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2571
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2573
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2574
 
    break 2
2575
 
  fi
2576
 
done
2577
 
  done
2578
 
IFS=$as_save_IFS
2579
 
 
2580
 
fi
2581
 
fi
2582
 
CC=$ac_cv_prog_CC
2583
 
if test -n "$CC"; then
2584
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2585
 
$as_echo "$CC" >&6; }
2586
 
else
2587
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588
 
$as_echo "no" >&6; }
2589
 
fi
2590
 
 
2591
 
 
2592
 
  fi
2593
 
fi
2594
 
if test -z "$CC"; then
2595
 
  # Extract the first word of "cc", so it can be a program name with args.
2596
 
set dummy cc; ac_word=$2
2597
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598
 
$as_echo_n "checking for $ac_word... " >&6; }
2599
 
if ${ac_cv_prog_CC+:} false; then :
2600
 
  $as_echo_n "(cached) " >&6
2601
 
else
2602
 
  if test -n "$CC"; then
2603
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2604
 
else
2605
 
  ac_prog_rejected=no
2606
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607
 
for as_dir in $PATH
2608
 
do
2609
 
  IFS=$as_save_IFS
2610
 
  test -z "$as_dir" && as_dir=.
2611
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2612
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614
 
       ac_prog_rejected=yes
2615
 
       continue
2616
 
     fi
2617
 
    ac_cv_prog_CC="cc"
2618
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619
 
    break 2
2620
 
  fi
2621
 
done
2622
 
  done
2623
 
IFS=$as_save_IFS
2624
 
 
2625
 
if test $ac_prog_rejected = yes; then
2626
 
  # We found a bogon in the path, so make sure we never use it.
2627
 
  set dummy $ac_cv_prog_CC
2628
 
  shift
2629
 
  if test $# != 0; then
2630
 
    # We chose a different compiler from the bogus one.
2631
 
    # However, it has the same basename, so the bogon will be chosen
2632
 
    # first if we set CC to just the basename; use the full file name.
2633
 
    shift
2634
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635
 
  fi
2636
 
fi
2637
 
fi
2638
 
fi
2639
 
CC=$ac_cv_prog_CC
2640
 
if test -n "$CC"; then
2641
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642
 
$as_echo "$CC" >&6; }
2643
 
else
2644
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645
 
$as_echo "no" >&6; }
2646
 
fi
2647
 
 
2648
 
 
2649
 
fi
2650
 
if test -z "$CC"; then
2651
 
  if test -n "$ac_tool_prefix"; then
2652
 
  for ac_prog in cl.exe
2653
 
  do
2654
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657
 
$as_echo_n "checking for $ac_word... " >&6; }
2658
 
if ${ac_cv_prog_CC+:} false; then :
2659
 
  $as_echo_n "(cached) " >&6
2660
 
else
2661
 
  if test -n "$CC"; then
2662
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2663
 
else
2664
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665
 
for as_dir in $PATH
2666
 
do
2667
 
  IFS=$as_save_IFS
2668
 
  test -z "$as_dir" && as_dir=.
2669
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2670
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673
 
    break 2
2674
 
  fi
2675
 
done
2676
 
  done
2677
 
IFS=$as_save_IFS
2678
 
 
2679
 
fi
2680
 
fi
2681
 
CC=$ac_cv_prog_CC
2682
 
if test -n "$CC"; then
2683
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684
 
$as_echo "$CC" >&6; }
2685
 
else
2686
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687
 
$as_echo "no" >&6; }
2688
 
fi
2689
 
 
2690
 
 
2691
 
    test -n "$CC" && break
2692
 
  done
2693
 
fi
2694
 
if test -z "$CC"; then
2695
 
  ac_ct_CC=$CC
2696
 
  for ac_prog in cl.exe
2697
 
do
2698
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2699
 
set dummy $ac_prog; ac_word=$2
2700
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701
 
$as_echo_n "checking for $ac_word... " >&6; }
2702
 
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2703
 
  $as_echo_n "(cached) " >&6
2704
 
else
2705
 
  if test -n "$ac_ct_CC"; then
2706
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707
 
else
2708
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709
 
for as_dir in $PATH
2710
 
do
2711
 
  IFS=$as_save_IFS
2712
 
  test -z "$as_dir" && as_dir=.
2713
 
    for ac_exec_ext in '' $ac_executable_extensions; do
2714
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2716
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717
 
    break 2
2718
 
  fi
2719
 
done
2720
 
  done
2721
 
IFS=$as_save_IFS
2722
 
 
2723
 
fi
2724
 
fi
2725
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726
 
if test -n "$ac_ct_CC"; then
2727
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2728
 
$as_echo "$ac_ct_CC" >&6; }
2729
 
else
2730
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731
 
$as_echo "no" >&6; }
2732
 
fi
2733
 
 
2734
 
 
2735
 
  test -n "$ac_ct_CC" && break
2736
 
done
2737
 
 
2738
 
  if test "x$ac_ct_CC" = x; then
2739
 
    CC=""
2740
 
  else
2741
 
    case $cross_compiling:$ac_tool_warned in
2742
 
yes:)
2743
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745
 
ac_tool_warned=yes ;;
2746
 
esac
2747
 
    CC=$ac_ct_CC
2748
 
  fi
2749
 
fi
2750
 
 
2751
 
fi
2752
 
 
2753
 
 
2754
 
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756
 
as_fn_error $? "no acceptable C compiler found in \$PATH
2757
 
See \`config.log' for more details" "$LINENO" 5; }
2758
 
 
2759
 
# Provide some information about the compiler.
2760
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2761
 
set X $ac_compile
2762
 
ac_compiler=$2
2763
 
for ac_option in --version -v -V -qversion; do
2764
 
  { { ac_try="$ac_compiler $ac_option >&5"
2765
 
case "(($ac_try" in
2766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767
 
  *) ac_try_echo=$ac_try;;
2768
 
esac
2769
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770
 
$as_echo "$ac_try_echo"; } >&5
2771
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2772
 
  ac_status=$?
2773
 
  if test -s conftest.err; then
2774
 
    sed '10a\
2775
 
... rest of stderr output deleted ...
2776
 
         10q' conftest.err >conftest.er1
2777
 
    cat conftest.er1 >&5
2778
 
  fi
2779
 
  rm -f conftest.er1 conftest.err
2780
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781
 
  test $ac_status = 0; }
2782
 
done
2783
 
 
2784
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2785
 
/* end confdefs.h.  */
2786
 
 
2787
 
int
2788
 
main ()
2789
 
{
2790
 
 
2791
 
  ;
2792
 
  return 0;
2793
 
}
2794
 
_ACEOF
2795
 
ac_clean_files_save=$ac_clean_files
2796
 
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797
 
# Try to create an executable without -o first, disregard a.out.
2798
 
# It will help us diagnose broken compilers, and finding out an intuition
2799
 
# of exeext.
2800
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2801
 
$as_echo_n "checking whether the C compiler works... " >&6; }
2802
 
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2803
 
 
2804
 
# The possible output files:
2805
 
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2806
 
 
2807
 
ac_rmfiles=
2808
 
for ac_file in $ac_files
2809
 
do
2810
 
  case $ac_file in
2811
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2812
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813
 
  esac
2814
 
done
2815
 
rm -f $ac_rmfiles
2816
 
 
2817
 
if { { ac_try="$ac_link_default"
2818
 
case "(($ac_try" in
2819
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820
 
  *) ac_try_echo=$ac_try;;
2821
 
esac
2822
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823
 
$as_echo "$ac_try_echo"; } >&5
2824
 
  (eval "$ac_link_default") 2>&5
2825
 
  ac_status=$?
2826
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827
 
  test $ac_status = 0; }; then :
2828
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2831
 
# so that the user can short-circuit this test for compilers unknown to
2832
 
# Autoconf.
2833
 
for ac_file in $ac_files ''
2834
 
do
2835
 
  test -f "$ac_file" || continue
2836
 
  case $ac_file in
2837
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2838
 
        ;;
2839
 
    [ab].out )
2840
 
        # We found the default executable, but exeext='' is most
2841
 
        # certainly right.
2842
 
        break;;
2843
 
    *.* )
2844
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2845
 
        then :; else
2846
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2847
 
        fi
2848
 
        # We set ac_cv_exeext here because the later test for it is not
2849
 
        # safe: cross compilers may not add the suffix if given an `-o'
2850
 
        # argument, so we may need to know it at that point already.
2851
 
        # Even if this section looks crufty: it has the advantage of
2852
 
        # actually working.
2853
 
        break;;
2854
 
    * )
2855
 
        break;;
2856
 
  esac
2857
 
done
2858
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2859
 
 
2860
 
else
2861
 
  ac_file=''
2862
 
fi
2863
 
if test -z "$ac_file"; then :
2864
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865
 
$as_echo "no" >&6; }
2866
 
$as_echo "$as_me: failed program was:" >&5
2867
 
sed 's/^/| /' conftest.$ac_ext >&5
2868
 
 
2869
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871
 
as_fn_error 77 "C compiler cannot create executables
2872
 
See \`config.log' for more details" "$LINENO" 5; }
2873
 
else
2874
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875
 
$as_echo "yes" >&6; }
2876
 
fi
2877
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2878
 
$as_echo_n "checking for C compiler default output file name... " >&6; }
2879
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2880
 
$as_echo "$ac_file" >&6; }
2881
 
ac_exeext=$ac_cv_exeext
2882
 
 
2883
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2884
 
ac_clean_files=$ac_clean_files_save
2885
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2886
 
$as_echo_n "checking for suffix of executables... " >&6; }
2887
 
if { { ac_try="$ac_link"
2888
 
case "(($ac_try" in
2889
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890
 
  *) ac_try_echo=$ac_try;;
2891
 
esac
2892
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893
 
$as_echo "$ac_try_echo"; } >&5
2894
 
  (eval "$ac_link") 2>&5
2895
 
  ac_status=$?
2896
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897
 
  test $ac_status = 0; }; then :
2898
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2900
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2901
 
# `rm'.
2902
 
for ac_file in conftest.exe conftest conftest.*; do
2903
 
  test -f "$ac_file" || continue
2904
 
  case $ac_file in
2905
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2907
 
          break;;
2908
 
    * ) break;;
2909
 
  esac
2910
 
done
2911
 
else
2912
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914
 
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2915
 
See \`config.log' for more details" "$LINENO" 5; }
2916
 
fi
2917
 
rm -f conftest conftest$ac_cv_exeext
2918
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2919
 
$as_echo "$ac_cv_exeext" >&6; }
2920
 
 
2921
 
rm -f conftest.$ac_ext
2922
 
EXEEXT=$ac_cv_exeext
2923
 
ac_exeext=$EXEEXT
2924
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925
 
/* end confdefs.h.  */
2926
 
#include <stdio.h>
2927
 
int
2928
 
main ()
2929
 
{
2930
 
FILE *f = fopen ("conftest.out", "w");
2931
 
 return ferror (f) || fclose (f) != 0;
2932
 
 
2933
 
  ;
2934
 
  return 0;
2935
 
}
2936
 
_ACEOF
2937
 
ac_clean_files="$ac_clean_files conftest.out"
2938
 
# Check that the compiler produces executables we can run.  If not, either
2939
 
# the compiler is broken, or we cross compile.
2940
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2941
 
$as_echo_n "checking whether we are cross compiling... " >&6; }
2942
 
if test "$cross_compiling" != yes; then
2943
 
  { { ac_try="$ac_link"
2944
 
case "(($ac_try" in
2945
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
 
  *) ac_try_echo=$ac_try;;
2947
 
esac
2948
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949
 
$as_echo "$ac_try_echo"; } >&5
2950
 
  (eval "$ac_link") 2>&5
2951
 
  ac_status=$?
2952
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953
 
  test $ac_status = 0; }
2954
 
  if { ac_try='./conftest$ac_cv_exeext'
2955
 
  { { case "(($ac_try" in
2956
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957
 
  *) ac_try_echo=$ac_try;;
2958
 
esac
2959
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960
 
$as_echo "$ac_try_echo"; } >&5
2961
 
  (eval "$ac_try") 2>&5
2962
 
  ac_status=$?
2963
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964
 
  test $ac_status = 0; }; }; then
2965
 
    cross_compiling=no
2966
 
  else
2967
 
    if test "$cross_compiling" = maybe; then
2968
 
        cross_compiling=yes
2969
 
    else
2970
 
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972
 
as_fn_error $? "cannot run C compiled programs.
2973
 
If you meant to cross compile, use \`--host'.
2974
 
See \`config.log' for more details" "$LINENO" 5; }
2975
 
    fi
2976
 
  fi
2977
 
fi
2978
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2979
 
$as_echo "$cross_compiling" >&6; }
2980
 
 
2981
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2982
 
ac_clean_files=$ac_clean_files_save
2983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2984
 
$as_echo_n "checking for suffix of object files... " >&6; }
2985
 
if ${ac_cv_objext+:} false; then :
2986
 
  $as_echo_n "(cached) " >&6
2987
 
else
2988
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989
 
/* end confdefs.h.  */
2990
 
 
2991
 
int
2992
 
main ()
2993
 
{
2994
 
 
2995
 
  ;
2996
 
  return 0;
2997
 
}
2998
 
_ACEOF
2999
 
rm -f conftest.o conftest.obj
3000
 
if { { ac_try="$ac_compile"
3001
 
case "(($ac_try" in
3002
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003
 
  *) ac_try_echo=$ac_try;;
3004
 
esac
3005
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006
 
$as_echo "$ac_try_echo"; } >&5
3007
 
  (eval "$ac_compile") 2>&5
3008
 
  ac_status=$?
3009
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010
 
  test $ac_status = 0; }; then :
3011
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3012
 
  test -f "$ac_file" || continue;
3013
 
  case $ac_file in
3014
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3015
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3016
 
       break;;
3017
 
  esac
3018
 
done
3019
 
else
3020
 
  $as_echo "$as_me: failed program was:" >&5
3021
 
sed 's/^/| /' conftest.$ac_ext >&5
3022
 
 
3023
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025
 
as_fn_error $? "cannot compute suffix of object files: cannot compile
3026
 
See \`config.log' for more details" "$LINENO" 5; }
3027
 
fi
3028
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3029
 
fi
3030
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3031
 
$as_echo "$ac_cv_objext" >&6; }
3032
 
OBJEXT=$ac_cv_objext
3033
 
ac_objext=$OBJEXT
3034
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3035
 
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3036
 
if ${ac_cv_c_compiler_gnu+:} false; then :
3037
 
  $as_echo_n "(cached) " >&6
3038
 
else
3039
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040
 
/* end confdefs.h.  */
3041
 
 
3042
 
int
3043
 
main ()
3044
 
{
3045
 
#ifndef __GNUC__
3046
 
       choke me
3047
 
#endif
3048
 
 
3049
 
  ;
3050
 
  return 0;
3051
 
}
3052
 
_ACEOF
3053
 
if ac_fn_c_try_compile "$LINENO"; then :
3054
 
  ac_compiler_gnu=yes
3055
 
else
3056
 
  ac_compiler_gnu=no
3057
 
fi
3058
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
 
 
3061
 
fi
3062
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3063
 
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3064
 
if test $ac_compiler_gnu = yes; then
3065
 
  GCC=yes
3066
 
else
3067
 
  GCC=
3068
 
fi
3069
 
ac_test_CFLAGS=${CFLAGS+set}
3070
 
ac_save_CFLAGS=$CFLAGS
3071
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3072
 
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3073
 
if ${ac_cv_prog_cc_g+:} false; then :
3074
 
  $as_echo_n "(cached) " >&6
3075
 
else
3076
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3077
 
   ac_c_werror_flag=yes
3078
 
   ac_cv_prog_cc_g=no
3079
 
   CFLAGS="-g"
3080
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081
 
/* end confdefs.h.  */
3082
 
 
3083
 
int
3084
 
main ()
3085
 
{
3086
 
 
3087
 
  ;
3088
 
  return 0;
3089
 
}
3090
 
_ACEOF
3091
 
if ac_fn_c_try_compile "$LINENO"; then :
3092
 
  ac_cv_prog_cc_g=yes
3093
 
else
3094
 
  CFLAGS=""
3095
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096
 
/* end confdefs.h.  */
3097
 
 
3098
 
int
3099
 
main ()
3100
 
{
3101
 
 
3102
 
  ;
3103
 
  return 0;
3104
 
}
3105
 
_ACEOF
3106
 
if ac_fn_c_try_compile "$LINENO"; then :
3107
 
 
3108
 
else
3109
 
  ac_c_werror_flag=$ac_save_c_werror_flag
3110
 
         CFLAGS="-g"
3111
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112
 
/* end confdefs.h.  */
3113
 
 
3114
 
int
3115
 
main ()
3116
 
{
3117
 
 
3118
 
  ;
3119
 
  return 0;
3120
 
}
3121
 
_ACEOF
3122
 
if ac_fn_c_try_compile "$LINENO"; then :
3123
 
  ac_cv_prog_cc_g=yes
3124
 
fi
3125
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126
 
fi
3127
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128
 
fi
3129
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3131
 
fi
3132
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3133
 
$as_echo "$ac_cv_prog_cc_g" >&6; }
3134
 
if test "$ac_test_CFLAGS" = set; then
3135
 
  CFLAGS=$ac_save_CFLAGS
3136
 
elif test $ac_cv_prog_cc_g = yes; then
3137
 
  if test "$GCC" = yes; then
3138
 
    CFLAGS="-g -O2"
3139
 
  else
3140
 
    CFLAGS="-g"
3141
 
  fi
3142
 
else
3143
 
  if test "$GCC" = yes; then
3144
 
    CFLAGS="-O2"
3145
 
  else
3146
 
    CFLAGS=
3147
 
  fi
3148
 
fi
3149
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3150
 
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3151
 
if ${ac_cv_prog_cc_c89+:} false; then :
3152
 
  $as_echo_n "(cached) " >&6
3153
 
else
3154
 
  ac_cv_prog_cc_c89=no
3155
 
ac_save_CC=$CC
3156
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157
 
/* end confdefs.h.  */
3158
 
#include <stdarg.h>
3159
 
#include <stdio.h>
3160
 
struct stat;
3161
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3162
 
struct buf { int x; };
3163
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164
 
static char *e (p, i)
3165
 
     char **p;
3166
 
     int i;
3167
 
{
3168
 
  return p[i];
3169
 
}
3170
 
static char *f (char * (*g) (char **, int), char **p, ...)
3171
 
{
3172
 
  char *s;
3173
 
  va_list v;
3174
 
  va_start (v,p);
3175
 
  s = g (p, va_arg (v,int));
3176
 
  va_end (v);
3177
 
  return s;
3178
 
}
3179
 
 
3180
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3181
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3182
 
   These don't provoke an error unfortunately, instead are silently treated
3183
 
   as 'x'.  The following induces an error, until -std is added to get
3184
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3185
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3186
 
   that's true only with -std.  */
3187
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3188
 
 
3189
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190
 
   inside strings and character constants.  */
3191
 
#define FOO(x) 'x'
3192
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3193
 
 
3194
 
int test (int i, double x);
3195
 
struct s1 {int (*f) (int a);};
3196
 
struct s2 {int (*f) (double a);};
3197
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198
 
int argc;
3199
 
char **argv;
3200
 
int
3201
 
main ()
3202
 
{
3203
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3204
 
  ;
3205
 
  return 0;
3206
 
}
3207
 
_ACEOF
3208
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3210
 
do
3211
 
  CC="$ac_save_CC $ac_arg"
3212
 
  if ac_fn_c_try_compile "$LINENO"; then :
3213
 
  ac_cv_prog_cc_c89=$ac_arg
3214
 
fi
3215
 
rm -f core conftest.err conftest.$ac_objext
3216
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3217
 
done
3218
 
rm -f conftest.$ac_ext
3219
 
CC=$ac_save_CC
3220
 
 
3221
 
fi
3222
 
# AC_CACHE_VAL
3223
 
case "x$ac_cv_prog_cc_c89" in
3224
 
  x)
3225
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3226
 
$as_echo "none needed" >&6; } ;;
3227
 
  xno)
3228
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3229
 
$as_echo "unsupported" >&6; } ;;
3230
 
  *)
3231
 
    CC="$CC $ac_cv_prog_cc_c89"
3232
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3233
 
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3234
 
esac
3235
 
if test "x$ac_cv_prog_cc_c89" != xno; then :
3236
 
 
3237
 
fi
3238
 
 
3239
 
ac_ext=c
3240
 
ac_cpp='$CPP $CPPFLAGS'
3241
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
 
 
3245
 
ac_ext=cpp
3246
 
ac_cpp='$CXXCPP $CPPFLAGS'
3247
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3250
 
if test -z "$CXX"; then
3251
 
  if test -n "$CCC"; then
3252
 
    CXX=$CCC
3253
 
  else
3254
 
    if test -n "$ac_tool_prefix"; then
3255
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3256
 
  do
3257
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3258
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3259
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260
 
$as_echo_n "checking for $ac_word... " >&6; }
3261
 
if ${ac_cv_prog_CXX+:} false; then :
3262
 
  $as_echo_n "(cached) " >&6
3263
 
else
3264
 
  if test -n "$CXX"; then
3265
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3266
 
else
3267
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268
 
for as_dir in $PATH
3269
 
do
3270
 
  IFS=$as_save_IFS
3271
 
  test -z "$as_dir" && as_dir=.
3272
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3273
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3275
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276
 
    break 2
3277
 
  fi
3278
 
done
3279
 
  done
3280
 
IFS=$as_save_IFS
3281
 
 
3282
 
fi
3283
 
fi
3284
 
CXX=$ac_cv_prog_CXX
3285
 
if test -n "$CXX"; then
3286
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3287
 
$as_echo "$CXX" >&6; }
3288
 
else
3289
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290
 
$as_echo "no" >&6; }
3291
 
fi
3292
 
 
3293
 
 
3294
 
    test -n "$CXX" && break
3295
 
  done
3296
 
fi
3297
 
if test -z "$CXX"; then
3298
 
  ac_ct_CXX=$CXX
3299
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3300
 
do
3301
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3302
 
set dummy $ac_prog; ac_word=$2
3303
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304
 
$as_echo_n "checking for $ac_word... " >&6; }
3305
 
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3306
 
  $as_echo_n "(cached) " >&6
3307
 
else
3308
 
  if test -n "$ac_ct_CXX"; then
3309
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3310
 
else
3311
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312
 
for as_dir in $PATH
3313
 
do
3314
 
  IFS=$as_save_IFS
3315
 
  test -z "$as_dir" && as_dir=.
3316
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3317
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
3319
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320
 
    break 2
3321
 
  fi
3322
 
done
3323
 
  done
3324
 
IFS=$as_save_IFS
3325
 
 
3326
 
fi
3327
 
fi
3328
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3329
 
if test -n "$ac_ct_CXX"; then
3330
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3331
 
$as_echo "$ac_ct_CXX" >&6; }
3332
 
else
3333
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334
 
$as_echo "no" >&6; }
3335
 
fi
3336
 
 
3337
 
 
3338
 
  test -n "$ac_ct_CXX" && break
3339
 
done
3340
 
 
3341
 
  if test "x$ac_ct_CXX" = x; then
3342
 
    CXX="g++"
3343
 
  else
3344
 
    case $cross_compiling:$ac_tool_warned in
3345
 
yes:)
3346
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3347
 
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3348
 
ac_tool_warned=yes ;;
3349
 
esac
3350
 
    CXX=$ac_ct_CXX
3351
 
  fi
3352
 
fi
3353
 
 
3354
 
  fi
3355
 
fi
3356
 
# Provide some information about the compiler.
3357
 
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3358
 
set X $ac_compile
3359
 
ac_compiler=$2
3360
 
for ac_option in --version -v -V -qversion; do
3361
 
  { { ac_try="$ac_compiler $ac_option >&5"
3362
 
case "(($ac_try" in
3363
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364
 
  *) ac_try_echo=$ac_try;;
3365
 
esac
3366
 
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367
 
$as_echo "$ac_try_echo"; } >&5
3368
 
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3369
 
  ac_status=$?
3370
 
  if test -s conftest.err; then
3371
 
    sed '10a\
3372
 
... rest of stderr output deleted ...
3373
 
         10q' conftest.err >conftest.er1
3374
 
    cat conftest.er1 >&5
3375
 
  fi
3376
 
  rm -f conftest.er1 conftest.err
3377
 
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378
 
  test $ac_status = 0; }
3379
 
done
3380
 
 
3381
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3382
 
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3383
 
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3384
 
  $as_echo_n "(cached) " >&6
3385
 
else
3386
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387
 
/* end confdefs.h.  */
3388
 
 
3389
 
int
3390
 
main ()
3391
 
{
3392
 
#ifndef __GNUC__
3393
 
       choke me
3394
 
#endif
3395
 
 
3396
 
  ;
3397
 
  return 0;
3398
 
}
3399
 
_ACEOF
3400
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3401
 
  ac_compiler_gnu=yes
3402
 
else
3403
 
  ac_compiler_gnu=no
3404
 
fi
3405
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3407
 
 
3408
 
fi
3409
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3410
 
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3411
 
if test $ac_compiler_gnu = yes; then
3412
 
  GXX=yes
3413
 
else
3414
 
  GXX=
3415
 
fi
3416
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3417
 
ac_save_CXXFLAGS=$CXXFLAGS
3418
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3419
 
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3420
 
if ${ac_cv_prog_cxx_g+:} false; then :
3421
 
  $as_echo_n "(cached) " >&6
3422
 
else
3423
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3424
 
   ac_cxx_werror_flag=yes
3425
 
   ac_cv_prog_cxx_g=no
3426
 
   CXXFLAGS="-g"
3427
 
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428
 
/* end confdefs.h.  */
3429
 
 
3430
 
int
3431
 
main ()
3432
 
{
3433
 
 
3434
 
  ;
3435
 
  return 0;
3436
 
}
3437
 
_ACEOF
3438
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3439
 
  ac_cv_prog_cxx_g=yes
3440
 
else
3441
 
  CXXFLAGS=""
3442
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443
 
/* end confdefs.h.  */
3444
 
 
3445
 
int
3446
 
main ()
3447
 
{
3448
 
 
3449
 
  ;
3450
 
  return 0;
3451
 
}
3452
 
_ACEOF
3453
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3454
 
 
3455
 
else
3456
 
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3457
 
         CXXFLAGS="-g"
3458
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3459
 
/* end confdefs.h.  */
3460
 
 
3461
 
int
3462
 
main ()
3463
 
{
3464
 
 
3465
 
  ;
3466
 
  return 0;
3467
 
}
3468
 
_ACEOF
3469
 
if ac_fn_cxx_try_compile "$LINENO"; then :
3470
 
  ac_cv_prog_cxx_g=yes
3471
 
fi
3472
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473
 
fi
3474
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475
 
fi
3476
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3478
 
fi
3479
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3480
 
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3481
 
if test "$ac_test_CXXFLAGS" = set; then
3482
 
  CXXFLAGS=$ac_save_CXXFLAGS
3483
 
elif test $ac_cv_prog_cxx_g = yes; then
3484
 
  if test "$GXX" = yes; then
3485
 
    CXXFLAGS="-g -O2"
3486
 
  else
3487
 
    CXXFLAGS="-g"
3488
 
  fi
3489
 
else
3490
 
  if test "$GXX" = yes; then
3491
 
    CXXFLAGS="-O2"
3492
 
  else
3493
 
    CXXFLAGS=
3494
 
  fi
3495
 
fi
3496
 
ac_ext=c
3497
 
ac_cpp='$CPP $CPPFLAGS'
3498
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501
 
 
3502
 
ac_ext=c
3503
 
ac_cpp='$CPP $CPPFLAGS'
3504
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507
 
 
3508
 
 
3509
 
if test -z "$CROSS_COMPILE"; then
3510
 
    CROSS_COMPILE=`echo ${CC} | sed 's/gcc//'`
3511
 
fi
3512
 
 
3513
 
if test "$AR" = ""; then AR="${CROSS_COMPILE}ar rv"; fi
3514
 
 
3515
 
if test "$LD" = ""; then LD="$CC"; fi
3516
 
 
3517
 
if test "$LDOUT" = ""; then LDOUT="-o "; fi
3518
 
 
3519
 
if test "$RANLIB" = ""; then RANLIB="${CROSS_COMPILE}ranlib"; fi
3520
 
 
3521
 
if test "$OBJEXT" = ""; then OBJEXT='o'; fi
3522
 
 
3523
 
if test "$LIBEXT" = ""; then LIBEXT='a'; fi
3524
 
 
3525
 
if test "$LIBEXT2" = ""; then LIBEXT2=""; fi
3526
 
 
3527
 
if test "$CC_OUT" = ""; then CC_OUT="-o "; fi
3528
 
 
3529
 
if test "$CC_INC" = ""; then CC_INC="-I"; fi
3530
 
 
3531
 
if test "$CC_DEF" = ""; then CC_DEF="-D"; fi
3532
 
 
3533
 
if test "$CC_OPTIMIZE" = ""; then CC_OPTIMIZE="-O2"; fi
3534
 
 
3535
 
if test "$CC_CFLAGS" = ""; then CC_CFLAGS="-Wall"; fi
3536
 
 
3537
 
 
3538
 
 
3539
 
 
3540
 
 
3541
 
 
3542
 
 
3543
 
case $host in
3544
 
    *mingw* | *cygw* | *win32* | *w32* )
3545
 
        if pwd -W 2&> /dev/null; then
3546
 
           ac_pjdir=`pwd -W`
3547
 
        else
3548
 
           # We're probably cross-compiling mingw on Linux
3549
 
           ac_pjdir=`pwd`
3550
 
        fi
3551
 
        ;;
3552
 
    *)
3553
 
        ac_pjdir=`pwd`
3554
 
        ;;
3555
 
esac
3556
 
 
3557
 
 
3558
 
case $target in
3559
 
    *mingw* | *cygw* | *win32* | *w32* )
3560
 
        ac_shlib_suffix=dll
3561
 
        ;;
3562
 
    *darwin*)
3563
 
        ac_shlib_suffix=dylib
3564
 
        ;;
3565
 
    *)
3566
 
        ac_shlib_suffix=so
3567
 
        ;;
3568
 
esac
3569
 
 
3570
 
 
3571
 
if test "$build" = "$host"; then
3572
 
    ac_cross_compile=
3573
 
else
3574
 
    ac_cross_compile=${host_orig}-
3575
 
fi
3576
 
 
3577
 
 
3578
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
3579
 
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
3580
 
if ${ac_cv_lib_pthread_pthread_create+:} false; then :
3581
 
  $as_echo_n "(cached) " >&6
3582
 
else
3583
 
  ac_check_lib_save_LIBS=$LIBS
3584
 
LIBS="-lpthread  $LIBS"
3585
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586
 
/* end confdefs.h.  */
3587
 
 
3588
 
/* Override any GCC internal prototype to avoid an error.
3589
 
   Use char because int might match the return type of a GCC
3590
 
   builtin and then its argument prototype would still apply.  */
3591
 
#ifdef __cplusplus
3592
 
extern "C"
3593
 
#endif
3594
 
char pthread_create ();
3595
 
int
3596
 
main ()
3597
 
{
3598
 
return pthread_create ();
3599
 
  ;
3600
 
  return 0;
3601
 
}
3602
 
_ACEOF
3603
 
if ac_fn_c_try_link "$LINENO"; then :
3604
 
  ac_cv_lib_pthread_pthread_create=yes
3605
 
else
3606
 
  ac_cv_lib_pthread_pthread_create=no
3607
 
fi
3608
 
rm -f core conftest.err conftest.$ac_objext \
3609
 
    conftest$ac_exeext conftest.$ac_ext
3610
 
LIBS=$ac_check_lib_save_LIBS
3611
 
fi
3612
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
3613
 
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
3614
 
if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
3615
 
  cat >>confdefs.h <<_ACEOF
3616
 
#define HAVE_LIBPTHREAD 1
3617
 
_ACEOF
3618
 
 
3619
 
  LIBS="-lpthread $LIBS"
3620
 
 
3621
 
fi
3622
 
 
3623
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwsock32" >&5
3624
 
$as_echo_n "checking for puts in -lwsock32... " >&6; }
3625
 
if ${ac_cv_lib_wsock32_puts+:} false; then :
3626
 
  $as_echo_n "(cached) " >&6
3627
 
else
3628
 
  ac_check_lib_save_LIBS=$LIBS
3629
 
LIBS="-lwsock32  $LIBS"
3630
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631
 
/* end confdefs.h.  */
3632
 
 
3633
 
/* Override any GCC internal prototype to avoid an error.
3634
 
   Use char because int might match the return type of a GCC
3635
 
   builtin and then its argument prototype would still apply.  */
3636
 
#ifdef __cplusplus
3637
 
extern "C"
3638
 
#endif
3639
 
char puts ();
3640
 
int
3641
 
main ()
3642
 
{
3643
 
return puts ();
3644
 
  ;
3645
 
  return 0;
3646
 
}
3647
 
_ACEOF
3648
 
if ac_fn_c_try_link "$LINENO"; then :
3649
 
  ac_cv_lib_wsock32_puts=yes
3650
 
else
3651
 
  ac_cv_lib_wsock32_puts=no
3652
 
fi
3653
 
rm -f core conftest.err conftest.$ac_objext \
3654
 
    conftest$ac_exeext conftest.$ac_ext
3655
 
LIBS=$ac_check_lib_save_LIBS
3656
 
fi
3657
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wsock32_puts" >&5
3658
 
$as_echo "$ac_cv_lib_wsock32_puts" >&6; }
3659
 
if test "x$ac_cv_lib_wsock32_puts" = xyes; then :
3660
 
  cat >>confdefs.h <<_ACEOF
3661
 
#define HAVE_LIBWSOCK32 1
3662
 
_ACEOF
3663
 
 
3664
 
  LIBS="-lwsock32 $LIBS"
3665
 
 
3666
 
fi
3667
 
 
3668
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lws2_32" >&5
3669
 
$as_echo_n "checking for puts in -lws2_32... " >&6; }
3670
 
if ${ac_cv_lib_ws2_32_puts+:} false; then :
3671
 
  $as_echo_n "(cached) " >&6
3672
 
else
3673
 
  ac_check_lib_save_LIBS=$LIBS
3674
 
LIBS="-lws2_32  $LIBS"
3675
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676
 
/* end confdefs.h.  */
3677
 
 
3678
 
/* Override any GCC internal prototype to avoid an error.
3679
 
   Use char because int might match the return type of a GCC
3680
 
   builtin and then its argument prototype would still apply.  */
3681
 
#ifdef __cplusplus
3682
 
extern "C"
3683
 
#endif
3684
 
char puts ();
3685
 
int
3686
 
main ()
3687
 
{
3688
 
return puts ();
3689
 
  ;
3690
 
  return 0;
3691
 
}
3692
 
_ACEOF
3693
 
if ac_fn_c_try_link "$LINENO"; then :
3694
 
  ac_cv_lib_ws2_32_puts=yes
3695
 
else
3696
 
  ac_cv_lib_ws2_32_puts=no
3697
 
fi
3698
 
rm -f core conftest.err conftest.$ac_objext \
3699
 
    conftest$ac_exeext conftest.$ac_ext
3700
 
LIBS=$ac_check_lib_save_LIBS
3701
 
fi
3702
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_puts" >&5
3703
 
$as_echo "$ac_cv_lib_ws2_32_puts" >&6; }
3704
 
if test "x$ac_cv_lib_ws2_32_puts" = xyes; then :
3705
 
  cat >>confdefs.h <<_ACEOF
3706
 
#define HAVE_LIBWS2_32 1
3707
 
_ACEOF
3708
 
 
3709
 
  LIBS="-lws2_32 $LIBS"
3710
 
 
3711
 
fi
3712
 
 
3713
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lole32" >&5
3714
 
$as_echo_n "checking for puts in -lole32... " >&6; }
3715
 
if ${ac_cv_lib_ole32_puts+:} false; then :
3716
 
  $as_echo_n "(cached) " >&6
3717
 
else
3718
 
  ac_check_lib_save_LIBS=$LIBS
3719
 
LIBS="-lole32  $LIBS"
3720
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721
 
/* end confdefs.h.  */
3722
 
 
3723
 
/* Override any GCC internal prototype to avoid an error.
3724
 
   Use char because int might match the return type of a GCC
3725
 
   builtin and then its argument prototype would still apply.  */
3726
 
#ifdef __cplusplus
3727
 
extern "C"
3728
 
#endif
3729
 
char puts ();
3730
 
int
3731
 
main ()
3732
 
{
3733
 
return puts ();
3734
 
  ;
3735
 
  return 0;
3736
 
}
3737
 
_ACEOF
3738
 
if ac_fn_c_try_link "$LINENO"; then :
3739
 
  ac_cv_lib_ole32_puts=yes
3740
 
else
3741
 
  ac_cv_lib_ole32_puts=no
3742
 
fi
3743
 
rm -f core conftest.err conftest.$ac_objext \
3744
 
    conftest$ac_exeext conftest.$ac_ext
3745
 
LIBS=$ac_check_lib_save_LIBS
3746
 
fi
3747
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ole32_puts" >&5
3748
 
$as_echo "$ac_cv_lib_ole32_puts" >&6; }
3749
 
if test "x$ac_cv_lib_ole32_puts" = xyes; then :
3750
 
  cat >>confdefs.h <<_ACEOF
3751
 
#define HAVE_LIBOLE32 1
3752
 
_ACEOF
3753
 
 
3754
 
  LIBS="-lole32 $LIBS"
3755
 
 
3756
 
fi
3757
 
 
3758
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lwinmm" >&5
3759
 
$as_echo_n "checking for puts in -lwinmm... " >&6; }
3760
 
if ${ac_cv_lib_winmm_puts+:} false; then :
3761
 
  $as_echo_n "(cached) " >&6
3762
 
else
3763
 
  ac_check_lib_save_LIBS=$LIBS
3764
 
LIBS="-lwinmm  $LIBS"
3765
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766
 
/* end confdefs.h.  */
3767
 
 
3768
 
/* Override any GCC internal prototype to avoid an error.
3769
 
   Use char because int might match the return type of a GCC
3770
 
   builtin and then its argument prototype would still apply.  */
3771
 
#ifdef __cplusplus
3772
 
extern "C"
3773
 
#endif
3774
 
char puts ();
3775
 
int
3776
 
main ()
3777
 
{
3778
 
return puts ();
3779
 
  ;
3780
 
  return 0;
3781
 
}
3782
 
_ACEOF
3783
 
if ac_fn_c_try_link "$LINENO"; then :
3784
 
  ac_cv_lib_winmm_puts=yes
3785
 
else
3786
 
  ac_cv_lib_winmm_puts=no
3787
 
fi
3788
 
rm -f core conftest.err conftest.$ac_objext \
3789
 
    conftest$ac_exeext conftest.$ac_ext
3790
 
LIBS=$ac_check_lib_save_LIBS
3791
 
fi
3792
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_winmm_puts" >&5
3793
 
$as_echo "$ac_cv_lib_winmm_puts" >&6; }
3794
 
if test "x$ac_cv_lib_winmm_puts" = xyes; then :
3795
 
  cat >>confdefs.h <<_ACEOF
3796
 
#define HAVE_LIBWINMM 1
3797
 
_ACEOF
3798
 
 
3799
 
  LIBS="-lwinmm $LIBS"
3800
 
 
3801
 
fi
3802
 
 
3803
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lsocket" >&5
3804
 
$as_echo_n "checking for puts in -lsocket... " >&6; }
3805
 
if ${ac_cv_lib_socket_puts+:} false; then :
3806
 
  $as_echo_n "(cached) " >&6
3807
 
else
3808
 
  ac_check_lib_save_LIBS=$LIBS
3809
 
LIBS="-lsocket  $LIBS"
3810
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811
 
/* end confdefs.h.  */
3812
 
 
3813
 
/* Override any GCC internal prototype to avoid an error.
3814
 
   Use char because int might match the return type of a GCC
3815
 
   builtin and then its argument prototype would still apply.  */
3816
 
#ifdef __cplusplus
3817
 
extern "C"
3818
 
#endif
3819
 
char puts ();
3820
 
int
3821
 
main ()
3822
 
{
3823
 
return puts ();
3824
 
  ;
3825
 
  return 0;
3826
 
}
3827
 
_ACEOF
3828
 
if ac_fn_c_try_link "$LINENO"; then :
3829
 
  ac_cv_lib_socket_puts=yes
3830
 
else
3831
 
  ac_cv_lib_socket_puts=no
3832
 
fi
3833
 
rm -f core conftest.err conftest.$ac_objext \
3834
 
    conftest$ac_exeext conftest.$ac_ext
3835
 
LIBS=$ac_check_lib_save_LIBS
3836
 
fi
3837
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_puts" >&5
3838
 
$as_echo "$ac_cv_lib_socket_puts" >&6; }
3839
 
if test "x$ac_cv_lib_socket_puts" = xyes; then :
3840
 
  cat >>confdefs.h <<_ACEOF
3841
 
#define HAVE_LIBSOCKET 1
3842
 
_ACEOF
3843
 
 
3844
 
  LIBS="-lsocket $LIBS"
3845
 
 
3846
 
fi
3847
 
 
3848
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lrt" >&5
3849
 
$as_echo_n "checking for puts in -lrt... " >&6; }
3850
 
if ${ac_cv_lib_rt_puts+:} false; then :
3851
 
  $as_echo_n "(cached) " >&6
3852
 
else
3853
 
  ac_check_lib_save_LIBS=$LIBS
3854
 
LIBS="-lrt  $LIBS"
3855
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856
 
/* end confdefs.h.  */
3857
 
 
3858
 
/* Override any GCC internal prototype to avoid an error.
3859
 
   Use char because int might match the return type of a GCC
3860
 
   builtin and then its argument prototype would still apply.  */
3861
 
#ifdef __cplusplus
3862
 
extern "C"
3863
 
#endif
3864
 
char puts ();
3865
 
int
3866
 
main ()
3867
 
{
3868
 
return puts ();
3869
 
  ;
3870
 
  return 0;
3871
 
}
3872
 
_ACEOF
3873
 
if ac_fn_c_try_link "$LINENO"; then :
3874
 
  ac_cv_lib_rt_puts=yes
3875
 
else
3876
 
  ac_cv_lib_rt_puts=no
3877
 
fi
3878
 
rm -f core conftest.err conftest.$ac_objext \
3879
 
    conftest$ac_exeext conftest.$ac_ext
3880
 
LIBS=$ac_check_lib_save_LIBS
3881
 
fi
3882
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_puts" >&5
3883
 
$as_echo "$ac_cv_lib_rt_puts" >&6; }
3884
 
if test "x$ac_cv_lib_rt_puts" = xyes; then :
3885
 
  cat >>confdefs.h <<_ACEOF
3886
 
#define HAVE_LIBRT 1
3887
 
_ACEOF
3888
 
 
3889
 
  LIBS="-lrt $LIBS"
3890
 
 
3891
 
fi
3892
 
 
3893
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for puts in -lnsl" >&5
3894
 
$as_echo_n "checking for puts in -lnsl... " >&6; }
3895
 
if ${ac_cv_lib_nsl_puts+:} false; then :
3896
 
  $as_echo_n "(cached) " >&6
3897
 
else
3898
 
  ac_check_lib_save_LIBS=$LIBS
3899
 
LIBS="-lnsl  $LIBS"
3900
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901
 
/* end confdefs.h.  */
3902
 
 
3903
 
/* Override any GCC internal prototype to avoid an error.
3904
 
   Use char because int might match the return type of a GCC
3905
 
   builtin and then its argument prototype would still apply.  */
3906
 
#ifdef __cplusplus
3907
 
extern "C"
3908
 
#endif
3909
 
char puts ();
3910
 
int
3911
 
main ()
3912
 
{
3913
 
return puts ();
3914
 
  ;
3915
 
  return 0;
3916
 
}
3917
 
_ACEOF
3918
 
if ac_fn_c_try_link "$LINENO"; then :
3919
 
  ac_cv_lib_nsl_puts=yes
3920
 
else
3921
 
  ac_cv_lib_nsl_puts=no
3922
 
fi
3923
 
rm -f core conftest.err conftest.$ac_objext \
3924
 
    conftest$ac_exeext conftest.$ac_ext
3925
 
LIBS=$ac_check_lib_save_LIBS
3926
 
fi
3927
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_puts" >&5
3928
 
$as_echo "$ac_cv_lib_nsl_puts" >&6; }
3929
 
if test "x$ac_cv_lib_nsl_puts" = xyes; then :
3930
 
  cat >>confdefs.h <<_ACEOF
3931
 
#define HAVE_LIBNSL 1
3932
 
_ACEOF
3933
 
 
3934
 
  LIBS="-lnsl $LIBS"
3935
 
 
3936
 
fi
3937
 
 
3938
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3939
 
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3940
 
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3941
 
  $as_echo_n "(cached) " >&6
3942
 
else
3943
 
  ac_check_lib_save_LIBS=$LIBS
3944
 
LIBS="-luuid  $LIBS"
3945
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946
 
/* end confdefs.h.  */
3947
 
 
3948
 
/* Override any GCC internal prototype to avoid an error.
3949
 
   Use char because int might match the return type of a GCC
3950
 
   builtin and then its argument prototype would still apply.  */
3951
 
#ifdef __cplusplus
3952
 
extern "C"
3953
 
#endif
3954
 
char uuid_generate ();
3955
 
int
3956
 
main ()
3957
 
{
3958
 
return uuid_generate ();
3959
 
  ;
3960
 
  return 0;
3961
 
}
3962
 
_ACEOF
3963
 
if ac_fn_c_try_link "$LINENO"; then :
3964
 
  ac_cv_lib_uuid_uuid_generate=yes
3965
 
else
3966
 
  ac_cv_lib_uuid_uuid_generate=no
3967
 
fi
3968
 
rm -f core conftest.err conftest.$ac_objext \
3969
 
    conftest$ac_exeext conftest.$ac_ext
3970
 
LIBS=$ac_check_lib_save_LIBS
3971
 
fi
3972
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3973
 
$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3974
 
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
3975
 
  cat >>confdefs.h <<_ACEOF
3976
 
#define HAVE_LIBUUID 1
3977
 
_ACEOF
3978
 
 
3979
 
  LIBS="-luuid $LIBS"
3980
 
 
3981
 
fi
3982
 
 
3983
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3984
 
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3985
 
if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3986
 
  $as_echo_n "(cached) " >&6
3987
 
else
3988
 
  ac_check_lib_save_LIBS=$LIBS
3989
 
LIBS="-luuid  $LIBS"
3990
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991
 
/* end confdefs.h.  */
3992
 
 
3993
 
/* Override any GCC internal prototype to avoid an error.
3994
 
   Use char because int might match the return type of a GCC
3995
 
   builtin and then its argument prototype would still apply.  */
3996
 
#ifdef __cplusplus
3997
 
extern "C"
3998
 
#endif
3999
 
char uuid_generate ();
4000
 
int
4001
 
main ()
4002
 
{
4003
 
return uuid_generate ();
4004
 
  ;
4005
 
  return 0;
4006
 
}
4007
 
_ACEOF
4008
 
if ac_fn_c_try_link "$LINENO"; then :
4009
 
  ac_cv_lib_uuid_uuid_generate=yes
4010
 
else
4011
 
  ac_cv_lib_uuid_uuid_generate=no
4012
 
fi
4013
 
rm -f core conftest.err conftest.$ac_objext \
4014
 
    conftest$ac_exeext conftest.$ac_ext
4015
 
LIBS=$ac_check_lib_save_LIBS
4016
 
fi
4017
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4018
 
$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4019
 
if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4020
 
  ac_has_uuid_lib=1
4021
 
fi
4022
 
 
4023
 
 
4024
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_M_NAME to $target_cpu" >&5
4025
 
$as_echo "Setting PJ_M_NAME to $target_cpu" >&6; }
4026
 
cat >>confdefs.h <<_ACEOF
4027
 
#define PJ_M_NAME "$target_cpu"
4028
 
_ACEOF
4029
 
 
4030
 
 
4031
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking memory alignment" >&5
4032
 
$as_echo_n "checking memory alignment... " >&6; }
4033
 
case $target in
4034
 
    sparc64-* | ia64-* | x86_64-* )
4035
 
        $as_echo "#define PJ_POOL_ALIGNMENT 8" >>confdefs.h
4036
 
 
4037
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 8 bytes" >&5
4038
 
$as_echo "8 bytes" >&6; }
4039
 
        ;;
4040
 
    * )
4041
 
        $as_echo "#define PJ_POOL_ALIGNMENT 4" >>confdefs.h
4042
 
 
4043
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4 bytes (default)" >&5
4044
 
$as_echo "4 bytes (default)" >&6; }
4045
 
        ;;
4046
 
esac
4047
 
 
4048
 
 
4049
 
ac_ext=c
4050
 
ac_cpp='$CPP $CPPFLAGS'
4051
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4055
 
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4056
 
# On Suns, sometimes $CPP names a directory.
4057
 
if test -n "$CPP" && test -d "$CPP"; then
4058
 
  CPP=
4059
 
fi
4060
 
if test -z "$CPP"; then
4061
 
  if ${ac_cv_prog_CPP+:} false; then :
4062
 
  $as_echo_n "(cached) " >&6
4063
 
else
4064
 
      # Double quotes because CPP needs to be expanded
4065
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4066
 
    do
4067
 
      ac_preproc_ok=false
4068
 
for ac_c_preproc_warn_flag in '' yes
4069
 
do
4070
 
  # Use a header file that comes with gcc, so configuring glibc
4071
 
  # with a fresh cross-compiler works.
4072
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4073
 
  # <limits.h> exists even on freestanding compilers.
4074
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4075
 
  # not just through cpp. "Syntax error" is here to catch this case.
4076
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077
 
/* end confdefs.h.  */
4078
 
#ifdef __STDC__
4079
 
# include <limits.h>
4080
 
#else
4081
 
# include <assert.h>
4082
 
#endif
4083
 
                     Syntax error
4084
 
_ACEOF
4085
 
if ac_fn_c_try_cpp "$LINENO"; then :
4086
 
 
4087
 
else
4088
 
  # Broken: fails on valid input.
4089
 
continue
4090
 
fi
4091
 
rm -f conftest.err conftest.i conftest.$ac_ext
4092
 
 
4093
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4094
 
  # can be detected and how.
4095
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096
 
/* end confdefs.h.  */
4097
 
#include <ac_nonexistent.h>
4098
 
_ACEOF
4099
 
if ac_fn_c_try_cpp "$LINENO"; then :
4100
 
  # Broken: success on invalid input.
4101
 
continue
4102
 
else
4103
 
  # Passes both tests.
4104
 
ac_preproc_ok=:
4105
 
break
4106
 
fi
4107
 
rm -f conftest.err conftest.i conftest.$ac_ext
4108
 
 
4109
 
done
4110
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111
 
rm -f conftest.i conftest.err conftest.$ac_ext
4112
 
if $ac_preproc_ok; then :
4113
 
  break
4114
 
fi
4115
 
 
4116
 
    done
4117
 
    ac_cv_prog_CPP=$CPP
4118
 
 
4119
 
fi
4120
 
  CPP=$ac_cv_prog_CPP
4121
 
else
4122
 
  ac_cv_prog_CPP=$CPP
4123
 
fi
4124
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4125
 
$as_echo "$CPP" >&6; }
4126
 
ac_preproc_ok=false
4127
 
for ac_c_preproc_warn_flag in '' yes
4128
 
do
4129
 
  # Use a header file that comes with gcc, so configuring glibc
4130
 
  # with a fresh cross-compiler works.
4131
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4132
 
  # <limits.h> exists even on freestanding compilers.
4133
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4134
 
  # not just through cpp. "Syntax error" is here to catch this case.
4135
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136
 
/* end confdefs.h.  */
4137
 
#ifdef __STDC__
4138
 
# include <limits.h>
4139
 
#else
4140
 
# include <assert.h>
4141
 
#endif
4142
 
                     Syntax error
4143
 
_ACEOF
4144
 
if ac_fn_c_try_cpp "$LINENO"; then :
4145
 
 
4146
 
else
4147
 
  # Broken: fails on valid input.
4148
 
continue
4149
 
fi
4150
 
rm -f conftest.err conftest.i conftest.$ac_ext
4151
 
 
4152
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4153
 
  # can be detected and how.
4154
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155
 
/* end confdefs.h.  */
4156
 
#include <ac_nonexistent.h>
4157
 
_ACEOF
4158
 
if ac_fn_c_try_cpp "$LINENO"; then :
4159
 
  # Broken: success on invalid input.
4160
 
continue
4161
 
else
4162
 
  # Passes both tests.
4163
 
ac_preproc_ok=:
4164
 
break
4165
 
fi
4166
 
rm -f conftest.err conftest.i conftest.$ac_ext
4167
 
 
4168
 
done
4169
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4170
 
rm -f conftest.i conftest.err conftest.$ac_ext
4171
 
if $ac_preproc_ok; then :
4172
 
 
4173
 
else
4174
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176
 
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4177
 
See \`config.log' for more details" "$LINENO" 5; }
4178
 
fi
4179
 
 
4180
 
ac_ext=c
4181
 
ac_cpp='$CPP $CPPFLAGS'
4182
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185
 
 
4186
 
 
4187
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4188
 
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4189
 
if ${ac_cv_path_GREP+:} false; then :
4190
 
  $as_echo_n "(cached) " >&6
4191
 
else
4192
 
  if test -z "$GREP"; then
4193
 
  ac_path_GREP_found=false
4194
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4195
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4197
 
do
4198
 
  IFS=$as_save_IFS
4199
 
  test -z "$as_dir" && as_dir=.
4200
 
    for ac_prog in grep ggrep; do
4201
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4202
 
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4203
 
      as_fn_executable_p "$ac_path_GREP" || continue
4204
 
# Check for GNU ac_path_GREP and select it if it is found.
4205
 
  # Check for GNU $ac_path_GREP
4206
 
case `"$ac_path_GREP" --version 2>&1` in
4207
 
*GNU*)
4208
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4209
 
*)
4210
 
  ac_count=0
4211
 
  $as_echo_n 0123456789 >"conftest.in"
4212
 
  while :
4213
 
  do
4214
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4215
 
    mv "conftest.tmp" "conftest.in"
4216
 
    cp "conftest.in" "conftest.nl"
4217
 
    $as_echo 'GREP' >> "conftest.nl"
4218
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4219
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4220
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4221
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4222
 
      # Best one so far, save it but keep looking for a better one
4223
 
      ac_cv_path_GREP="$ac_path_GREP"
4224
 
      ac_path_GREP_max=$ac_count
4225
 
    fi
4226
 
    # 10*(2^10) chars as input seems more than enough
4227
 
    test $ac_count -gt 10 && break
4228
 
  done
4229
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4230
 
esac
4231
 
 
4232
 
      $ac_path_GREP_found && break 3
4233
 
    done
4234
 
  done
4235
 
  done
4236
 
IFS=$as_save_IFS
4237
 
  if test -z "$ac_cv_path_GREP"; then
4238
 
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4239
 
  fi
4240
 
else
4241
 
  ac_cv_path_GREP=$GREP
4242
 
fi
4243
 
 
4244
 
fi
4245
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4246
 
$as_echo "$ac_cv_path_GREP" >&6; }
4247
 
 GREP="$ac_cv_path_GREP"
4248
 
 
4249
 
 
4250
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4251
 
$as_echo_n "checking for egrep... " >&6; }
4252
 
if ${ac_cv_path_EGREP+:} false; then :
4253
 
  $as_echo_n "(cached) " >&6
4254
 
else
4255
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4256
 
   then ac_cv_path_EGREP="$GREP -E"
4257
 
   else
4258
 
     if test -z "$EGREP"; then
4259
 
  ac_path_EGREP_found=false
4260
 
  # Loop through the user's path and test for each of PROGNAME-LIST
4261
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263
 
do
4264
 
  IFS=$as_save_IFS
4265
 
  test -z "$as_dir" && as_dir=.
4266
 
    for ac_prog in egrep; do
4267
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4268
 
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4269
 
      as_fn_executable_p "$ac_path_EGREP" || continue
4270
 
# Check for GNU ac_path_EGREP and select it if it is found.
4271
 
  # Check for GNU $ac_path_EGREP
4272
 
case `"$ac_path_EGREP" --version 2>&1` in
4273
 
*GNU*)
4274
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4275
 
*)
4276
 
  ac_count=0
4277
 
  $as_echo_n 0123456789 >"conftest.in"
4278
 
  while :
4279
 
  do
4280
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4281
 
    mv "conftest.tmp" "conftest.in"
4282
 
    cp "conftest.in" "conftest.nl"
4283
 
    $as_echo 'EGREP' >> "conftest.nl"
4284
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286
 
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4287
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4288
 
      # Best one so far, save it but keep looking for a better one
4289
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4290
 
      ac_path_EGREP_max=$ac_count
4291
 
    fi
4292
 
    # 10*(2^10) chars as input seems more than enough
4293
 
    test $ac_count -gt 10 && break
4294
 
  done
4295
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296
 
esac
4297
 
 
4298
 
      $ac_path_EGREP_found && break 3
4299
 
    done
4300
 
  done
4301
 
  done
4302
 
IFS=$as_save_IFS
4303
 
  if test -z "$ac_cv_path_EGREP"; then
4304
 
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305
 
  fi
4306
 
else
4307
 
  ac_cv_path_EGREP=$EGREP
4308
 
fi
4309
 
 
4310
 
   fi
4311
 
fi
4312
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4313
 
$as_echo "$ac_cv_path_EGREP" >&6; }
4314
 
 EGREP="$ac_cv_path_EGREP"
4315
 
 
4316
 
 
4317
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4318
 
$as_echo_n "checking for ANSI C header files... " >&6; }
4319
 
if ${ac_cv_header_stdc+:} false; then :
4320
 
  $as_echo_n "(cached) " >&6
4321
 
else
4322
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323
 
/* end confdefs.h.  */
4324
 
#include <stdlib.h>
4325
 
#include <stdarg.h>
4326
 
#include <string.h>
4327
 
#include <float.h>
4328
 
 
4329
 
int
4330
 
main ()
4331
 
{
4332
 
 
4333
 
  ;
4334
 
  return 0;
4335
 
}
4336
 
_ACEOF
4337
 
if ac_fn_c_try_compile "$LINENO"; then :
4338
 
  ac_cv_header_stdc=yes
4339
 
else
4340
 
  ac_cv_header_stdc=no
4341
 
fi
4342
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343
 
 
4344
 
if test $ac_cv_header_stdc = yes; then
4345
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4346
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347
 
/* end confdefs.h.  */
4348
 
#include <string.h>
4349
 
 
4350
 
_ACEOF
4351
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352
 
  $EGREP "memchr" >/dev/null 2>&1; then :
4353
 
 
4354
 
else
4355
 
  ac_cv_header_stdc=no
4356
 
fi
4357
 
rm -f conftest*
4358
 
 
4359
 
fi
4360
 
 
4361
 
if test $ac_cv_header_stdc = yes; then
4362
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364
 
/* end confdefs.h.  */
4365
 
#include <stdlib.h>
4366
 
 
4367
 
_ACEOF
4368
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369
 
  $EGREP "free" >/dev/null 2>&1; then :
4370
 
 
4371
 
else
4372
 
  ac_cv_header_stdc=no
4373
 
fi
4374
 
rm -f conftest*
4375
 
 
4376
 
fi
4377
 
 
4378
 
if test $ac_cv_header_stdc = yes; then
4379
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4380
 
  if test "$cross_compiling" = yes; then :
4381
 
  :
4382
 
else
4383
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384
 
/* end confdefs.h.  */
4385
 
#include <ctype.h>
4386
 
#include <stdlib.h>
4387
 
#if ((' ' & 0x0FF) == 0x020)
4388
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4389
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4390
 
#else
4391
 
# define ISLOWER(c) \
4392
 
                   (('a' <= (c) && (c) <= 'i') \
4393
 
                     || ('j' <= (c) && (c) <= 'r') \
4394
 
                     || ('s' <= (c) && (c) <= 'z'))
4395
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4396
 
#endif
4397
 
 
4398
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4399
 
int
4400
 
main ()
4401
 
{
4402
 
  int i;
4403
 
  for (i = 0; i < 256; i++)
4404
 
    if (XOR (islower (i), ISLOWER (i))
4405
 
        || toupper (i) != TOUPPER (i))
4406
 
      return 2;
4407
 
  return 0;
4408
 
}
4409
 
_ACEOF
4410
 
if ac_fn_c_try_run "$LINENO"; then :
4411
 
 
4412
 
else
4413
 
  ac_cv_header_stdc=no
4414
 
fi
4415
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4416
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4417
 
fi
4418
 
 
4419
 
fi
4420
 
fi
4421
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4422
 
$as_echo "$ac_cv_header_stdc" >&6; }
4423
 
if test $ac_cv_header_stdc = yes; then
4424
 
 
4425
 
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4426
 
 
4427
 
fi
4428
 
 
4429
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4430
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4431
 
                  inttypes.h stdint.h unistd.h
4432
 
do :
4433
 
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4434
 
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4435
 
"
4436
 
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4437
 
  cat >>confdefs.h <<_ACEOF
4438
 
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4439
 
_ACEOF
4440
 
 
4441
 
fi
4442
 
 
4443
 
done
4444
 
 
4445
 
 
4446
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4447
 
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4448
 
if ${ac_cv_c_bigendian+:} false; then :
4449
 
  $as_echo_n "(cached) " >&6
4450
 
else
4451
 
  ac_cv_c_bigendian=unknown
4452
 
    # See if we're dealing with a universal compiler.
4453
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454
 
/* end confdefs.h.  */
4455
 
#ifndef __APPLE_CC__
4456
 
               not a universal capable compiler
4457
 
             #endif
4458
 
             typedef int dummy;
4459
 
 
4460
 
_ACEOF
4461
 
if ac_fn_c_try_compile "$LINENO"; then :
4462
 
 
4463
 
        # Check for potential -arch flags.  It is not universal unless
4464
 
        # there are at least two -arch flags with different values.
4465
 
        ac_arch=
4466
 
        ac_prev=
4467
 
        for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4468
 
         if test -n "$ac_prev"; then
4469
 
           case $ac_word in
4470
 
             i?86 | x86_64 | ppc | ppc64)
4471
 
               if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4472
 
                 ac_arch=$ac_word
4473
 
               else
4474
 
                 ac_cv_c_bigendian=universal
4475
 
                 break
4476
 
               fi
4477
 
               ;;
4478
 
           esac
4479
 
           ac_prev=
4480
 
         elif test "x$ac_word" = "x-arch"; then
4481
 
           ac_prev=arch
4482
 
         fi
4483
 
       done
4484
 
fi
4485
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486
 
    if test $ac_cv_c_bigendian = unknown; then
4487
 
      # See if sys/param.h defines the BYTE_ORDER macro.
4488
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489
 
/* end confdefs.h.  */
4490
 
#include <sys/types.h>
4491
 
             #include <sys/param.h>
4492
 
 
4493
 
int
4494
 
main ()
4495
 
{
4496
 
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4497
 
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4498
 
                     && LITTLE_ENDIAN)
4499
 
              bogus endian macros
4500
 
             #endif
4501
 
 
4502
 
  ;
4503
 
  return 0;
4504
 
}
4505
 
_ACEOF
4506
 
if ac_fn_c_try_compile "$LINENO"; then :
4507
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
4508
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509
 
/* end confdefs.h.  */
4510
 
#include <sys/types.h>
4511
 
                #include <sys/param.h>
4512
 
 
4513
 
int
4514
 
main ()
4515
 
{
4516
 
#if BYTE_ORDER != BIG_ENDIAN
4517
 
                 not big endian
4518
 
                #endif
4519
 
 
4520
 
  ;
4521
 
  return 0;
4522
 
}
4523
 
_ACEOF
4524
 
if ac_fn_c_try_compile "$LINENO"; then :
4525
 
  ac_cv_c_bigendian=yes
4526
 
else
4527
 
  ac_cv_c_bigendian=no
4528
 
fi
4529
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530
 
fi
4531
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532
 
    fi
4533
 
    if test $ac_cv_c_bigendian = unknown; then
4534
 
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4535
 
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536
 
/* end confdefs.h.  */
4537
 
#include <limits.h>
4538
 
 
4539
 
int
4540
 
main ()
4541
 
{
4542
 
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4543
 
              bogus endian macros
4544
 
             #endif
4545
 
 
4546
 
  ;
4547
 
  return 0;
4548
 
}
4549
 
_ACEOF
4550
 
if ac_fn_c_try_compile "$LINENO"; then :
4551
 
  # It does; now see whether it defined to _BIG_ENDIAN or not.
4552
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553
 
/* end confdefs.h.  */
4554
 
#include <limits.h>
4555
 
 
4556
 
int
4557
 
main ()
4558
 
{
4559
 
#ifndef _BIG_ENDIAN
4560
 
                 not big endian
4561
 
                #endif
4562
 
 
4563
 
  ;
4564
 
  return 0;
4565
 
}
4566
 
_ACEOF
4567
 
if ac_fn_c_try_compile "$LINENO"; then :
4568
 
  ac_cv_c_bigendian=yes
4569
 
else
4570
 
  ac_cv_c_bigendian=no
4571
 
fi
4572
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573
 
fi
4574
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575
 
    fi
4576
 
    if test $ac_cv_c_bigendian = unknown; then
4577
 
      # Compile a test program.
4578
 
      if test "$cross_compiling" = yes; then :
4579
 
  # Try to guess by grepping values from an object file.
4580
 
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581
 
/* end confdefs.h.  */
4582
 
short int ascii_mm[] =
4583
 
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4584
 
                short int ascii_ii[] =
4585
 
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4586
 
                int use_ascii (int i) {
4587
 
                  return ascii_mm[i] + ascii_ii[i];
4588
 
                }
4589
 
                short int ebcdic_ii[] =
4590
 
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4591
 
                short int ebcdic_mm[] =
4592
 
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4593
 
                int use_ebcdic (int i) {
4594
 
                  return ebcdic_mm[i] + ebcdic_ii[i];
4595
 
                }
4596
 
                extern int foo;
4597
 
 
4598
 
int
4599
 
main ()
4600
 
{
4601
 
return use_ascii (foo) == use_ebcdic (foo);
4602
 
  ;
4603
 
  return 0;
4604
 
}
4605
 
_ACEOF
4606
 
if ac_fn_c_try_compile "$LINENO"; then :
4607
 
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4608
 
              ac_cv_c_bigendian=yes
4609
 
            fi
4610
 
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4611
 
              if test "$ac_cv_c_bigendian" = unknown; then
4612
 
                ac_cv_c_bigendian=no
4613
 
              else
4614
 
                # finding both strings is unlikely to happen, but who knows?
4615
 
                ac_cv_c_bigendian=unknown
4616
 
              fi
4617
 
            fi
4618
 
fi
4619
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620
 
else
4621
 
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622
 
/* end confdefs.h.  */
4623
 
$ac_includes_default
4624
 
int
4625
 
main ()
4626
 
{
4627
 
 
4628
 
             /* Are we little or big endian?  From Harbison&Steele.  */
4629
 
             union
4630
 
             {
4631
 
               long int l;
4632
 
               char c[sizeof (long int)];
4633
 
             } u;
4634
 
             u.l = 1;
4635
 
             return u.c[sizeof (long int) - 1] == 1;
4636
 
 
4637
 
  ;
4638
 
  return 0;
4639
 
}
4640
 
_ACEOF
4641
 
if ac_fn_c_try_run "$LINENO"; then :
4642
 
  ac_cv_c_bigendian=no
4643
 
else
4644
 
  ac_cv_c_bigendian=yes
4645
 
fi
4646
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4647
 
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4648
 
fi
4649
 
 
4650
 
    fi
4651
 
fi
4652
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4653
 
$as_echo "$ac_cv_c_bigendian" >&6; }
4654
 
 case $ac_cv_c_bigendian in #(
4655
 
   yes)
4656
 
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4657
 
;; #(
4658
 
   no)
4659
 
      ;; #(
4660
 
   universal)
4661
 
 
4662
 
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4663
 
 
4664
 
     ;; #(
4665
 
   *)
4666
 
     as_fn_error $? "unknown endianness
4667
 
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4668
 
 esac
4669
 
 
4670
 
 
4671
 
if test "x$ac_cv_c_bigendian" = "xyes"; then
4672
 
  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0"
4673
 
else
4674
 
  CFLAGS="$CFLAGS -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1"
4675
 
fi
4676
 
 
4677
 
case $target in
4678
 
    *mingw* | *cygw* | *win32* | *w32* )
4679
 
        $as_echo "#define PJ_WIN32 1" >>confdefs.h
4680
 
 
4681
 
        $as_echo "#define PJ_WIN32_WINNT 0x0400" >>confdefs.h
4682
 
 
4683
 
        $as_echo "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h
4684
 
 
4685
 
        ;;
4686
 
    *darwin*)
4687
 
        $as_echo "#define PJ_DARWINOS 1" >>confdefs.h
4688
 
 
4689
 
        ;;
4690
 
    *linux*)
4691
 
        $as_echo "#define PJ_LINUX 1" >>confdefs.h
4692
 
 
4693
 
        ;;
4694
 
    *rtems*)
4695
 
        $as_echo "#define PJ_RTEMS 1" >>confdefs.h
4696
 
 
4697
 
        ;;
4698
 
    *sunos* | *solaris* )
4699
 
        $as_echo "#define PJ_SUNOS 1" >>confdefs.h
4700
 
 
4701
 
        ;;
4702
 
    *)
4703
 
        ;;
4704
 
esac
4705
 
 
4706
 
 
4707
 
 
4708
 
 
4709
 
# Check whether --enable-floating-point was given.
4710
 
if test "${enable_floating_point+set}" = set; then :
4711
 
  enableval=$enable_floating_point; if test "$enable_floating_point" = "no"; then
4712
 
                $as_echo "#define PJ_HAS_FLOATING_POINT 0" >>confdefs.h
4713
 
 
4714
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... yes" >&5
4715
 
$as_echo "Checking if floating point is disabled... yes" >&6; }
4716
 
               fi
4717
 
else
4718
 
 
4719
 
                $as_echo "#define PJ_HAS_FLOATING_POINT 1" >>confdefs.h
4720
 
 
4721
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
4722
 
$as_echo "Checking if floating point is disabled... no" >&6; }
4723
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
4724
 
$as_echo_n "checking for fmod in -lm... " >&6; }
4725
 
if ${ac_cv_lib_m_fmod+:} false; then :
4726
 
  $as_echo_n "(cached) " >&6
4727
 
else
4728
 
  ac_check_lib_save_LIBS=$LIBS
4729
 
LIBS="-lm  $LIBS"
4730
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731
 
/* end confdefs.h.  */
4732
 
 
4733
 
/* Override any GCC internal prototype to avoid an error.
4734
 
   Use char because int might match the return type of a GCC
4735
 
   builtin and then its argument prototype would still apply.  */
4736
 
#ifdef __cplusplus
4737
 
extern "C"
4738
 
#endif
4739
 
char fmod ();
4740
 
int
4741
 
main ()
4742
 
{
4743
 
return fmod ();
4744
 
  ;
4745
 
  return 0;
4746
 
}
4747
 
_ACEOF
4748
 
if ac_fn_c_try_link "$LINENO"; then :
4749
 
  ac_cv_lib_m_fmod=yes
4750
 
else
4751
 
  ac_cv_lib_m_fmod=no
4752
 
fi
4753
 
rm -f core conftest.err conftest.$ac_objext \
4754
 
    conftest$ac_exeext conftest.$ac_ext
4755
 
LIBS=$ac_check_lib_save_LIBS
4756
 
fi
4757
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
4758
 
$as_echo "$ac_cv_lib_m_fmod" >&6; }
4759
 
if test "x$ac_cv_lib_m_fmod" = xyes; then :
4760
 
  cat >>confdefs.h <<_ACEOF
4761
 
#define HAVE_LIBM 1
4762
 
_ACEOF
4763
 
 
4764
 
  LIBS="-lm $LIBS"
4765
 
 
4766
 
fi
4767
 
 
4768
 
 
4769
 
fi
4770
 
 
4771
 
 
4772
 
 
4773
 
ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
4774
 
if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
4775
 
  $as_echo "#define PJ_HAS_ARPA_INET_H 1" >>confdefs.h
4776
 
 
4777
 
fi
4778
 
 
4779
 
 
4780
 
ac_fn_c_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4781
 
if test "x$ac_cv_header_assert_h" = xyes; then :
4782
 
  $as_echo "#define PJ_HAS_ASSERT_H 1" >>confdefs.h
4783
 
 
4784
 
fi
4785
 
 
4786
 
 
4787
 
ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4788
 
if test "x$ac_cv_header_ctype_h" = xyes; then :
4789
 
  $as_echo "#define PJ_HAS_CTYPE_H 1" >>confdefs.h
4790
 
 
4791
 
fi
4792
 
 
4793
 
 
4794
 
 
4795
 
case $target in
4796
 
    *mingw* | *cygw* | *win32* | *w32* )
4797
 
        $as_echo "#define PJ_HAS_ERRNO_H 0" >>confdefs.h
4798
 
 
4799
 
        ;;
4800
 
    *)
4801
 
        ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4802
 
if test "x$ac_cv_header_errno_h" = xyes; then :
4803
 
  $as_echo "#define PJ_HAS_ERRNO_H 1" >>confdefs.h
4804
 
 
4805
 
fi
4806
 
 
4807
 
 
4808
 
        ;;
4809
 
esac
4810
 
 
4811
 
ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4812
 
if test "x$ac_cv_header_fcntl_h" = xyes; then :
4813
 
  $as_echo "#define PJ_HAS_FCNTL_H 1" >>confdefs.h
4814
 
 
4815
 
fi
4816
 
 
4817
 
 
4818
 
ac_fn_c_check_header_mongrel "$LINENO" "linux/socket.h" "ac_cv_header_linux_socket_h" "$ac_includes_default"
4819
 
if test "x$ac_cv_header_linux_socket_h" = xyes; then :
4820
 
  $as_echo "#define PJ_HAS_LINUX_SOCKET_H 1" >>confdefs.h
4821
 
 
4822
 
fi
4823
 
 
4824
 
 
4825
 
ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
4826
 
if test "x$ac_cv_header_limits_h" = xyes; then :
4827
 
  $as_echo "#define PJ_HAS_LIMITS_H 1" >>confdefs.h
4828
 
 
4829
 
fi
4830
 
 
4831
 
 
4832
 
ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4833
 
if test "x$ac_cv_header_malloc_h" = xyes; then :
4834
 
  $as_echo "#define PJ_HAS_MALLOC_H 1" >>confdefs.h
4835
 
 
4836
 
fi
4837
 
 
4838
 
 
4839
 
ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
4840
 
if test "x$ac_cv_header_netdb_h" = xyes; then :
4841
 
  $as_echo "#define PJ_HAS_NETDB_H 1" >>confdefs.h
4842
 
 
4843
 
fi
4844
 
 
4845
 
 
4846
 
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
4847
 
if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
4848
 
  $as_echo "#define PJ_HAS_NETINET_IN_SYSTM_H 1" >>confdefs.h
4849
 
 
4850
 
fi
4851
 
 
4852
 
 
4853
 
ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
4854
 
if test "x$ac_cv_header_netinet_in_h" = xyes; then :
4855
 
  $as_echo "#define PJ_HAS_NETINET_IN_H 1" >>confdefs.h
4856
 
 
4857
 
fi
4858
 
 
4859
 
 
4860
 
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if PJ_HAS_SYS_TYPES_H
4861
 
                  #     include <sys/types.h>
4862
 
                  #endif
4863
 
                  #if PJ_HAS_NETINET_IN_SYSTM_H
4864
 
                  #     include <netinet/in_systm.h>
4865
 
                  #endif
4866
 
                  #if PJ_HAS_NETINET_IN_H
4867
 
                  #     include <netinet/in.h>
4868
 
                  #endif
4869
 
 
4870
 
"
4871
 
if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
4872
 
  $as_echo "#define PJ_HAS_NETINET_IP_H 1" >>confdefs.h
4873
 
 
4874
 
fi
4875
 
 
4876
 
 
4877
 
ac_fn_c_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
4878
 
if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
4879
 
  $as_echo "#define PJ_HAS_NETINET_TCP_H 1" >>confdefs.h
4880
 
 
4881
 
fi
4882
 
 
4883
 
 
4884
 
ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
4885
 
if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
4886
 
  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
4887
 
if test "x$ac_cv_func_getifaddrs" = xyes; then :
4888
 
  $as_echo "#define PJ_HAS_IFADDRS_H 1" >>confdefs.h
4889
 
 
4890
 
fi
4891
 
 
4892
 
fi
4893
 
 
4894
 
 
4895
 
ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
4896
 
if test "x$ac_cv_header_semaphore_h" = xyes; then :
4897
 
  $as_echo "#define PJ_HAS_SEMAPHORE_H 1" >>confdefs.h
4898
 
 
4899
 
fi
4900
 
 
4901
 
 
4902
 
ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
4903
 
if test "x$ac_cv_header_setjmp_h" = xyes; then :
4904
 
  $as_echo "#define PJ_HAS_SETJMP_H 1" >>confdefs.h
4905
 
 
4906
 
fi
4907
 
 
4908
 
 
4909
 
ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
4910
 
if test "x$ac_cv_header_stdarg_h" = xyes; then :
4911
 
  $as_echo "#define PJ_HAS_STDARG_H 1" >>confdefs.h
4912
 
 
4913
 
fi
4914
 
 
4915
 
 
4916
 
ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
4917
 
if test "x$ac_cv_header_stddef_h" = xyes; then :
4918
 
  $as_echo "#define PJ_HAS_STDDEF_H 1" >>confdefs.h
4919
 
 
4920
 
fi
4921
 
 
4922
 
 
4923
 
ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4924
 
if test "x$ac_cv_header_stdio_h" = xyes; then :
4925
 
  $as_echo "#define PJ_HAS_STDIO_H 1" >>confdefs.h
4926
 
 
4927
 
fi
4928
 
 
4929
 
 
4930
 
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4931
 
if test "x$ac_cv_header_stdint_h" = xyes; then :
4932
 
  $as_echo "#define PJ_HAS_STDINT_H 1" >>confdefs.h
4933
 
 
4934
 
fi
4935
 
 
4936
 
 
4937
 
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4938
 
if test "x$ac_cv_header_stdlib_h" = xyes; then :
4939
 
  $as_echo "#define PJ_HAS_STDLIB_H 1" >>confdefs.h
4940
 
 
4941
 
fi
4942
 
 
4943
 
 
4944
 
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4945
 
if test "x$ac_cv_header_string_h" = xyes; then :
4946
 
  $as_echo "#define PJ_HAS_STRING_H 1" >>confdefs.h
4947
 
 
4948
 
fi
4949
 
 
4950
 
 
4951
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4952
 
if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4953
 
  $as_echo "#define PJ_HAS_SYS_IOCTL_H 1" >>confdefs.h
4954
 
 
4955
 
fi
4956
 
 
4957
 
 
4958
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
4959
 
if test "x$ac_cv_header_sys_select_h" = xyes; then :
4960
 
  $as_echo "#define PJ_HAS_SYS_SELECT_H 1" >>confdefs.h
4961
 
 
4962
 
fi
4963
 
 
4964
 
 
4965
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
4966
 
if test "x$ac_cv_header_sys_socket_h" = xyes; then :
4967
 
  $as_echo "#define PJ_HAS_SYS_SOCKET_H 1" >>confdefs.h
4968
 
 
4969
 
fi
4970
 
 
4971
 
 
4972
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4973
 
if test "x$ac_cv_header_sys_time_h" = xyes; then :
4974
 
  $as_echo "#define PJ_HAS_SYS_TIME_H 1" >>confdefs.h
4975
 
 
4976
 
fi
4977
 
 
4978
 
 
4979
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
4980
 
if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
4981
 
  $as_echo "#define PJ_HAS_SYS_TIMEB_H 1" >>confdefs.h
4982
 
 
4983
 
fi
4984
 
 
4985
 
 
4986
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4987
 
if test "x$ac_cv_header_sys_types_h" = xyes; then :
4988
 
  $as_echo "#define PJ_HAS_SYS_TYPES_H 1" >>confdefs.h
4989
 
 
4990
 
fi
4991
 
 
4992
 
 
4993
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
4994
 
if test "x$ac_cv_header_sys_filio_h" = xyes; then :
4995
 
  $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h
4996
 
 
4997
 
fi
4998
 
 
4999
 
 
5000
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
5001
 
if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
5002
 
  $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h
5003
 
 
5004
 
fi
5005
 
 
5006
 
 
5007
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
5008
 
if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
5009
 
  $as_echo "#define PJ_HAS_SYS_UTSNAME_H 1" >>confdefs.h
5010
 
 
5011
 
fi
5012
 
 
5013
 
 
5014
 
ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
5015
 
if test "x$ac_cv_header_time_h" = xyes; then :
5016
 
  $as_echo "#define PJ_HAS_TIME_H 1" >>confdefs.h
5017
 
 
5018
 
fi
5019
 
 
5020
 
 
5021
 
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5022
 
if test "x$ac_cv_header_unistd_h" = xyes; then :
5023
 
  $as_echo "#define PJ_HAS_UNISTD_H 1" >>confdefs.h
5024
 
 
5025
 
fi
5026
 
 
5027
 
 
5028
 
ac_fn_c_check_header_mongrel "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
5029
 
if test "x$ac_cv_header_winsock_h" = xyes; then :
5030
 
  $as_echo "#define PJ_HAS_WINSOCK_H 1" >>confdefs.h
5031
 
 
5032
 
fi
5033
 
 
5034
 
 
5035
 
ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
5036
 
if test "x$ac_cv_header_winsock2_h" = xyes; then :
5037
 
  $as_echo "#define PJ_HAS_WINSOCK2_H 1" >>confdefs.h
5038
 
 
5039
 
fi
5040
 
 
5041
 
 
5042
 
ac_fn_c_check_header_compile "$LINENO" "mswsock.h" "ac_cv_header_mswsock_h" "#if PJ_HAS_WINSOCK2_H
5043
 
                  #     include <winsock2.h>
5044
 
                  #elif PJ_HAS_WINSOCK_H
5045
 
                  #     include <winsock.h>
5046
 
                  #endif
5047
 
 
5048
 
"
5049
 
if test "x$ac_cv_header_mswsock_h" = xyes; then :
5050
 
  $as_echo "#define PJ_HAS_MSWSOCK_H 1" >>confdefs.h
5051
 
 
5052
 
fi
5053
 
 
5054
 
 
5055
 
ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
5056
 
if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
5057
 
  $as_echo "#define PJ_HAS_WS2TCPIP_H 1" >>confdefs.h
5058
 
 
5059
 
fi
5060
 
 
5061
 
 
5062
 
ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
5063
 
if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
5064
 
  ac_has_uuid_h=1
5065
 
fi
5066
 
 
5067
 
 
5068
 
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if PJ_HAS_SYS_TYPES_H
5069
 
                  #     include <sys/types.h>
5070
 
                  #endif
5071
 
                  #if PJ_HAS_SYS_SOCKET_H
5072
 
 
5073
 
                  #     include <sys/socket.h>
5074
 
                  #endif
5075
 
 
5076
 
"
5077
 
if test "x$ac_cv_header_net_if_h" = xyes; then :
5078
 
  $as_echo "#define PJ_HAS_NET_IF_H 1" >>confdefs.h
5079
 
 
5080
 
fi
5081
 
 
5082
 
 
5083
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_OS_NAME to $target" >&5
5084
 
$as_echo "Setting PJ_OS_NAME to $target" >&6; }
5085
 
cat >>confdefs.h <<_ACEOF
5086
 
#define PJ_OS_NAME "$target"
5087
 
_ACEOF
5088
 
 
5089
 
 
5090
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_ERRNO_VAR to 1" >&5
5091
 
$as_echo "Setting PJ_HAS_ERRNO_VAR to 1" >&6; }
5092
 
$as_echo "#define PJ_HAS_ERRNO_VAR 1" >>confdefs.h
5093
 
 
5094
 
 
5095
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_HIGH_RES_TIMER to 1" >&5
5096
 
$as_echo "Setting PJ_HAS_HIGH_RES_TIMER to 1" >&6; }
5097
 
$as_echo "#define PJ_HAS_HIGH_RES_TIMER 1" >>confdefs.h
5098
 
 
5099
 
 
5100
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_HAS_MALLOC to 1" >&5
5101
 
$as_echo "Setting PJ_HAS_MALLOC to 1" >&6; }
5102
 
$as_echo "#define PJ_HAS_MALLOC 1" >>confdefs.h
5103
 
 
5104
 
 
5105
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&5
5106
 
$as_echo "Setting PJ_NATIVE_STRING_IS_UNICODE to 0" >&6; }
5107
 
$as_echo "#define PJ_NATIVE_STRING_IS_UNICODE 0" >>confdefs.h
5108
 
 
5109
 
 
5110
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting PJ_ATOMIC_VALUE_TYPE to long" >&5
5111
 
$as_echo "Setting PJ_ATOMIC_VALUE_TYPE to long" >&6; }
5112
 
$as_echo "#define PJ_ATOMIC_VALUE_TYPE long" >>confdefs.h
5113
 
 
5114
 
 
5115
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_aton() is available" >&5
5116
 
$as_echo_n "checking if inet_aton() is available... " >&6; }
5117
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118
 
/* end confdefs.h.  */
5119
 
#include <sys/types.h>
5120
 
                                     #include <sys/socket.h>
5121
 
                                     #include <arpa/inet.h>
5122
 
int
5123
 
main ()
5124
 
{
5125
 
inet_aton(0, 0);
5126
 
  ;
5127
 
  return 0;
5128
 
}
5129
 
_ACEOF
5130
 
if ac_fn_c_try_compile "$LINENO"; then :
5131
 
  $as_echo "#define PJ_SOCK_HAS_INET_ATON 1" >>confdefs.h
5132
 
 
5133
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5134
 
$as_echo "yes" >&6; }
5135
 
else
5136
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137
 
$as_echo "no" >&6; }
5138
 
fi
5139
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
 
 
5141
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton() is available" >&5
5142
 
$as_echo_n "checking if inet_pton() is available... " >&6; }
5143
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144
 
/* end confdefs.h.  */
5145
 
#include <sys/types.h>
5146
 
                                     #include <sys/socket.h>
5147
 
                                     #include <arpa/inet.h>
5148
 
int
5149
 
main ()
5150
 
{
5151
 
inet_pton(0, 0, 0);
5152
 
  ;
5153
 
  return 0;
5154
 
}
5155
 
_ACEOF
5156
 
if ac_fn_c_try_compile "$LINENO"; then :
5157
 
  $as_echo "#define PJ_SOCK_HAS_INET_PTON 1" >>confdefs.h
5158
 
 
5159
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160
 
$as_echo "yes" >&6; }
5161
 
else
5162
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163
 
$as_echo "no" >&6; }
5164
 
fi
5165
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166
 
 
5167
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop() is available" >&5
5168
 
$as_echo_n "checking if inet_ntop() is available... " >&6; }
5169
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170
 
/* end confdefs.h.  */
5171
 
#include <sys/types.h>
5172
 
                                     #include <sys/socket.h>
5173
 
                                     #include <arpa/inet.h>
5174
 
int
5175
 
main ()
5176
 
{
5177
 
inet_ntop(0, 0, 0, 0);
5178
 
  ;
5179
 
  return 0;
5180
 
}
5181
 
_ACEOF
5182
 
if ac_fn_c_try_compile "$LINENO"; then :
5183
 
  $as_echo "#define PJ_SOCK_HAS_INET_NTOP 1" >>confdefs.h
5184
 
 
5185
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5186
 
$as_echo "yes" >&6; }
5187
 
else
5188
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189
 
$as_echo "no" >&6; }
5190
 
fi
5191
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192
 
 
5193
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo() is available" >&5
5194
 
$as_echo_n "checking if getaddrinfo() is available... " >&6; }
5195
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196
 
/* end confdefs.h.  */
5197
 
#include <sys/types.h>
5198
 
                                     #include <sys/socket.h>
5199
 
                                     #include <netdb.h>
5200
 
int
5201
 
main ()
5202
 
{
5203
 
getaddrinfo(0, 0, 0, 0);
5204
 
  ;
5205
 
  return 0;
5206
 
}
5207
 
_ACEOF
5208
 
if ac_fn_c_try_compile "$LINENO"; then :
5209
 
  $as_echo "#define PJ_SOCK_HAS_GETADDRINFO 1" >>confdefs.h
5210
 
 
5211
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5212
 
$as_echo "yes" >&6; }
5213
 
else
5214
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215
 
$as_echo "no" >&6; }
5216
 
fi
5217
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218
 
 
5219
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr_in has sin_len member" >&5
5220
 
$as_echo_n "checking if sockaddr_in has sin_len member... " >&6; }
5221
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222
 
/* end confdefs.h.  */
5223
 
#include <sys/types.h>
5224
 
                                     #include <sys/socket.h>
5225
 
                                     #include <netinet/in.h>
5226
 
                                     #include <arpa/inet.h>
5227
 
int
5228
 
main ()
5229
 
{
5230
 
struct sockaddr_in a; a.sin_len=0;
5231
 
  ;
5232
 
  return 0;
5233
 
}
5234
 
_ACEOF
5235
 
if ac_fn_c_try_compile "$LINENO"; then :
5236
 
  $as_echo "#define PJ_SOCKADDR_HAS_LEN 1" >>confdefs.h
5237
 
 
5238
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239
 
$as_echo "yes" >&6; }
5240
 
else
5241
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242
 
$as_echo "no" >&6; }
5243
 
fi
5244
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5245
 
 
5246
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if socklen_t is available" >&5
5247
 
$as_echo_n "checking if socklen_t is available... " >&6; }
5248
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249
 
/* end confdefs.h.  */
5250
 
#include <sys/types.h>
5251
 
                                     #include <sys/socket.h>
5252
 
int
5253
 
main ()
5254
 
{
5255
 
socklen_t xxx = 0;
5256
 
  ;
5257
 
  return 0;
5258
 
}
5259
 
_ACEOF
5260
 
if ac_fn_c_try_compile "$LINENO"; then :
5261
 
  $as_echo "#define PJ_HAS_SOCKLEN_T 1" >>confdefs.h
5262
 
 
5263
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264
 
$as_echo "yes" >&6; }
5265
 
else
5266
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267
 
$as_echo "no" >&6; }
5268
 
fi
5269
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270
 
 
5271
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SO_ERROR is available" >&5
5272
 
$as_echo_n "checking if SO_ERROR is available... " >&6; }
5273
 
case $target in
5274
 
    *mingw* | *cygw* | *win32* | *w32* )
5275
 
        $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5276
 
 
5277
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278
 
$as_echo "yes" >&6; }
5279
 
        ;;
5280
 
    *)
5281
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5282
 
/* end confdefs.h.  */
5283
 
#include <sys/types.h>
5284
 
                                             #include <sys/socket.h>
5285
 
                                             #include <netinet/in.h>
5286
 
                                             #include <arpa/inet.h>
5287
 
int
5288
 
main ()
5289
 
{
5290
 
int i=SO_ERROR;
5291
 
  ;
5292
 
  return 0;
5293
 
}
5294
 
_ACEOF
5295
 
if ac_fn_c_try_compile "$LINENO"; then :
5296
 
  $as_echo "#define PJ_HAS_SO_ERROR 1" >>confdefs.h
5297
 
 
5298
 
                           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5299
 
$as_echo "yes" >&6; }
5300
 
else
5301
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302
 
$as_echo "no" >&6; }
5303
 
fi
5304
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305
 
        ;;
5306
 
esac
5307
 
 
5308
 
 
5309
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available" >&5
5310
 
$as_echo_n "checking if pthread_rwlock_t is available... " >&6; }
5311
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312
 
/* end confdefs.h.  */
5313
 
#include <pthread.h>
5314
 
int
5315
 
main ()
5316
 
{
5317
 
pthread_rwlock_t *x;
5318
 
  ;
5319
 
  return 0;
5320
 
}
5321
 
_ACEOF
5322
 
if ac_fn_c_try_compile "$LINENO"; then :
5323
 
  $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5324
 
 
5325
 
                   ac_rwmutex="yes"
5326
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5327
 
$as_echo "yes" >&6; }
5328
 
else
5329
 
  $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5330
 
 
5331
 
                   ac_rwmutex="no"
5332
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333
 
$as_echo "no" >&6; }
5334
 
fi
5335
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336
 
 
5337
 
if test "$ac_rwmutex" = "no"; then
5338
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS" >&5
5339
 
$as_echo_n "checking if pthread_rwlock_t is available with _POSIX_READER_WRITER_LOCKS... " >&6; }
5340
 
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341
 
/* end confdefs.h.  */
5342
 
#define _POSIX_READER_WRITER_LOCKS
5343
 
                                         #include <pthread.h>
5344
 
int
5345
 
main ()
5346
 
{
5347
 
pthread_rwlock_t *x;
5348
 
  ;
5349
 
  return 0;
5350
 
}
5351
 
_ACEOF
5352
 
if ac_fn_c_try_compile "$LINENO"; then :
5353
 
  $as_echo "#define PJ_EMULATE_RWMUTEX 0" >>confdefs.h
5354
 
 
5355
 
                       CFLAGS="$CFLAGS -D_POSIX_THREADS -D_POSIX_READER_WRITER_LOCKS"
5356
 
                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357
 
$as_echo "yes" >&6; }
5358
 
else
5359
 
  $as_echo "#define PJ_EMULATE_RWMUTEX 1" >>confdefs.h
5360
 
 
5361
 
                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362
 
$as_echo "no" >&6; }
5363
 
fi
5364
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365
 
fi
5366
 
 
5367
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_settype() is available" >&5
5368
 
$as_echo_n "checking if pthread_mutexattr_settype() is available... " >&6; }
5369
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370
 
/* end confdefs.h.  */
5371
 
#include <pthread.h>
5372
 
int
5373
 
main ()
5374
 
{
5375
 
pthread_mutexattr_settype(0,PTHREAD_MUTEX_FAST_NP);
5376
 
  ;
5377
 
  return 0;
5378
 
}
5379
 
_ACEOF
5380
 
if ac_fn_c_try_compile "$LINENO"; then :
5381
 
  $as_echo "#define PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 1" >>confdefs.h
5382
 
 
5383
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384
 
$as_echo "yes" >&6; }
5385
 
else
5386
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387
 
$as_echo "no" >&6; }
5388
 
fi
5389
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390
 
 
5391
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_mutexattr_t has recursive member" >&5
5392
 
$as_echo_n "checking if pthread_mutexattr_t has recursive member... " >&6; }
5393
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394
 
/* end confdefs.h.  */
5395
 
#include <pthread.h>
5396
 
int
5397
 
main ()
5398
 
{
5399
 
pthread_mutexattr_t attr;
5400
 
                                     attr.recursive=1;
5401
 
  ;
5402
 
  return 0;
5403
 
}
5404
 
_ACEOF
5405
 
if ac_fn_c_try_compile "$LINENO"; then :
5406
 
  $as_echo "#define PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 1" >>confdefs.h
5407
 
 
5408
 
                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5409
 
$as_echo "yes" >&6; }
5410
 
else
5411
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412
 
$as_echo "no" >&6; }
5413
 
fi
5414
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415
 
 
5416
 
 
5417
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ioqueue backend" >&5
5418
 
$as_echo_n "checking ioqueue backend... " >&6; }
5419
 
# Check whether --enable-epoll was given.
5420
 
if test "${enable_epoll+set}" = set; then :
5421
 
  enableval=$enable_epoll;
5422
 
                ac_os_objs=ioqueue_epoll.o
5423
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/epoll" >&5
5424
 
$as_echo "/dev/epoll" >&6; }
5425
 
 
5426
 
else
5427
 
 
5428
 
                ac_os_objs=ioqueue_select.o
5429
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: select()" >&5
5430
 
$as_echo "select()" >&6; }
5431
 
 
5432
 
fi
5433
 
 
5434
 
 
5435
 
 
5436
 
case $target in
5437
 
  *mingw* | *cygw* | *win32* | *w32* )
5438
 
        ac_os_objs="$ac_os_objs file_access_win32.o file_io_win32.o os_core_win32.o os_error_win32.o os_time_win32.o os_timestamp_win32.o guid_win32.o"
5439
 
        ;;
5440
 
  *)
5441
 
        ac_os_objs="$ac_os_objs file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o"
5442
 
        case $target in
5443
 
          arm-apple-darwin*)
5444
 
                ac_os_objs="$ac_os_objs os_info_iphone.o"
5445
 
                ;;
5446
 
        esac
5447
 
        # UUID
5448
 
        if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then
5449
 
                ac_os_objs="$ac_os_objs guid_uuid.o"
5450
 
        else
5451
 
                ac_os_objs="$ac_os_objs guid_simple.o"
5452
 
        fi
5453
 
        ;;
5454
 
esac
5455
 
 
5456
 
case $target in
5457
 
  *darwin*)
5458
 
        ac_os_objs="$ac_os_objs os_core_darwin.o"
5459
 
        ;;
5460
 
esac
5461
 
 
5462
 
 
5463
 
ac_external_speex=0
5464
 
 
5465
 
 
5466
 
# Check whether --with-external-speex was given.
5467
 
if test "${with_external_speex+set}" = set; then :
5468
 
  withval=$with_external_speex;
5469
 
        if test "x$with_external_speex" != "xno"; then
5470
 
                # Test Speex installation
5471
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external Speex devkit is installed" >&5
5472
 
$as_echo_n "checking if external Speex devkit is installed... " >&6; }
5473
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474
 
/* end confdefs.h.  */
5475
 
#include <speex/speex.h>
5476
 
                                                     #include <speex/speex_echo.h>
5477
 
 
5478
 
int
5479
 
main ()
5480
 
{
5481
 
speex_echo_state_init(0, 0); speex_encoder_init(0);
5482
 
  ;
5483
 
  return 0;
5484
 
}
5485
 
_ACEOF
5486
 
if ac_fn_c_try_compile "$LINENO"; then :
5487
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5488
 
$as_echo "yes!!" >&6; }
5489
 
                                   $as_echo "#define PJMEDIA_EXTERNAL_SPEEX_CODEC 1" >>confdefs.h
5490
 
 
5491
 
                                   ac_external_speex="1"
5492
 
 
5493
 
else
5494
 
  as_fn_error $? "Unable to use external Speex library. If Speex development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
5495
 
fi
5496
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497
 
        fi
5498
 
 
5499
 
 
5500
 
fi
5501
 
 
5502
 
 
5503
 
ac_external_gsm=0
5504
 
 
5505
 
 
5506
 
# Check whether --with-external-gsm was given.
5507
 
if test "${with_external_gsm+set}" = set; then :
5508
 
  withval=$with_external_gsm;
5509
 
        if test "x$with_external_gsm" != "xno"; then
5510
 
                # Test GSM library installation
5511
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm/gsm.h" >&5
5512
 
$as_echo_n "checking if external GSM devkit is installed as gsm/gsm.h... " >&6; }
5513
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514
 
/* end confdefs.h.  */
5515
 
#include <gsm/gsm.h>
5516
 
int
5517
 
main ()
5518
 
{
5519
 
gsm_create();
5520
 
  ;
5521
 
  return 0;
5522
 
}
5523
 
_ACEOF
5524
 
if ac_fn_c_try_compile "$LINENO"; then :
5525
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5526
 
$as_echo "yes!!" >&6; }
5527
 
                     $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5528
 
 
5529
 
                     $as_echo "#define PJMEDIA_EXTERNAL_GSM_GSM_H 1" >>confdefs.h
5530
 
 
5531
 
                     ac_external_gsm="1"
5532
 
 
5533
 
else
5534
 
 
5535
 
                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536
 
$as_echo "no" >&6; }
5537
 
                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external GSM devkit is installed as gsm.h" >&5
5538
 
$as_echo_n "checking if external GSM devkit is installed as gsm.h... " >&6; }
5539
 
                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540
 
/* end confdefs.h.  */
5541
 
#include <gsm.h>
5542
 
int
5543
 
main ()
5544
 
{
5545
 
gsm_create();
5546
 
  ;
5547
 
  return 0;
5548
 
}
5549
 
_ACEOF
5550
 
if ac_fn_c_try_compile "$LINENO"; then :
5551
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5552
 
$as_echo "yes!!" >&6; }
5553
 
                         $as_echo "#define PJMEDIA_EXTERNAL_GSM_CODEC 1" >>confdefs.h
5554
 
 
5555
 
                         $as_echo "#define PJMEDIA_EXTERNAL_GSM_H 1" >>confdefs.h
5556
 
 
5557
 
                         ac_external_gsm="1"
5558
 
 
5559
 
else
5560
 
  as_fn_error $? "Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
5561
 
 
5562
 
 
5563
 
fi
5564
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565
 
 
5566
 
 
5567
 
fi
5568
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569
 
        fi
5570
 
 
5571
 
 
5572
 
fi
5573
 
 
5574
 
 
5575
 
 
5576
 
 
5577
 
 
5578
 
# Check whether --enable-sound was given.
5579
 
if test "${enable_sound+set}" = set; then :
5580
 
  enableval=$enable_sound; if test "$enable_sound" = "no"; then
5581
 
                ac_pjmedia_snd=null
5582
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if sound is disabled... yes" >&5
5583
 
$as_echo "Checking if sound is disabled... yes" >&6; }
5584
 
               fi
5585
 
 
5586
 
fi
5587
 
 
5588
 
 
5589
 
ac_external_pa=0
5590
 
 
5591
 
 
5592
 
# Check whether --with-external-pa was given.
5593
 
if test "${with_external_pa+set}" = set; then :
5594
 
  withval=$with_external_pa;
5595
 
        if test "x$with_external_pa" != "xno"; then
5596
 
                # Test PortAudio installation
5597
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if external PortAudio devkit is installed" >&5
5598
 
$as_echo_n "checking if external PortAudio devkit is installed... " >&6; }
5599
 
                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600
 
/* end confdefs.h.  */
5601
 
#include <portaudio.h>
5602
 
 
5603
 
int
5604
 
main ()
5605
 
{
5606
 
Pa_Initialize();
5607
 
  ;
5608
 
  return 0;
5609
 
}
5610
 
_ACEOF
5611
 
if ac_fn_c_try_compile "$LINENO"; then :
5612
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes!!" >&5
5613
 
$as_echo "yes!!" >&6; }
5614
 
                                   ac_external_pa="1"
5615
 
 
5616
 
else
5617
 
  as_fn_error $? "Unable to use PortAudio. If PortAudio development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths" "$LINENO" 5
5618
 
fi
5619
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620
 
        fi
5621
 
 
5622
 
 
5623
 
fi
5624
 
 
5625
 
 
5626
 
 
5627
 
ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
5628
 
if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
5629
 
  ac_pa_cflags="$ac_pa_cflags -DHAVE_SYS_SOUNDCARD_H"
5630
 
fi
5631
 
 
5632
 
 
5633
 
ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
5634
 
if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
5635
 
  ac_pa_cflags="$ac_pa_cflags -DHAVE_LINUX_SOUNDCARD_H"
5636
 
fi
5637
 
 
5638
 
 
5639
 
ac_fn_c_check_header_mongrel "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
5640
 
if test "x$ac_cv_header_machine_soundcard_h" = xyes; then :
5641
 
  ac_pa_cflags="$ac_pa_cflags -DHAVE_MACHINE_SOUNDCARD_H"
5642
 
fi
5643
 
 
5644
 
 
5645
 
 
5646
 
if test "x$ac_cv_c_bigendian" = "xyes"; then
5647
 
  ac_pa_cflags="$ac_pa_cflags -DPA_BIG_ENDIAN"
5648
 
else
5649
 
  ac_pa_cflags="$ac_pa_cflags -DPA_LITTLE_ENDIAN"
5650
 
fi
5651
 
 
5652
 
if test "$enable_sound" = "no"; then
5653
 
  true;
5654
 
else
5655
 
 case $target in
5656
 
  arm-apple-darwin*)
5657
 
        LIBS="$LIBS -framework CoreAudio -framework CoreFoundation -framework AudioToolbox -framework CFNetwork -framework UIKit"
5658
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... AudioUnit" >&5
5659
 
$as_echo "Checking sound device backend... AudioUnit" >&6; }
5660
 
        ;;
5661
 
  *darwin*)
5662
 
        LIBS="$LIBS -framework CoreAudio -framework CoreServices -framework AudioUnit -framework AudioToolbox"
5663
 
        if test "`uname -r`" = "6.8"; then
5664
 
                #ac_pa_cflags="$ac_pa_cflags -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS"
5665
 
                #AC_MSG_RESULT([Setting additional PortAudio CFLAGS.. -DPA_OLD_CORE_AUDIO -DMOSX_USE_NON_ATOMIC_FLAG_BITS])
5666
 
                ac_pjmedia_snd=pa_old_darwinos
5667
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... old coreaudio" >&5
5668
 
$as_echo "Checking sound device backend... old coreaudio" >&6; }
5669
 
        else
5670
 
                ac_pjmedia_snd=pa_darwinos
5671
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... coreaudio" >&5
5672
 
$as_echo "Checking sound device backend... coreaudio" >&6; }
5673
 
        fi
5674
 
        ;;
5675
 
  *cygwin* | *mingw*)
5676
 
        ac_pjmedia_snd=pa_win32
5677
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... win32 sound" >&5
5678
 
$as_echo "Checking sound device backend... win32 sound" >&6; }
5679
 
        ;;
5680
 
  *rtems*)
5681
 
        ac_pjmedia_snd=null
5682
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... null sound" >&5
5683
 
$as_echo "Checking sound device backend... null sound" >&6; }
5684
 
        ;;
5685
 
  *)
5686
 
                ac_pjmedia_snd=pa_unix
5687
 
        ac_fn_c_check_header_mongrel "$LINENO" "alsa/version.h" "ac_cv_header_alsa_version_h" "$ac_includes_default"
5688
 
if test "x$ac_cv_header_alsa_version_h" = xyes; then :
5689
 
  ac_pa_use_alsa=1
5690
 
 
5691
 
                         LIBS="$LIBS -lasound"
5692
 
 
5693
 
else
5694
 
  ac_pa_use_alsa=0
5695
 
 
5696
 
fi
5697
 
 
5698
 
 
5699
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking sound device backend... unix" >&5
5700
 
$as_echo "Checking sound device backend... unix" >&6; }
5701
 
 
5702
 
                ac_pa_use_oss=1
5703
 
 
5704
 
        # Check whether --enable-oss was given.
5705
 
if test "${enable_oss+set}" = set; then :
5706
 
  enableval=$enable_oss;
5707
 
                        if test "$enable_oss" = "no"; then
5708
 
                         ac_pa_use_oss=0
5709
 
                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OSS audio is disabled... yes" >&5
5710
 
$as_echo "Checking if OSS audio is disabled... yes" >&6; }
5711
 
                        fi
5712
 
 
5713
 
fi
5714
 
 
5715
 
        ;;
5716
 
 esac
5717
 
fi
5718
 
 
5719
 
 
5720
 
 
5721
 
# Check whether --enable-video was given.
5722
 
if test "${enable_video+set}" = set; then :
5723
 
  enableval=$enable_video; if test "$enable_video" = "no"; then
5724
 
                #AC_DEFINE(PJMEDIA_HAS_VIDEO,0)
5725
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Video is disabled" >&5
5726
 
$as_echo "Video is disabled" >&6; }
5727
 
                enable_sdl="no"
5728
 
                enable_ffmpeg="no"
5729
 
                enable_v4l2="no"
5730
 
               fi
5731
 
fi
5732
 
 
5733
 
 
5734
 
case $target in
5735
 
 arm-apple-darwin*)
5736
 
        LIBS="$LIBS -framework UIKit"
5737
 
        ;;
5738
 
 *darwin*)
5739
 
        LIBS="$LIBS -framework Foundation -framework AppKit"
5740
 
        ;;
5741
 
esac
5742
 
 
5743
 
if test "$enable_video" = "no"; then
5744
 
  true;
5745
 
else
5746
 
 case $target in
5747
 
  arm-apple-darwin*)
5748
 
        ac_pjmedia_video=iphone_os
5749
 
 
5750
 
 
5751
 
        SAVED_LIBS="$LIBS"
5752
 
        LIBS="-framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5753
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754
 
/* end confdefs.h.  */
5755
 
 
5756
 
int
5757
 
main ()
5758
 
{
5759
 
 
5760
 
  ;
5761
 
  return 0;
5762
 
}
5763
 
_ACEOF
5764
 
if ac_fn_c_try_link "$LINENO"; then :
5765
 
  ac_pjmedia_video_has_ios=yes
5766
 
else
5767
 
  ac_pjmedia_video_has_ios=no
5768
 
fi
5769
 
rm -f core conftest.err conftest.$ac_objext \
5770
 
    conftest$ac_exeext conftest.$ac_ext
5771
 
        LIBS="$SAVED_LIBS"
5772
 
        if test "$ac_pjmedia_video_has_ios" = "yes"; then
5773
 
          ac_ios_cflags="-DPJMEDIA_VIDEO_DEV_HAS_IOS=1"
5774
 
          LIBS="$LIBS -framework AVFoundation -framework CoreGraphics -framework QuartzCore -framework CoreVideo -framework CoreMedia"
5775
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... yes" >&5
5776
 
$as_echo "Checking if AVFoundation framework is available... yes" >&6; }
5777
 
        else
5778
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if AVFoundation framework is available... no" >&5
5779
 
$as_echo "Checking if AVFoundation framework is available... no" >&6; }
5780
 
        fi
5781
 
        ;;
5782
 
  *darwin*)
5783
 
        ac_pjmedia_video=mac_os
5784
 
 
5785
 
 
5786
 
        SAVED_LIBS="$LIBS"
5787
 
        LIBS="-framework QTKit"
5788
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789
 
/* end confdefs.h.  */
5790
 
 
5791
 
int
5792
 
main ()
5793
 
{
5794
 
 
5795
 
  ;
5796
 
  return 0;
5797
 
}
5798
 
_ACEOF
5799
 
if ac_fn_c_try_link "$LINENO"; then :
5800
 
  ac_pjmedia_video_has_qt=yes
5801
 
else
5802
 
  ac_pjmedia_video_has_qt=no
5803
 
fi
5804
 
rm -f core conftest.err conftest.$ac_objext \
5805
 
    conftest$ac_exeext conftest.$ac_ext
5806
 
        LIBS="$SAVED_LIBS"
5807
 
        if test "$ac_pjmedia_video_has_qt" = "yes"; then
5808
 
          ac_qt_cflags="-DPJMEDIA_VIDEO_DEV_HAS_QT=1"
5809
 
          LIBS="$LIBS -framework QTKit -framework QuartzCore -framework OpenGL"
5810
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... yes" >&5
5811
 
$as_echo "Checking if QTKit framework is available... yes" >&6; }
5812
 
        else
5813
 
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if QTKit framework is available... no" >&5
5814
 
$as_echo "Checking if QTKit framework is available... no" >&6; }
5815
 
        fi
5816
 
        ;;
5817
 
 esac
5818
 
fi
5819
 
 
5820
 
# Check whether --enable-ext_sound was given.
5821
 
if test "${enable_ext_sound+set}" = set; then :
5822
 
  enableval=$enable_ext_sound; if test "$enable_ext_sound" = "yes"; then
5823
 
                ac_pjmedia_snd=external
5824
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if external sound is set... yes" >&5
5825
 
$as_echo "Checking if external sound is set... yes" >&6; }
5826
 
               fi
5827
 
 
5828
 
fi
5829
 
 
5830
 
 
5831
 
 
5832
 
# Check whether --enable-small-filter was given.
5833
 
if test "${enable_small_filter+set}" = set; then :
5834
 
  enableval=$enable_small_filter; if test "$enable_small_filter" = "no"; then
5835
 
                ac_no_small_filter='-DPJMEDIA_HAS_SMALL_FILTER=0'
5836
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... yes" >&5
5837
 
$as_echo "Checking if small filter is disabled... yes" >&6; }
5838
 
               fi
5839
 
else
5840
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if small filter is disabled... no" >&5
5841
 
$as_echo "Checking if small filter is disabled... no" >&6; }
5842
 
fi
5843
 
 
5844
 
 
5845
 
 
5846
 
# Check whether --enable-large-filter was given.
5847
 
if test "${enable_large_filter+set}" = set; then :
5848
 
  enableval=$enable_large_filter; if test "$enable_large_filter" = "no"; then
5849
 
                ac_no_large_filter='-DPJMEDIA_HAS_LARGE_FILTER=0'
5850
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... yes" >&5
5851
 
$as_echo "Checking if large filter is disabled... yes" >&6; }
5852
 
               fi
5853
 
else
5854
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if large filter is disabled... no" >&5
5855
 
$as_echo "Checking if large filter is disabled... no" >&6; }
5856
 
fi
5857
 
 
5858
 
 
5859
 
 
5860
 
# Check whether --enable-speex-aec was given.
5861
 
if test "${enable_speex_aec+set}" = set; then :
5862
 
  enableval=$enable_speex_aec; if test "$enable_speex_aec" = "no"; then
5863
 
                ac_no_speex_aec='-DPJMEDIA_HAS_SPEEX_AEC=0'
5864
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...yes" >&5
5865
 
$as_echo "Checking if Speex AEC is disabled...yes" >&6; }
5866
 
               fi
5867
 
else
5868
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex AEC is disabled...no" >&5
5869
 
$as_echo "Checking if Speex AEC is disabled...no" >&6; }
5870
 
fi
5871
 
 
5872
 
 
5873
 
 
5874
 
# Check whether --enable-g711-codec was given.
5875
 
if test "${enable_g711_codec+set}" = set; then :
5876
 
  enableval=$enable_g711_codec; if test "$enable_g711_codec" = "no"; then
5877
 
                ac_no_g711_codec=1
5878
 
                $as_echo "#define PJMEDIA_HAS_G711_CODEC 0" >>confdefs.h
5879
 
 
5880
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...yes" >&5
5881
 
$as_echo "Checking if G.711 codec is disabled...yes" >&6; }
5882
 
               fi
5883
 
else
5884
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.711 codec is disabled...no" >&5
5885
 
$as_echo "Checking if G.711 codec is disabled...no" >&6; }
5886
 
fi
5887
 
 
5888
 
 
5889
 
 
5890
 
 
5891
 
# Check whether --enable-l16-codec was given.
5892
 
if test "${enable_l16_codec+set}" = set; then :
5893
 
  enableval=$enable_l16_codec; if test "$enable_l16_codec" = "no"; then
5894
 
                ac_no_l16_codec=1
5895
 
                $as_echo "#define PJMEDIA_HAS_L16_CODEC 0" >>confdefs.h
5896
 
 
5897
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codecs are disabled...yes" >&5
5898
 
$as_echo "Checking if L16 codecs are disabled...yes" >&6; }
5899
 
               fi
5900
 
else
5901
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if L16 codec is disabled...no" >&5
5902
 
$as_echo "Checking if L16 codec is disabled...no" >&6; }
5903
 
fi
5904
 
 
5905
 
 
5906
 
 
5907
 
 
5908
 
# Check whether --enable-gsm-codec was given.
5909
 
if test "${enable_gsm_codec+set}" = set; then :
5910
 
  enableval=$enable_gsm_codec; if test "$enable_gsm_codec" = "no"; then
5911
 
                ac_no_gsm_codec=1
5912
 
                $as_echo "#define PJMEDIA_HAS_GSM_CODEC 0" >>confdefs.h
5913
 
 
5914
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...yes" >&5
5915
 
$as_echo "Checking if GSM codec is disabled...yes" >&6; }
5916
 
               fi
5917
 
else
5918
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if GSM codec is disabled...no" >&5
5919
 
$as_echo "Checking if GSM codec is disabled...no" >&6; }
5920
 
fi
5921
 
 
5922
 
 
5923
 
 
5924
 
# Check whether --enable-g722-codec was given.
5925
 
if test "${enable_g722_codec+set}" = set; then :
5926
 
  enableval=$enable_g722_codec; if test "$enable_g722_codec" = "no"; then
5927
 
                ac_no_g722_codec=1
5928
 
                $as_echo "#define PJMEDIA_HAS_G722_CODEC 0" >>confdefs.h
5929
 
 
5930
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...yes" >&5
5931
 
$as_echo "Checking if G.722 codec is disabled...yes" >&6; }
5932
 
               fi
5933
 
else
5934
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722 codec is disabled...no" >&5
5935
 
$as_echo "Checking if G.722 codec is disabled...no" >&6; }
5936
 
fi
5937
 
 
5938
 
 
5939
 
 
5940
 
# Check whether --enable-g7221-codec was given.
5941
 
if test "${enable_g7221_codec+set}" = set; then :
5942
 
  enableval=$enable_g7221_codec; if test "$enable_g7221_codec" = "no"; then
5943
 
                ac_no_g7221_codec=1
5944
 
                $as_echo "#define PJMEDIA_HAS_G7221_CODEC 0" >>confdefs.h
5945
 
 
5946
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...yes" >&5
5947
 
$as_echo "Checking if G.722.1 codec is disabled...yes" >&6; }
5948
 
               fi
5949
 
else
5950
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if G.722.1 codec is disabled...no" >&5
5951
 
$as_echo "Checking if G.722.1 codec is disabled...no" >&6; }
5952
 
fi
5953
 
 
5954
 
 
5955
 
 
5956
 
# Check whether --enable-speex-codec was given.
5957
 
if test "${enable_speex_codec+set}" = set; then :
5958
 
  enableval=$enable_speex_codec; if test "$enable_speex_codec" = "no"; then
5959
 
                ac_no_speex_codec=1
5960
 
                $as_echo "#define PJMEDIA_HAS_SPEEX_CODEC 0" >>confdefs.h
5961
 
 
5962
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...yes" >&5
5963
 
$as_echo "Checking if Speex codec is disabled...yes" >&6; }
5964
 
               fi
5965
 
else
5966
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if Speex codec is disabled...no" >&5
5967
 
$as_echo "Checking if Speex codec is disabled...no" >&6; }
5968
 
fi
5969
 
 
5970
 
 
5971
 
 
5972
 
# Check whether --enable-ilbc-codec was given.
5973
 
if test "${enable_ilbc_codec+set}" = set; then :
5974
 
  enableval=$enable_ilbc_codec; if test "$enable_ilbc_codec" = "no"; then
5975
 
                ac_no_ilbc_codec=1
5976
 
                $as_echo "#define PJMEDIA_HAS_ILBC_CODEC 0" >>confdefs.h
5977
 
 
5978
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...yes" >&5
5979
 
$as_echo "Checking if iLBC codec is disabled...yes" >&6; }
5980
 
               fi
5981
 
else
5982
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if iLBC codec is disabled...no" >&5
5983
 
$as_echo "Checking if iLBC codec is disabled...no" >&6; }
5984
 
fi
5985
 
 
5986
 
 
5987
 
# Check whether --enable-libsamplerate was given.
5988
 
if test "${enable_libsamplerate+set}" = set; then :
5989
 
  enableval=$enable_libsamplerate;  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for src_new in -lsamplerate" >&5
5990
 
$as_echo_n "checking for src_new in -lsamplerate... " >&6; }
5991
 
if ${ac_cv_lib_samplerate_src_new+:} false; then :
5992
 
  $as_echo_n "(cached) " >&6
5993
 
else
5994
 
  ac_check_lib_save_LIBS=$LIBS
5995
 
LIBS="-lsamplerate  $LIBS"
5996
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997
 
/* end confdefs.h.  */
5998
 
 
5999
 
/* Override any GCC internal prototype to avoid an error.
6000
 
   Use char because int might match the return type of a GCC
6001
 
   builtin and then its argument prototype would still apply.  */
6002
 
#ifdef __cplusplus
6003
 
extern "C"
6004
 
#endif
6005
 
char src_new ();
6006
 
int
6007
 
main ()
6008
 
{
6009
 
return src_new ();
6010
 
  ;
6011
 
  return 0;
6012
 
}
6013
 
_ACEOF
6014
 
if ac_fn_c_try_link "$LINENO"; then :
6015
 
  ac_cv_lib_samplerate_src_new=yes
6016
 
else
6017
 
  ac_cv_lib_samplerate_src_new=no
6018
 
fi
6019
 
rm -f core conftest.err conftest.$ac_objext \
6020
 
    conftest$ac_exeext conftest.$ac_ext
6021
 
LIBS=$ac_check_lib_save_LIBS
6022
 
fi
6023
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_samplerate_src_new" >&5
6024
 
$as_echo "$ac_cv_lib_samplerate_src_new" >&6; }
6025
 
if test "x$ac_cv_lib_samplerate_src_new" = xyes; then :
6026
 
  cat >>confdefs.h <<_ACEOF
6027
 
#define HAVE_LIBSAMPLERATE 1
6028
 
_ACEOF
6029
 
 
6030
 
  LIBS="-lsamplerate $LIBS"
6031
 
 
6032
 
fi
6033
 
 
6034
 
else
6035
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping libsamplerate detection" >&5
6036
 
$as_echo "Skipping libsamplerate detection" >&6; }
6037
 
 
6038
 
fi
6039
 
 
6040
 
 
6041
 
 
6042
 
# Check whether --enable-resample_dll was given.
6043
 
if test "${enable_resample_dll+set}" = set; then :
6044
 
  enableval=$enable_resample_dll; if test "$enable_resample_dll" = "yes"; then
6045
 
                ac_resample_dll=1
6046
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... yes" >&5
6047
 
$as_echo "Building libresample as shared library... yes" >&6; }
6048
 
               fi
6049
 
else
6050
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building libresample as shared library... no" >&5
6051
 
$as_echo "Building libresample as shared library... no" >&6; }
6052
 
 
6053
 
fi
6054
 
 
6055
 
 
6056
 
 
6057
 
# Check whether --with-sdl was given.
6058
 
if test "${with_sdl+set}" = set; then :
6059
 
  withval=$with_sdl;
6060
 
else
6061
 
  with_sdl=no
6062
 
 
6063
 
fi
6064
 
 
6065
 
 
6066
 
if test "x$ac_cross_compile" != "x" -a "x$with_sdl" = "xno"; then
6067
 
    enable_sdl=no
6068
 
fi
6069
 
 
6070
 
# Check whether --enable-sdl was given.
6071
 
if test "${enable_sdl+set}" = set; then :
6072
 
  enableval=$enable_sdl;
6073
 
                if test "$enable_sdl" = "no"; then
6074
 
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SDL is disabled... yes" >&5
6075
 
$as_echo "Checking if SDL is disabled... yes" >&6; }
6076
 
                fi
6077
 
 
6078
 
else
6079
 
 
6080
 
                  if test "x$with_sdl" != "xno" -a "x$with_sdl" != "x"; then
6081
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SDL prefix... $with_sdl" >&5
6082
 
$as_echo "Using SDL prefix... $with_sdl" >&6; }
6083
 
                        for ac_prog in sdl2-config sdl-config
6084
 
do
6085
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6086
 
set dummy $ac_prog; ac_word=$2
6087
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088
 
$as_echo_n "checking for $ac_word... " >&6; }
6089
 
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6090
 
  $as_echo_n "(cached) " >&6
6091
 
else
6092
 
  case $SDL_CONFIG in
6093
 
  [\\/]* | ?:[\\/]*)
6094
 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6095
 
  ;;
6096
 
  *)
6097
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098
 
for as_dir in $with_sdl/bin
6099
 
do
6100
 
  IFS=$as_save_IFS
6101
 
  test -z "$as_dir" && as_dir=.
6102
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6103
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104
 
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6105
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106
 
    break 2
6107
 
  fi
6108
 
done
6109
 
  done
6110
 
IFS=$as_save_IFS
6111
 
 
6112
 
  ;;
6113
 
esac
6114
 
fi
6115
 
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6116
 
if test -n "$SDL_CONFIG"; then
6117
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6118
 
$as_echo "$SDL_CONFIG" >&6; }
6119
 
else
6120
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121
 
$as_echo "no" >&6; }
6122
 
fi
6123
 
 
6124
 
 
6125
 
  test -n "$SDL_CONFIG" && break
6126
 
done
6127
 
 
6128
 
                  else
6129
 
                        for ac_prog in sdl2-config sdl-config
6130
 
do
6131
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6132
 
set dummy $ac_prog; ac_word=$2
6133
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134
 
$as_echo_n "checking for $ac_word... " >&6; }
6135
 
if ${ac_cv_path_SDL_CONFIG+:} false; then :
6136
 
  $as_echo_n "(cached) " >&6
6137
 
else
6138
 
  case $SDL_CONFIG in
6139
 
  [\\/]* | ?:[\\/]*)
6140
 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
6141
 
  ;;
6142
 
  *)
6143
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144
 
for as_dir in $PATH
6145
 
do
6146
 
  IFS=$as_save_IFS
6147
 
  test -z "$as_dir" && as_dir=.
6148
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6149
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150
 
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6151
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152
 
    break 2
6153
 
  fi
6154
 
done
6155
 
  done
6156
 
IFS=$as_save_IFS
6157
 
 
6158
 
  ;;
6159
 
esac
6160
 
fi
6161
 
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
6162
 
if test -n "$SDL_CONFIG"; then
6163
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
6164
 
$as_echo "$SDL_CONFIG" >&6; }
6165
 
else
6166
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167
 
$as_echo "no" >&6; }
6168
 
fi
6169
 
 
6170
 
 
6171
 
  test -n "$SDL_CONFIG" && break
6172
 
done
6173
 
 
6174
 
                  fi
6175
 
 
6176
 
                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL availability" >&5
6177
 
$as_echo_n "checking SDL availability... " >&6; }
6178
 
                  if test "x$SDL_CONFIG" = "x"; then
6179
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6180
 
$as_echo "not found" >&6; }
6181
 
                  elif (sh -c "$SDL_CONFIG --version" | grep -e '^1\.3' -e '^2\.') then
6182
 
 
6183
 
 
6184
 
                        ac_sdl_cflags=`$SDL_CONFIG --cflags`
6185
 
                        ac_sdl_cflags="-DPJMEDIA_VIDEO_DEV_HAS_SDL=1 $ac_sdl_cflags"
6186
 
                        ac_sdl_ldflags=`$SDL_CONFIG --libs`
6187
 
                        LIBS="$LIBS $ac_sdl_ldflags"
6188
 
                  else
6189
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported SDL version" >&5
6190
 
$as_echo "Unsupported SDL version" >&6; }
6191
 
                  fi
6192
 
 
6193
 
fi
6194
 
 
6195
 
 
6196
 
 
6197
 
 
6198
 
# Check whether --with-ffmpeg was given.
6199
 
if test "${with_ffmpeg+set}" = set; then :
6200
 
  withval=$with_ffmpeg;
6201
 
else
6202
 
  with_ffmpeg=no
6203
 
 
6204
 
fi
6205
 
 
6206
 
 
6207
 
if test "x$ac_cross_compile" != "x" -a "x$with_ffmpeg" = "xno"; then
6208
 
    enable_ffmpeg=no
6209
 
fi
6210
 
 
6211
 
# Check whether --enable-ffmpeg was given.
6212
 
if test "${enable_ffmpeg+set}" = set; then :
6213
 
  enableval=$enable_ffmpeg;
6214
 
                ac_has_ffmpeg=0
6215
 
 
6216
 
                if test "$enable_ffmpeg" = "no"; then
6217
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if ffmpeg is disabled... yes" >&5
6218
 
$as_echo "Checking if ffmpeg is disabled... yes" >&6; }
6219
 
                fi
6220
 
 
6221
 
else
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
 
                FFMPEG_PREFIX=""
6227
 
 
6228
 
                SAVED_PKG_CONFIG_PATH=$PKG_CONFIG_PATH
6229
 
                if test "x$with_ffmpeg" != "xno" -a "x$with_ffmpeg" != "x"; then
6230
 
                        FFMPEG_PREFIX=$with_ffmpeg
6231
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using ffmpeg prefix... $FFMPEG_PREFIX" >&5
6232
 
$as_echo "Using ffmpeg prefix... $FFMPEG_PREFIX" >&6; }
6233
 
                        export PKG_CONFIG_PATH=$FFMPEG_PREFIX/lib/pkgconfig
6234
 
                fi
6235
 
 
6236
 
                for ac_prog in pkg-config "python pkgconfig.py"
6237
 
do
6238
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6239
 
set dummy $ac_prog; ac_word=$2
6240
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241
 
$as_echo_n "checking for $ac_word... " >&6; }
6242
 
if ${ac_cv_prog_PKG_CONFIG+:} false; then :
6243
 
  $as_echo_n "(cached) " >&6
6244
 
else
6245
 
  if test -n "$PKG_CONFIG"; then
6246
 
  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6247
 
else
6248
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249
 
for as_dir in $PATH
6250
 
do
6251
 
  IFS=$as_save_IFS
6252
 
  test -z "$as_dir" && as_dir=.
6253
 
    for ac_exec_ext in '' $ac_executable_extensions; do
6254
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255
 
    ac_cv_prog_PKG_CONFIG="$ac_prog"
6256
 
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257
 
    break 2
6258
 
  fi
6259
 
done
6260
 
  done
6261
 
IFS=$as_save_IFS
6262
 
 
6263
 
fi
6264
 
fi
6265
 
PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6266
 
if test -n "$PKG_CONFIG"; then
6267
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6268
 
$as_echo "$PKG_CONFIG" >&6; }
6269
 
else
6270
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271
 
$as_echo "no" >&6; }
6272
 
fi
6273
 
 
6274
 
 
6275
 
  test -n "$PKG_CONFIG" && break
6276
 
done
6277
 
test -n "$PKG_CONFIG" || PKG_CONFIG="none"
6278
 
 
6279
 
 
6280
 
                if test "$PKG_CONFIG" != "none"; then
6281
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking ffmpeg packages" >&5
6282
 
$as_echo_n "checking ffmpeg packages... " >&6; }
6283
 
                        av_pkg=""
6284
 
                        if $PKG_CONFIG --exists libdevice; then
6285
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6286
 
                                av_pkg="$av_pkg libdevice"
6287
 
                        fi
6288
 
                        if $PKG_CONFIG --exists libavformat; then
6289
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6290
 
                                av_pkg="$av_pkg libavformat"
6291
 
                        fi
6292
 
                        if $PKG_CONFIG --exists libavcodec; then
6293
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6294
 
                                av_pkg="$av_pkg libavcodec"
6295
 
                        fi
6296
 
                        if $PKG_CONFIG --exists libswscale; then
6297
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6298
 
                                av_pkg="$av_pkg libswscale"
6299
 
                        fi
6300
 
                        if $PKG_CONFIG --exists libavutil; then
6301
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6302
 
                                av_pkg="$av_pkg libavutil"
6303
 
                        fi
6304
 
                        if $PKG_CONFIG --exists libavcore; then
6305
 
                                ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6306
 
                                av_pkg="$av_pkg libavcore"
6307
 
                        fi
6308
 
 
6309
 
                        if test "x$av_pkg" == "x"; then
6310
 
                           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none detected (check the prefix)! **" >&5
6311
 
$as_echo "none detected (check the prefix)! **" >&6; }
6312
 
                        else
6313
 
                           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $av_pkg" >&5
6314
 
$as_echo "$av_pkg" >&6; }
6315
 
                        fi
6316
 
 
6317
 
                        ac_ffmpeg_cflags="$ac_ffmpeg_cflags `$PKG_CONFIG --cflags $av_pkg`"
6318
 
                        ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags `$PKG_CONFIG --libs $av_pkg`"
6319
 
 
6320
 
                else
6321
 
 
6322
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&5
6323
 
$as_echo "*** Warning: neither pkg-config nor python is available, ffmpeg dependency cannot be calculated. If ffmpeg libraries are not detected, you need to specify the correct CFLAGS and LDFLAGS settings for ffmpeg prior to invoking configure ***" >&6; }
6324
 
 
6325
 
                        LIBS="-L$FFMPEG_PREFIX/lib $LIBS"
6326
 
                        LDFLAGS="-L$FFMPEG_PREFIX/lib $LDFLAGS"
6327
 
                        CFLAGS="-I$FFMPEG_PREFIX/include $CFLAGS"
6328
 
 
6329
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avdevice_version in -lavdevice" >&5
6330
 
$as_echo_n "checking for avdevice_version in -lavdevice... " >&6; }
6331
 
if ${ac_cv_lib_avdevice_avdevice_version+:} false; then :
6332
 
  $as_echo_n "(cached) " >&6
6333
 
else
6334
 
  ac_check_lib_save_LIBS=$LIBS
6335
 
LIBS="-lavdevice  $LIBS"
6336
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337
 
/* end confdefs.h.  */
6338
 
 
6339
 
/* Override any GCC internal prototype to avoid an error.
6340
 
   Use char because int might match the return type of a GCC
6341
 
   builtin and then its argument prototype would still apply.  */
6342
 
#ifdef __cplusplus
6343
 
extern "C"
6344
 
#endif
6345
 
char avdevice_version ();
6346
 
int
6347
 
main ()
6348
 
{
6349
 
return avdevice_version ();
6350
 
  ;
6351
 
  return 0;
6352
 
}
6353
 
_ACEOF
6354
 
if ac_fn_c_try_link "$LINENO"; then :
6355
 
  ac_cv_lib_avdevice_avdevice_version=yes
6356
 
else
6357
 
  ac_cv_lib_avdevice_avdevice_version=no
6358
 
fi
6359
 
rm -f core conftest.err conftest.$ac_objext \
6360
 
    conftest$ac_exeext conftest.$ac_ext
6361
 
LIBS=$ac_check_lib_save_LIBS
6362
 
fi
6363
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avdevice_avdevice_version" >&5
6364
 
$as_echo "$ac_cv_lib_avdevice_avdevice_version" >&6; }
6365
 
if test "x$ac_cv_lib_avdevice_avdevice_version" = xyes; then :
6366
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVDEVICE=1"
6367
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavdevice"
6368
 
 
6369
 
 
6370
 
fi
6371
 
 
6372
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_malloc in -lavutil" >&5
6373
 
$as_echo_n "checking for av_malloc in -lavutil... " >&6; }
6374
 
if ${ac_cv_lib_avutil_av_malloc+:} false; then :
6375
 
  $as_echo_n "(cached) " >&6
6376
 
else
6377
 
  ac_check_lib_save_LIBS=$LIBS
6378
 
LIBS="-lavutil  $LIBS"
6379
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380
 
/* end confdefs.h.  */
6381
 
 
6382
 
/* Override any GCC internal prototype to avoid an error.
6383
 
   Use char because int might match the return type of a GCC
6384
 
   builtin and then its argument prototype would still apply.  */
6385
 
#ifdef __cplusplus
6386
 
extern "C"
6387
 
#endif
6388
 
char av_malloc ();
6389
 
int
6390
 
main ()
6391
 
{
6392
 
return av_malloc ();
6393
 
  ;
6394
 
  return 0;
6395
 
}
6396
 
_ACEOF
6397
 
if ac_fn_c_try_link "$LINENO"; then :
6398
 
  ac_cv_lib_avutil_av_malloc=yes
6399
 
else
6400
 
  ac_cv_lib_avutil_av_malloc=no
6401
 
fi
6402
 
rm -f core conftest.err conftest.$ac_objext \
6403
 
    conftest$ac_exeext conftest.$ac_ext
6404
 
LIBS=$ac_check_lib_save_LIBS
6405
 
fi
6406
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_malloc" >&5
6407
 
$as_echo "$ac_cv_lib_avutil_av_malloc" >&6; }
6408
 
if test "x$ac_cv_lib_avutil_av_malloc" = xyes; then :
6409
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVUTIL=1"
6410
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavutil"
6411
 
 
6412
 
 
6413
 
fi
6414
 
 
6415
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_init in -lavcodec" >&5
6416
 
$as_echo_n "checking for avcodec_init in -lavcodec... " >&6; }
6417
 
if ${ac_cv_lib_avcodec_avcodec_init+:} false; then :
6418
 
  $as_echo_n "(cached) " >&6
6419
 
else
6420
 
  ac_check_lib_save_LIBS=$LIBS
6421
 
LIBS="-lavcodec -lavutil
6422
 
                                      $LIBS"
6423
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424
 
/* end confdefs.h.  */
6425
 
 
6426
 
/* Override any GCC internal prototype to avoid an error.
6427
 
   Use char because int might match the return type of a GCC
6428
 
   builtin and then its argument prototype would still apply.  */
6429
 
#ifdef __cplusplus
6430
 
extern "C"
6431
 
#endif
6432
 
char avcodec_init ();
6433
 
int
6434
 
main ()
6435
 
{
6436
 
return avcodec_init ();
6437
 
  ;
6438
 
  return 0;
6439
 
}
6440
 
_ACEOF
6441
 
if ac_fn_c_try_link "$LINENO"; then :
6442
 
  ac_cv_lib_avcodec_avcodec_init=yes
6443
 
else
6444
 
  ac_cv_lib_avcodec_avcodec_init=no
6445
 
fi
6446
 
rm -f core conftest.err conftest.$ac_objext \
6447
 
    conftest$ac_exeext conftest.$ac_ext
6448
 
LIBS=$ac_check_lib_save_LIBS
6449
 
fi
6450
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_init" >&5
6451
 
$as_echo "$ac_cv_lib_avcodec_avcodec_init" >&6; }
6452
 
if test "x$ac_cv_lib_avcodec_avcodec_init" = xyes; then :
6453
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCODEC=1"
6454
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcodec"
6455
 
 
6456
 
fi
6457
 
 
6458
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_all in -lavformat" >&5
6459
 
$as_echo_n "checking for av_register_all in -lavformat... " >&6; }
6460
 
if ${ac_cv_lib_avformat_av_register_all+:} false; then :
6461
 
  $as_echo_n "(cached) " >&6
6462
 
else
6463
 
  ac_check_lib_save_LIBS=$LIBS
6464
 
LIBS="-lavformat -lavcodec -lavutil
6465
 
                                      $LIBS"
6466
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467
 
/* end confdefs.h.  */
6468
 
 
6469
 
/* Override any GCC internal prototype to avoid an error.
6470
 
   Use char because int might match the return type of a GCC
6471
 
   builtin and then its argument prototype would still apply.  */
6472
 
#ifdef __cplusplus
6473
 
extern "C"
6474
 
#endif
6475
 
char av_register_all ();
6476
 
int
6477
 
main ()
6478
 
{
6479
 
return av_register_all ();
6480
 
  ;
6481
 
  return 0;
6482
 
}
6483
 
_ACEOF
6484
 
if ac_fn_c_try_link "$LINENO"; then :
6485
 
  ac_cv_lib_avformat_av_register_all=yes
6486
 
else
6487
 
  ac_cv_lib_avformat_av_register_all=no
6488
 
fi
6489
 
rm -f core conftest.err conftest.$ac_objext \
6490
 
    conftest$ac_exeext conftest.$ac_ext
6491
 
LIBS=$ac_check_lib_save_LIBS
6492
 
fi
6493
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_register_all" >&5
6494
 
$as_echo "$ac_cv_lib_avformat_av_register_all" >&6; }
6495
 
if test "x$ac_cv_lib_avformat_av_register_all" = xyes; then :
6496
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVFORMAT=1"
6497
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavformat"
6498
 
 
6499
 
fi
6500
 
 
6501
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_scale in -lswscale" >&5
6502
 
$as_echo_n "checking for sws_scale in -lswscale... " >&6; }
6503
 
if ${ac_cv_lib_swscale_sws_scale+:} false; then :
6504
 
  $as_echo_n "(cached) " >&6
6505
 
else
6506
 
  ac_check_lib_save_LIBS=$LIBS
6507
 
LIBS="-lswscale -lavutil
6508
 
                                      $LIBS"
6509
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510
 
/* end confdefs.h.  */
6511
 
 
6512
 
/* Override any GCC internal prototype to avoid an error.
6513
 
   Use char because int might match the return type of a GCC
6514
 
   builtin and then its argument prototype would still apply.  */
6515
 
#ifdef __cplusplus
6516
 
extern "C"
6517
 
#endif
6518
 
char sws_scale ();
6519
 
int
6520
 
main ()
6521
 
{
6522
 
return sws_scale ();
6523
 
  ;
6524
 
  return 0;
6525
 
}
6526
 
_ACEOF
6527
 
if ac_fn_c_try_link "$LINENO"; then :
6528
 
  ac_cv_lib_swscale_sws_scale=yes
6529
 
else
6530
 
  ac_cv_lib_swscale_sws_scale=no
6531
 
fi
6532
 
rm -f core conftest.err conftest.$ac_objext \
6533
 
    conftest$ac_exeext conftest.$ac_ext
6534
 
LIBS=$ac_check_lib_save_LIBS
6535
 
fi
6536
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
6537
 
$as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
6538
 
if test "x$ac_cv_lib_swscale_sws_scale" = xyes; then :
6539
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBSWSCALE=1"
6540
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lswscale"
6541
 
 
6542
 
fi
6543
 
 
6544
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcore_version in -lavcore" >&5
6545
 
$as_echo_n "checking for avcore_version in -lavcore... " >&6; }
6546
 
if ${ac_cv_lib_avcore_avcore_version+:} false; then :
6547
 
  $as_echo_n "(cached) " >&6
6548
 
else
6549
 
  ac_check_lib_save_LIBS=$LIBS
6550
 
LIBS="-lavcore  $LIBS"
6551
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552
 
/* end confdefs.h.  */
6553
 
 
6554
 
/* Override any GCC internal prototype to avoid an error.
6555
 
   Use char because int might match the return type of a GCC
6556
 
   builtin and then its argument prototype would still apply.  */
6557
 
#ifdef __cplusplus
6558
 
extern "C"
6559
 
#endif
6560
 
char avcore_version ();
6561
 
int
6562
 
main ()
6563
 
{
6564
 
return avcore_version ();
6565
 
  ;
6566
 
  return 0;
6567
 
}
6568
 
_ACEOF
6569
 
if ac_fn_c_try_link "$LINENO"; then :
6570
 
  ac_cv_lib_avcore_avcore_version=yes
6571
 
else
6572
 
  ac_cv_lib_avcore_avcore_version=no
6573
 
fi
6574
 
rm -f core conftest.err conftest.$ac_objext \
6575
 
    conftest$ac_exeext conftest.$ac_ext
6576
 
LIBS=$ac_check_lib_save_LIBS
6577
 
fi
6578
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcore_avcore_version" >&5
6579
 
$as_echo "$ac_cv_lib_avcore_avcore_version" >&6; }
6580
 
if test "x$ac_cv_lib_avcore_avcore_version" = xyes; then :
6581
 
  ac_ffmpeg_cflags="$ac_ffmpeg_cflags -DPJMEDIA_HAS_LIBAVCORE=1"
6582
 
                                      ac_ffmpeg_ldflags="$ac_ffmpeg_ldflags -lavcore"
6583
 
 
6584
 
 
6585
 
fi
6586
 
 
6587
 
 
6588
 
                fi
6589
 
 
6590
 
                LIBS="$LIBS $ac_ffmpeg_ldflags"
6591
 
                export PKG_CONFIG_PATH=$SAVED_PKG_CONFIG_PATH
6592
 
 
6593
 
 
6594
 
fi
6595
 
 
6596
 
 
6597
 
# Check whether --enable-v4l2 was given.
6598
 
if test "${enable_v4l2+set}" = set; then :
6599
 
  enableval=$enable_v4l2;
6600
 
                if test "$enable_v4l2" = "no"; then
6601
 
                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if V4L2 is disabled... yes" >&5
6602
 
$as_echo "Checking if V4L2 is disabled... yes" >&6; }
6603
 
                fi
6604
 
 
6605
 
else
6606
 
 
6607
 
 
6608
 
 
6609
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for v4l2_open in -lv4l2" >&5
6610
 
$as_echo_n "checking for v4l2_open in -lv4l2... " >&6; }
6611
 
if ${ac_cv_lib_v4l2_v4l2_open+:} false; then :
6612
 
  $as_echo_n "(cached) " >&6
6613
 
else
6614
 
  ac_check_lib_save_LIBS=$LIBS
6615
 
LIBS="-lv4l2  $LIBS"
6616
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617
 
/* end confdefs.h.  */
6618
 
 
6619
 
/* Override any GCC internal prototype to avoid an error.
6620
 
   Use char because int might match the return type of a GCC
6621
 
   builtin and then its argument prototype would still apply.  */
6622
 
#ifdef __cplusplus
6623
 
extern "C"
6624
 
#endif
6625
 
char v4l2_open ();
6626
 
int
6627
 
main ()
6628
 
{
6629
 
return v4l2_open ();
6630
 
  ;
6631
 
  return 0;
6632
 
}
6633
 
_ACEOF
6634
 
if ac_fn_c_try_link "$LINENO"; then :
6635
 
  ac_cv_lib_v4l2_v4l2_open=yes
6636
 
else
6637
 
  ac_cv_lib_v4l2_v4l2_open=no
6638
 
fi
6639
 
rm -f core conftest.err conftest.$ac_objext \
6640
 
    conftest$ac_exeext conftest.$ac_ext
6641
 
LIBS=$ac_check_lib_save_LIBS
6642
 
fi
6643
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_v4l2_v4l2_open" >&5
6644
 
$as_echo "$ac_cv_lib_v4l2_v4l2_open" >&6; }
6645
 
if test "x$ac_cv_lib_v4l2_v4l2_open" = xyes; then :
6646
 
  ac_v4l2_cflags="-DPJMEDIA_VIDEO_DEV_HAS_V4L2=1"
6647
 
                              ac_v4l2_ldflags="-lv4l2"
6648
 
                              LIBS="$LIBS -lv4l2"
6649
 
 
6650
 
 
6651
 
fi
6652
 
 
6653
 
 
6654
 
fi
6655
 
 
6656
 
 
6657
 
# Check whether --enable-ipp was given.
6658
 
if test "${enable_ipp+set}" = set; then :
6659
 
  enableval=$enable_ipp;
6660
 
else
6661
 
  enable_ipp=no
6662
 
 
6663
 
fi
6664
 
 
6665
 
 
6666
 
 
6667
 
# Check whether --with-ipp was given.
6668
 
if test "${with_ipp+set}" = set; then :
6669
 
  withval=$with_ipp;
6670
 
else
6671
 
  with_ipp=no
6672
 
 
6673
 
fi
6674
 
 
6675
 
 
6676
 
 
6677
 
# Check whether --with-ipp-samples was given.
6678
 
if test "${with_ipp_samples+set}" = set; then :
6679
 
  withval=$with_ipp_samples;
6680
 
else
6681
 
  with_ipp_samples=no
6682
 
 
6683
 
fi
6684
 
 
6685
 
 
6686
 
 
6687
 
# Check whether --with-ipp-arch was given.
6688
 
if test "${with_ipp_arch+set}" = set; then :
6689
 
  withval=$with_ipp_arch;
6690
 
else
6691
 
  with_ipp_arch=no
6692
 
 
6693
 
fi
6694
 
 
6695
 
 
6696
 
if test "x$enable_ipp" != "xno"; then
6697
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP location" >&5
6698
 
$as_echo_n "checking Intel IPP location... " >&6; }
6699
 
 
6700
 
    if test "x$with_ipp" != "xno" -a "x$with_ipp" != "x"; then
6701
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp" >&5
6702
 
$as_echo "$with_ipp" >&6; }
6703
 
        IPPROOT=$with_ipp
6704
 
    elif test "x$IPPROOT" = "x"; then
6705
 
        if test -d /opt/intel/ipp; then
6706
 
            IPPROOT=`ls -d /opt/intel/ipp/*/* | head -1`
6707
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPROOT" >&5
6708
 
$as_echo "autodetected in $IPPROOT" >&6; }
6709
 
        fi
6710
 
    else
6711
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPROOT" >&5
6712
 
$as_echo "$IPPROOT" >&6; }
6713
 
    fi
6714
 
 
6715
 
    if test "x$with_ipp_arch" != "xno"; then
6716
 
        IPP_SUFFIX=$with_ipp_arch
6717
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to $IPP_SUFFIX" >&5
6718
 
$as_echo "IPP arch suffix is set to $IPP_SUFFIX" >&6; }
6719
 
    else
6720
 
        IPP_SUFFIX=""
6721
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: IPP arch suffix is set to empty" >&5
6722
 
$as_echo "IPP arch suffix is set to empty" >&6; }
6723
 
    fi
6724
 
 
6725
 
    if test x$IPPROOT = x; then
6726
 
        as_fn_error $? "the location is neither specified nor can be guessed. Please specify with IPPROOT env var or with --with-ipp option" "$LINENO" 5
6727
 
    elif test ! -d $IPPROOT; then
6728
 
        as_fn_error $? "not found" "$LINENO" 5
6729
 
    elif test ! -d $IPPROOT/include; then
6730
 
        as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6731
 
    else
6732
 
        # IPP directory looks okay.
6733
 
        # Remove trailing backslash
6734
 
        IPPROOT=`echo $IPPROOT | sed 's/\/$//'`
6735
 
 
6736
 
        SAVED_CFLAGS="$CFLAGS"
6737
 
        SAVED_LDFLAGS="$LDFLAGS"
6738
 
        SAVED_LIBS="$LIBS"
6739
 
 
6740
 
        IPP_CFLAGS="-I$IPPROOT/include"
6741
 
        IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
6742
 
 
6743
 
#
6744
 
        # Some differences between Mac OS X and Linux
6745
 
        case $target in
6746
 
            *darwin* )
6747
 
                IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
6748
 
                ;;
6749
 
            *)
6750
 
                # Find out where the libraries live.
6751
 
                IPP7_ARCH=""
6752
 
                if test -d $IPPROOT/lib/intel64; then
6753
 
                   IPP7_ARCH="intel64"
6754
 
                elif test -d $IPPROOT/lib/ia32; then
6755
 
                   IPP7_ARCH="ia32"
6756
 
                elif test -d $IPPROOT/lib/mic; then
6757
 
                   IPP7_ARCH="mic"
6758
 
                fi
6759
 
 
6760
 
                if test -z "$IPP7_ARCH"; then
6761
 
                   # IPP6 (and possibly below)
6762
 
                   IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6763
 
                   IPP_LIBS="$IPP_LIBS  -lippsr${IPP_SUFFIX} -lguide"
6764
 
                else
6765
 
                   # IPP7
6766
 
                   if ! test -d $IPPROOT/../compiler; then
6767
 
                        as_fn_error $? "Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly" "$LINENO" 5
6768
 
                   fi
6769
 
                   IPP_CFLAGS="$IPP_CFLAGS"
6770
 
                   IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH"
6771
 
                   IPP_LIBS="$IPP_LIBS -liomp5"
6772
 
                fi
6773
 
                ;;
6774
 
        esac
6775
 
 
6776
 
        #IPP_LDFLAGS="-L$IPPROOT/sharedlib"
6777
 
        #Static:
6778
 
        #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
6779
 
 
6780
 
        CFLAGS="$CFLAGS $IPP_CFLAGS"
6781
 
        LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6782
 
        LIBS="$IPP_LIBS $LIBS"
6783
 
 
6784
 
 
6785
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP usability" >&5
6786
 
$as_echo_n "checking Intel IPP usability... " >&6; }
6787
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788
 
/* end confdefs.h.  */
6789
 
#include <ippcore.h>
6790
 
 
6791
 
int
6792
 
main ()
6793
 
{
6794
 
ippStaticInit();
6795
 
  ;
6796
 
  return 0;
6797
 
}
6798
 
_ACEOF
6799
 
if ac_fn_c_try_link "$LINENO"; then :
6800
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6801
 
$as_echo "ok" >&6; }
6802
 
else
6803
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6804
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6805
 
as_fn_error $? "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
6806
 
See \`config.log' for more details" "$LINENO" 5; }
6807
 
fi
6808
 
rm -f core conftest.err conftest.$ac_objext \
6809
 
    conftest$ac_exeext conftest.$ac_ext
6810
 
 
6811
 
        CFLAGS="$SAVED_CFLAGS"
6812
 
        LDFLAGS="$SAVED_LDFLAGS"
6813
 
        LIBS="$SAVED_LIBS"
6814
 
    fi
6815
 
 
6816
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP samples location" >&5
6817
 
$as_echo_n "checking Intel IPP samples location... " >&6; }
6818
 
 
6819
 
    if test "x$with_ipp_samples" != "xno" -a "x$with_ipp_samples" != "x"; then
6820
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ipp_samples" >&5
6821
 
$as_echo "$with_ipp_samples" >&6; }
6822
 
        IPPSAMPLES=$with_ipp_samples
6823
 
    elif test "x$IPPSAMPLES" = "x"; then
6824
 
        if test -d /opt/intel/ipp-samples; then
6825
 
            IPPSAMPLES=/opt/intel/ipp-samples
6826
 
            { $as_echo "$as_me:${as_lineno-$LINENO}: result: autodetected in $IPPSAMPLES" >&5
6827
 
$as_echo "autodetected in $IPPSAMPLES" >&6; }
6828
 
        fi
6829
 
    else
6830
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMPLES" >&5
6831
 
$as_echo "$IPPSAMPLES" >&6; }
6832
 
    fi
6833
 
 
6834
 
    if test x$IPPSAMPLES = x; then
6835
 
        as_fn_error $? "the location is neither specified nor can be guessed. Please specify with IPPSAMPLES env var or with --with-ipp-samples option" "$LINENO" 5
6836
 
    elif test ! -d $IPPSAMPLES; then
6837
 
        as_fn_error $? "not found" "$LINENO" 5
6838
 
    elif test ! -d $IPPSAMPLES/speech-codecs; then
6839
 
        as_fn_error $? "directory doesn't seem to be valid" "$LINENO" 5
6840
 
    else
6841
 
        # Remove trailing backslash
6842
 
        IPPSAMPLES=`echo $IPPSAMPLES | sed 's/\/$//'`
6843
 
 
6844
 
        # Guess the libusc.a/libspeech.a build location
6845
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC build location" >&5
6846
 
$as_echo_n "checking Intel IPP USC build location... " >&6; }
6847
 
        if test -d $IPPSAMPLES/speech-codecs/bin; then
6848
 
            IPPVER=5
6849
 
            IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
6850
 
        elif test -d $IPPSAMPLES/speech-codecs/_bin; then
6851
 
            IPPVER=6
6852
 
            if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
6853
 
                # gcc compiler
6854
 
                IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
6855
 
            elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
6856
 
                # icc compiler
6857
 
                IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
6858
 
            else
6859
 
                { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6860
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6861
 
as_fn_error $? "Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?
6862
 
See \`config.log' for more details" "$LINENO" 5; }
6863
 
            fi
6864
 
        else
6865
 
            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6866
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6867
 
as_fn_error $? "unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?
6868
 
See \`config.log' for more details" "$LINENO" 5; }
6869
 
        fi
6870
 
 
6871
 
        # Test the directory
6872
 
        if test ! -d $IPPSAMP_DIR; then
6873
 
            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6874
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6875
 
as_fn_error $? "There's something wrong with this script, directory $IPPSAMP_DIR does not exist
6876
 
See \`config.log' for more details" "$LINENO" 5; }
6877
 
            exit 1;
6878
 
        fi
6879
 
 
6880
 
        if test "x$IPPVER" = "x5"; then
6881
 
            IPPSAMP_LIBS="libusc.a"
6882
 
            IPPSAMP_LDLIBS="-lusc"
6883
 
        elif test "x$IPPVER" = "x6"; then
6884
 
            IPPSAMP_LIBS="libspeech.a"
6885
 
            IPPSAMP_LDLIBS="-lspeech"
6886
 
        else
6887
 
            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6888
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6889
 
as_fn_error $? "bug in this script: unsupported IPP version
6890
 
See \`config.log' for more details" "$LINENO" 5; }
6891
 
        fi
6892
 
 
6893
 
        if test ! -f $IPPSAMP_DIR/$IPPSAMP_LIBS; then
6894
 
            { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6895
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6896
 
as_fn_error $? "$IPPSAMP_LIBS doesn't exist in $IPPSAMP_DIR
6897
 
See \`config.log' for more details" "$LINENO" 5; }
6898
 
        fi
6899
 
 
6900
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPPSAMP_DIR" >&5
6901
 
$as_echo "$IPPSAMP_DIR" >&6; }
6902
 
 
6903
 
        SAVED_CFLAGS="$CFLAGS"
6904
 
        SAVED_LDFLAGS="$LDFLAGS"
6905
 
        SAVED_LIBS="$LIBS"
6906
 
 
6907
 
        IPPSAMP_INC="-I$IPPSAMPLES/speech-codecs/core/usc/include"
6908
 
        CFLAGS="$CFLAGS $IPPSAMP_INC"
6909
 
        LDFLAGS="$LDFLAGS -L$IPPSAMP_DIR"
6910
 
        LIBS="$IPPSAMP_LDLIBS $LIBS"
6911
 
 
6912
 
        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Intel IPP USC usability" >&5
6913
 
$as_echo_n "checking Intel IPP USC usability... " >&6; }
6914
 
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915
 
/* end confdefs.h.  */
6916
 
#include <usc.h>
6917
 
 
6918
 
int
6919
 
main ()
6920
 
{
6921
 
extern USC_Fxns USC_G729AFP_Fxns;
6922
 
  ;
6923
 
  return 0;
6924
 
}
6925
 
_ACEOF
6926
 
if ac_fn_c_try_link "$LINENO"; then :
6927
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6928
 
$as_echo "ok" >&6; }
6929
 
else
6930
 
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6931
 
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6932
 
as_fn_error $? "failed
6933
 
See \`config.log' for more details" "$LINENO" 5; }
6934
 
fi
6935
 
rm -f core conftest.err conftest.$ac_objext \
6936
 
    conftest$ac_exeext conftest.$ac_ext
6937
 
 
6938
 
        CFLAGS="$SAVED_CFLAGS"
6939
 
        LDFLAGS="$IPP_LDFLAGS $SAVED_LDFLAGS"
6940
 
        LIBS="$IPP_LIBS $SAVED_LIBS"
6941
 
 
6942
 
        IPP_CFLAGS="$IPP_CFLAGS $IPPSAMP_INC"
6943
 
        IPP_LDFLAGS="$IPP_LDFLAGS -L$IPPSAMP_DIR"
6944
 
        IPP_LIBS="$IPPSAMP_LDLIBS $IPP_LIBS"
6945
 
    fi
6946
 
 
6947
 
    CFLAGS="$CFLAGS $IPP_CFLAGS"
6948
 
    LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
6949
 
    LIBS="$LIBS $IPP_LIBS"
6950
 
 
6951
 
    ac_build_mak_vars="$ac_build_mak_vars\n\
6952
 
export IPP_CFLAGS=$IPP_CFLAGS\n\
6953
 
export IPP_LDFLAGS=$IPP_LDFLAGS\n\
6954
 
export IPP_LIBS=$IPP_LIBS"
6955
 
else
6956
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Skipping Intel IPP settings (not wanted)" >&5
6957
 
$as_echo "Skipping Intel IPP settings (not wanted)" >&6; }
6958
 
fi
6959
 
 
6960
 
 
6961
 
 
6962
 
 
6963
 
# Check whether --with-ssl was given.
6964
 
if test "${with_ssl+set}" = set; then :
6965
 
  withval=$with_ssl;
6966
 
else
6967
 
  with_ssl=no
6968
 
 
6969
 
fi
6970
 
 
6971
 
 
6972
 
if test "x$ac_cross_compile" != "x" -a "x$with_ssl" = "xno"; then
6973
 
    enable_ssl=no
6974
 
fi
6975
 
 
6976
 
 
6977
 
# Check whether --enable-ssl was given.
6978
 
if test "${enable_ssl+set}" = set; then :
6979
 
  enableval=$enable_ssl;
6980
 
                if test "$enable_ssl" = "no"; then
6981
 
                 ac_no_ssl=1
6982
 
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if SSL support is disabled... yes" >&5
6983
 
$as_echo "Checking if SSL support is disabled... yes" >&6; }
6984
 
                fi
6985
 
 
6986
 
else
6987
 
 
6988
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenSSL installations.." >&5
6989
 
$as_echo "checking for OpenSSL installations.." >&6; }
6990
 
                if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
6991
 
                    CFLAGS="$CFLAGS -I$with_ssl/include"
6992
 
                    LDFLAGS="$LDFLAGS -L$with_ssl/lib"
6993
 
                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
6994
 
$as_echo "Using SSL prefix... $with_ssl" >&6; }
6995
 
                fi
6996
 
 
6997
 
 
6998
 
 
6999
 
                ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
7000
 
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
7001
 
  openssl_h_present=1
7002
 
fi
7003
 
 
7004
 
 
7005
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ERR_load_BIO_strings in -lcrypto" >&5
7006
 
$as_echo_n "checking for ERR_load_BIO_strings in -lcrypto... " >&6; }
7007
 
if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
7008
 
  $as_echo_n "(cached) " >&6
7009
 
else
7010
 
  ac_check_lib_save_LIBS=$LIBS
7011
 
LIBS="-lcrypto  $LIBS"
7012
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013
 
/* end confdefs.h.  */
7014
 
 
7015
 
/* Override any GCC internal prototype to avoid an error.
7016
 
   Use char because int might match the return type of a GCC
7017
 
   builtin and then its argument prototype would still apply.  */
7018
 
#ifdef __cplusplus
7019
 
extern "C"
7020
 
#endif
7021
 
char ERR_load_BIO_strings ();
7022
 
int
7023
 
main ()
7024
 
{
7025
 
return ERR_load_BIO_strings ();
7026
 
  ;
7027
 
  return 0;
7028
 
}
7029
 
_ACEOF
7030
 
if ac_fn_c_try_link "$LINENO"; then :
7031
 
  ac_cv_lib_crypto_ERR_load_BIO_strings=yes
7032
 
else
7033
 
  ac_cv_lib_crypto_ERR_load_BIO_strings=no
7034
 
fi
7035
 
rm -f core conftest.err conftest.$ac_objext \
7036
 
    conftest$ac_exeext conftest.$ac_ext
7037
 
LIBS=$ac_check_lib_save_LIBS
7038
 
fi
7039
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
7040
 
$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
7041
 
if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
7042
 
  libcrypto_present=1 && LIBS="$LIBS -lcrypto"
7043
 
fi
7044
 
 
7045
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
7046
 
$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
7047
 
if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
7048
 
  $as_echo_n "(cached) " >&6
7049
 
else
7050
 
  ac_check_lib_save_LIBS=$LIBS
7051
 
LIBS="-lssl  $LIBS"
7052
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053
 
/* end confdefs.h.  */
7054
 
 
7055
 
/* Override any GCC internal prototype to avoid an error.
7056
 
   Use char because int might match the return type of a GCC
7057
 
   builtin and then its argument prototype would still apply.  */
7058
 
#ifdef __cplusplus
7059
 
extern "C"
7060
 
#endif
7061
 
char SSL_library_init ();
7062
 
int
7063
 
main ()
7064
 
{
7065
 
return SSL_library_init ();
7066
 
  ;
7067
 
  return 0;
7068
 
}
7069
 
_ACEOF
7070
 
if ac_fn_c_try_link "$LINENO"; then :
7071
 
  ac_cv_lib_ssl_SSL_library_init=yes
7072
 
else
7073
 
  ac_cv_lib_ssl_SSL_library_init=no
7074
 
fi
7075
 
rm -f core conftest.err conftest.$ac_objext \
7076
 
    conftest$ac_exeext conftest.$ac_ext
7077
 
LIBS=$ac_check_lib_save_LIBS
7078
 
fi
7079
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7080
 
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
7081
 
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
7082
 
  libssl_present=1 && LIBS="$LIBS -lssl"
7083
 
fi
7084
 
 
7085
 
                if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
7086
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL library found, SSL support enabled" >&5
7087
 
$as_echo "OpenSSL library found, SSL support enabled" >&6; }
7088
 
                        # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK
7089
 
                        #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
7090
 
                        $as_echo "#define PJ_HAS_SSL_SOCK 1" >>confdefs.h
7091
 
 
7092
 
                else
7093
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** OpenSSL libraries not found, disabling SSL support **" >&5
7094
 
$as_echo "** OpenSSL libraries not found, disabling SSL support **" >&6; }
7095
 
                fi
7096
 
 
7097
 
fi
7098
 
 
7099
 
 
7100
 
 
7101
 
# Check whether --with-opencore-amrnb was given.
7102
 
if test "${with_opencore_amrnb+set}" = set; then :
7103
 
  withval=$with_opencore_amrnb;
7104
 
else
7105
 
  with_opencore_amrnb=no
7106
 
 
7107
 
fi
7108
 
 
7109
 
 
7110
 
if test "x$ac_cross_compile" != "x" -a "x$with_opencore_amrnb" = "xno"; then
7111
 
    enable_opencore_amrnb=no
7112
 
fi
7113
 
 
7114
 
 
7115
 
# Check whether --enable-opencore_amrnb was given.
7116
 
if test "${enable_opencore_amrnb+set}" = set; then :
7117
 
  enableval=$enable_opencore_amrnb;
7118
 
                if test "$enable_opencore_amrnb" = "no"; then
7119
 
                 ac_no_opencore_amrnb=1
7120
 
                 $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7121
 
 
7122
 
                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if OpenCORE AMR-NB support is disabled... yes" >&5
7123
 
$as_echo "Checking if OpenCORE AMR-NB support is disabled... yes" >&6; }
7124
 
                fi
7125
 
 
7126
 
else
7127
 
 
7128
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for OpenCORE AMR-NB installations.." >&5
7129
 
$as_echo "checking for OpenCORE AMR-NB installations.." >&6; }
7130
 
                if test "x$with_opencore_amrnb" != "xno" -a "x$with_opencore_amrnb" != "x"; then
7131
 
                    CFLAGS="$CFLAGS -I$with_opencore_amrnb/include"
7132
 
                    LDFLAGS="$LDFLAGS -L$with_opencore_amrnb/lib"
7133
 
                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&5
7134
 
$as_echo "Using OpenCORE AMR-NB prefix... $with_opencore_amrnb" >&6; }
7135
 
                fi
7136
 
 
7137
 
 
7138
 
                ac_fn_c_check_header_mongrel "$LINENO" "opencore-amrnb/interf_enc.h" "ac_cv_header_opencore_amrnb_interf_enc_h" "$ac_includes_default"
7139
 
if test "x$ac_cv_header_opencore_amrnb_interf_enc_h" = xyes; then :
7140
 
  opencore_amrnb_h_present=1
7141
 
fi
7142
 
 
7143
 
 
7144
 
                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Encoder_Interface_init in -lopencore-amrnb" >&5
7145
 
$as_echo_n "checking for Encoder_Interface_init in -lopencore-amrnb... " >&6; }
7146
 
if ${ac_cv_lib_opencore_amrnb_Encoder_Interface_init+:} false; then :
7147
 
  $as_echo_n "(cached) " >&6
7148
 
else
7149
 
  ac_check_lib_save_LIBS=$LIBS
7150
 
LIBS="-lopencore-amrnb  $LIBS"
7151
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152
 
/* end confdefs.h.  */
7153
 
 
7154
 
/* Override any GCC internal prototype to avoid an error.
7155
 
   Use char because int might match the return type of a GCC
7156
 
   builtin and then its argument prototype would still apply.  */
7157
 
#ifdef __cplusplus
7158
 
extern "C"
7159
 
#endif
7160
 
char Encoder_Interface_init ();
7161
 
int
7162
 
main ()
7163
 
{
7164
 
return Encoder_Interface_init ();
7165
 
  ;
7166
 
  return 0;
7167
 
}
7168
 
_ACEOF
7169
 
if ac_fn_c_try_link "$LINENO"; then :
7170
 
  ac_cv_lib_opencore_amrnb_Encoder_Interface_init=yes
7171
 
else
7172
 
  ac_cv_lib_opencore_amrnb_Encoder_Interface_init=no
7173
 
fi
7174
 
rm -f core conftest.err conftest.$ac_objext \
7175
 
    conftest$ac_exeext conftest.$ac_ext
7176
 
LIBS=$ac_check_lib_save_LIBS
7177
 
fi
7178
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&5
7179
 
$as_echo "$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" >&6; }
7180
 
if test "x$ac_cv_lib_opencore_amrnb_Encoder_Interface_init" = xyes; then :
7181
 
  opencore_amrnb_present=1 && LIBS="$LIBS -lopencore-amrnb"
7182
 
fi
7183
 
 
7184
 
                if test "x$opencore_amrnb_h_present" = "x1" -a "x$opencore_amrnb_present" = "x1"; then
7185
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenCORE AMR-NB library found, AMR-NB support enabled" >&5
7186
 
$as_echo "OpenCORE AMR-NB library found, AMR-NB support enabled" >&6; }
7187
 
                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 1" >>confdefs.h
7188
 
 
7189
 
                else
7190
 
                        ac_no_opencore_amrnb=1
7191
 
                        $as_echo "#define PJMEDIA_HAS_OPENCORE_AMRNB_CODEC 0" >>confdefs.h
7192
 
 
7193
 
                fi
7194
 
 
7195
 
fi
7196
 
 
7197
 
 
7198
 
 
7199
 
 
7200
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if select() needs correct nfds" >&5
7201
 
$as_echo_n "checking if select() needs correct nfds... " >&6; }
7202
 
case $target in
7203
 
  *rtems*) $as_echo "#define PJ_SELECT_NEEDS_NFDS 1" >>confdefs.h
7204
 
 
7205
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206
 
$as_echo "yes" >&6; }
7207
 
        ;;
7208
 
  *) $as_echo "#define PJ_SELECT_NEEDS_NFDS 0" >>confdefs.h
7209
 
 
7210
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7211
 
$as_echo "no (default)" >&6; }
7212
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Decided that select() doesn't need correct nfds (please check)" >&5
7213
 
$as_echo "** Decided that select() doesn't need correct nfds (please check)" >&6; }
7214
 
        ;;
7215
 
esac
7216
 
 
7217
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should enforce stack size" >&5
7218
 
$as_echo_n "checking if pj_thread_create() should enforce stack size... " >&6; }
7219
 
case $target in
7220
 
  *rtems*) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 1" >>confdefs.h
7221
 
 
7222
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7223
 
$as_echo "yes" >&6; }
7224
 
        ;;
7225
 
  *) $as_echo "#define PJ_THREAD_SET_STACK_SIZE 0" >>confdefs.h
7226
 
 
7227
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7228
 
$as_echo "no (default)" >&6; }
7229
 
        ;;
7230
 
esac
7231
 
 
7232
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if pj_thread_create() should allocate stack" >&5
7233
 
$as_echo_n "checking if pj_thread_create() should allocate stack... " >&6; }
7234
 
case $target in
7235
 
  *rtems*) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 1" >>confdefs.h
7236
 
 
7237
 
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7238
 
$as_echo "yes" >&6; }
7239
 
        ;;
7240
 
  *) $as_echo "#define PJ_THREAD_ALLOCATE_STACK 0" >>confdefs.h
7241
 
 
7242
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
7243
 
$as_echo "no (default)" >&6; }
7244
 
        ;;
7245
 
esac
7246
 
 
7247
 
case $target in
7248
 
  *mingw* | *cygw* | *win32* | *w32* )
7249
 
        $as_echo "#define PJ_BLOCKING_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7250
 
 
7251
 
        ;;
7252
 
  *) $as_echo "#define PJ_BLOCKING_ERROR_VAL EAGAIN" >>confdefs.h
7253
 
 
7254
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking recv() retval to EAGAIN (please check)" >&5
7255
 
$as_echo "** Setting non-blocking recv() retval to EAGAIN (please check)" >&6; }
7256
 
        ;;
7257
 
esac
7258
 
 
7259
 
case $target in
7260
 
  *mingw* | *cygw* | *win32* | *w32* )
7261
 
        $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL WSAEWOULDBLOCK" >>confdefs.h
7262
 
 
7263
 
        ;;
7264
 
  *) $as_echo "#define PJ_BLOCKING_CONNECT_ERROR_VAL EINPROGRESS" >>confdefs.h
7265
 
 
7266
 
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&5
7267
 
$as_echo "** Setting non-blocking connect() retval to EINPROGRESS (please check)" >&6; }
7268
 
        ;;
7269
 
esac
7270
 
 
7271
 
 
7272
 
 
7273
 
ac_linux_poll=select
7274
 
 
7275
 
ac_host=unix
7276
 
 
7277
 
 
7278
 
case $target in
7279
 
  *rtems*)
7280
 
        ac_main_obj=main_rtems.o
7281
 
        ;;
7282
 
  *)
7283
 
        ac_main_obj=main.o
7284
 
        ;;
7285
 
esac
7286
 
 
7287
 
 
7288
 
ac_build_mak_vars=`echo $ac_build_mak_vars | sed 's/\\\\n/\n/g'`
7289
 
cat >confcache <<\_ACEOF
7290
 
# This file is a shell script that caches the results of configure
7291
 
# tests run on this system so they can be shared between configure
7292
 
# scripts and configure runs, see configure's option --config-cache.
7293
 
# It is not useful on other systems.  If it contains results you don't
7294
 
# want to keep, you may remove or edit it.
7295
 
#
7296
 
# config.status only pays attention to the cache file if you give it
7297
 
# the --recheck option to rerun configure.
7298
 
#
7299
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7300
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7301
 
# following values.
7302
 
 
7303
 
_ACEOF
7304
 
 
7305
 
# The following way of writing the cache mishandles newlines in values,
7306
 
# but we know of no workaround that is simple, portable, and efficient.
7307
 
# So, we kill variables containing newlines.
7308
 
# Ultrix sh set writes to stderr and can't be redirected directly,
7309
 
# and sets the high bit in the cache file unless we assign to the vars.
7310
 
(
7311
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7312
 
    eval ac_val=\$$ac_var
7313
 
    case $ac_val in #(
7314
 
    *${as_nl}*)
7315
 
      case $ac_var in #(
7316
 
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7317
 
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7318
 
      esac
7319
 
      case $ac_var in #(
7320
 
      _ | IFS | as_nl) ;; #(
7321
 
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7322
 
      *) { eval $ac_var=; unset $ac_var;} ;;
7323
 
      esac ;;
7324
 
    esac
7325
 
  done
7326
 
 
7327
 
  (set) 2>&1 |
7328
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7329
 
    *${as_nl}ac_space=\ *)
7330
 
      # `set' does not quote correctly, so add quotes: double-quote
7331
 
      # substitution turns \\\\ into \\, and sed turns \\ into \.
7332
 
      sed -n \
7333
 
        "s/'/'\\\\''/g;
7334
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7335
 
      ;; #(
7336
 
    *)
7337
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
7338
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7339
 
      ;;
7340
 
    esac |
7341
 
    sort
7342
 
) |
7343
 
  sed '
7344
 
     /^ac_cv_env_/b end
7345
 
     t clear
7346
 
     :clear
7347
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7348
 
     t end
7349
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7350
 
     :end' >>confcache
7351
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7352
 
  if test -w "$cache_file"; then
7353
 
    if test "x$cache_file" != "x/dev/null"; then
7354
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7355
 
$as_echo "$as_me: updating cache $cache_file" >&6;}
7356
 
      if test ! -f "$cache_file" || test -h "$cache_file"; then
7357
 
        cat confcache >"$cache_file"
7358
 
      else
7359
 
        case $cache_file in #(
7360
 
        */* | ?:*)
7361
 
          mv -f confcache "$cache_file"$$ &&
7362
 
          mv -f "$cache_file"$$ "$cache_file" ;; #(
7363
 
        *)
7364
 
          mv -f confcache "$cache_file" ;;
7365
 
        esac
7366
 
      fi
7367
 
    fi
7368
 
  else
7369
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7370
 
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7371
 
  fi
7372
 
fi
7373
 
rm -f confcache
7374
 
 
7375
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7376
 
# Let make expand exec_prefix.
7377
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7378
 
 
7379
 
DEFS=-DHAVE_CONFIG_H
7380
 
 
7381
 
ac_libobjs=
7382
 
ac_ltlibobjs=
7383
 
U=
7384
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7385
 
  # 1. Remove the extension, and $U if already installed.
7386
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7387
 
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7388
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7389
 
  #    will be set to the directory where LIBOBJS objects are built.
7390
 
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7391
 
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7392
 
done
7393
 
LIBOBJS=$ac_libobjs
7394
 
 
7395
 
LTLIBOBJS=$ac_ltlibobjs
7396
 
 
7397
 
 
7398
 
 
7399
 
 
7400
 
: "${CONFIG_STATUS=./config.status}"
7401
 
ac_write_fail=0
7402
 
ac_clean_files_save=$ac_clean_files
7403
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7404
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7405
 
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7406
 
as_write_fail=0
7407
 
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7408
 
#! $SHELL
7409
 
# Generated by $as_me.
7410
 
# Run this file to recreate the current configuration.
7411
 
# Compiler output produced by configure, useful for debugging
7412
 
# configure, is in config.log if it exists.
7413
 
 
7414
 
debug=false
7415
 
ac_cs_recheck=false
7416
 
ac_cs_silent=false
7417
 
 
7418
 
SHELL=\${CONFIG_SHELL-$SHELL}
7419
 
export SHELL
7420
 
_ASEOF
7421
 
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7422
 
## -------------------- ##
7423
 
## M4sh Initialization. ##
7424
 
## -------------------- ##
7425
 
 
7426
 
# Be more Bourne compatible
7427
 
DUALCASE=1; export DUALCASE # for MKS sh
7428
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7429
 
  emulate sh
7430
 
  NULLCMD=:
7431
 
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7432
 
  # is contrary to our usage.  Disable this feature.
7433
 
  alias -g '${1+"$@"}'='"$@"'
7434
 
  setopt NO_GLOB_SUBST
7435
 
else
7436
 
  case `(set -o) 2>/dev/null` in #(
7437
 
  *posix*) :
7438
 
    set -o posix ;; #(
7439
 
  *) :
7440
 
     ;;
7441
 
esac
7442
 
fi
7443
 
 
7444
 
 
7445
 
as_nl='
7446
 
'
7447
 
export as_nl
7448
 
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7449
 
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7450
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7451
 
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7452
 
# Prefer a ksh shell builtin over an external printf program on Solaris,
7453
 
# but without wasting forks for bash or zsh.
7454
 
if test -z "$BASH_VERSION$ZSH_VERSION" \
7455
 
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7456
 
  as_echo='print -r --'
7457
 
  as_echo_n='print -rn --'
7458
 
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7459
 
  as_echo='printf %s\n'
7460
 
  as_echo_n='printf %s'
7461
 
else
7462
 
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7463
 
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7464
 
    as_echo_n='/usr/ucb/echo -n'
7465
 
  else
7466
 
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7467
 
    as_echo_n_body='eval
7468
 
      arg=$1;
7469
 
      case $arg in #(
7470
 
      *"$as_nl"*)
7471
 
        expr "X$arg" : "X\\(.*\\)$as_nl";
7472
 
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7473
 
      esac;
7474
 
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7475
 
    '
7476
 
    export as_echo_n_body
7477
 
    as_echo_n='sh -c $as_echo_n_body as_echo'
7478
 
  fi
7479
 
  export as_echo_body
7480
 
  as_echo='sh -c $as_echo_body as_echo'
7481
 
fi
7482
 
 
7483
 
# The user is always right.
7484
 
if test "${PATH_SEPARATOR+set}" != set; then
7485
 
  PATH_SEPARATOR=:
7486
 
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7487
 
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7488
 
      PATH_SEPARATOR=';'
7489
 
  }
7490
 
fi
7491
 
 
7492
 
 
7493
 
# IFS
7494
 
# We need space, tab and new line, in precisely that order.  Quoting is
7495
 
# there to prevent editors from complaining about space-tab.
7496
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7497
 
# splitting by setting IFS to empty value.)
7498
 
IFS=" ""        $as_nl"
7499
 
 
7500
 
# Find who we are.  Look in the path if we contain no directory separator.
7501
 
as_myself=
7502
 
case $0 in #((
7503
 
  *[\\/]* ) as_myself=$0 ;;
7504
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505
 
for as_dir in $PATH
7506
 
do
7507
 
  IFS=$as_save_IFS
7508
 
  test -z "$as_dir" && as_dir=.
7509
 
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7510
 
  done
7511
 
IFS=$as_save_IFS
7512
 
 
7513
 
     ;;
7514
 
esac
7515
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
7516
 
# in which case we are not to be found in the path.
7517
 
if test "x$as_myself" = x; then
7518
 
  as_myself=$0
7519
 
fi
7520
 
if test ! -f "$as_myself"; then
7521
 
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7522
 
  exit 1
7523
 
fi
7524
 
 
7525
 
# Unset variables that we do not need and which cause bugs (e.g. in
7526
 
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7527
 
# suppresses any "Segmentation fault" message there.  '((' could
7528
 
# trigger a bug in pdksh 5.2.14.
7529
 
for as_var in BASH_ENV ENV MAIL MAILPATH
7530
 
do eval test x\${$as_var+set} = xset \
7531
 
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7532
 
done
7533
 
PS1='$ '
7534
 
PS2='> '
7535
 
PS4='+ '
7536
 
 
7537
 
# NLS nuisances.
7538
 
LC_ALL=C
7539
 
export LC_ALL
7540
 
LANGUAGE=C
7541
 
export LANGUAGE
7542
 
 
7543
 
# CDPATH.
7544
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7545
 
 
7546
 
 
7547
 
# as_fn_error STATUS ERROR [LINENO LOG_FD]
7548
 
# ----------------------------------------
7549
 
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7550
 
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7551
 
# script with STATUS, using 1 if that was 0.
7552
 
as_fn_error ()
7553
 
{
7554
 
  as_status=$1; test $as_status -eq 0 && as_status=1
7555
 
  if test "$4"; then
7556
 
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7557
 
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7558
 
  fi
7559
 
  $as_echo "$as_me: error: $2" >&2
7560
 
  as_fn_exit $as_status
7561
 
} # as_fn_error
7562
 
 
7563
 
 
7564
 
# as_fn_set_status STATUS
7565
 
# -----------------------
7566
 
# Set $? to STATUS, without forking.
7567
 
as_fn_set_status ()
7568
 
{
7569
 
  return $1
7570
 
} # as_fn_set_status
7571
 
 
7572
 
# as_fn_exit STATUS
7573
 
# -----------------
7574
 
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7575
 
as_fn_exit ()
7576
 
{
7577
 
  set +e
7578
 
  as_fn_set_status $1
7579
 
  exit $1
7580
 
} # as_fn_exit
7581
 
 
7582
 
# as_fn_unset VAR
7583
 
# ---------------
7584
 
# Portably unset VAR.
7585
 
as_fn_unset ()
7586
 
{
7587
 
  { eval $1=; unset $1;}
7588
 
}
7589
 
as_unset=as_fn_unset
7590
 
# as_fn_append VAR VALUE
7591
 
# ----------------------
7592
 
# Append the text in VALUE to the end of the definition contained in VAR. Take
7593
 
# advantage of any shell optimizations that allow amortized linear growth over
7594
 
# repeated appends, instead of the typical quadratic growth present in naive
7595
 
# implementations.
7596
 
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7597
 
  eval 'as_fn_append ()
7598
 
  {
7599
 
    eval $1+=\$2
7600
 
  }'
7601
 
else
7602
 
  as_fn_append ()
7603
 
  {
7604
 
    eval $1=\$$1\$2
7605
 
  }
7606
 
fi # as_fn_append
7607
 
 
7608
 
# as_fn_arith ARG...
7609
 
# ------------------
7610
 
# Perform arithmetic evaluation on the ARGs, and store the result in the
7611
 
# global $as_val. Take advantage of shells that can avoid forks. The arguments
7612
 
# must be portable across $(()) and expr.
7613
 
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7614
 
  eval 'as_fn_arith ()
7615
 
  {
7616
 
    as_val=$(( $* ))
7617
 
  }'
7618
 
else
7619
 
  as_fn_arith ()
7620
 
  {
7621
 
    as_val=`expr "$@" || test $? -eq 1`
7622
 
  }
7623
 
fi # as_fn_arith
7624
 
 
7625
 
 
7626
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
7627
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7628
 
  as_expr=expr
7629
 
else
7630
 
  as_expr=false
7631
 
fi
7632
 
 
7633
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7634
 
  as_basename=basename
7635
 
else
7636
 
  as_basename=false
7637
 
fi
7638
 
 
7639
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7640
 
  as_dirname=dirname
7641
 
else
7642
 
  as_dirname=false
7643
 
fi
7644
 
 
7645
 
as_me=`$as_basename -- "$0" ||
7646
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7647
 
         X"$0" : 'X\(//\)$' \| \
7648
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7649
 
$as_echo X/"$0" |
7650
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
7651
 
            s//\1/
7652
 
            q
7653
 
          }
7654
 
          /^X\/\(\/\/\)$/{
7655
 
            s//\1/
7656
 
            q
7657
 
          }
7658
 
          /^X\/\(\/\).*/{
7659
 
            s//\1/
7660
 
            q
7661
 
          }
7662
 
          s/.*/./; q'`
7663
 
 
7664
 
# Avoid depending upon Character Ranges.
7665
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7666
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7667
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7668
 
as_cr_digits='0123456789'
7669
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
7670
 
 
7671
 
ECHO_C= ECHO_N= ECHO_T=
7672
 
case `echo -n x` in #(((((
7673
 
-n*)
7674
 
  case `echo 'xy\c'` in
7675
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7676
 
  xy)  ECHO_C='\c';;
7677
 
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7678
 
       ECHO_T=' ';;
7679
 
  esac;;
7680
 
*)
7681
 
  ECHO_N='-n';;
7682
 
esac
7683
 
 
7684
 
rm -f conf$$ conf$$.exe conf$$.file
7685
 
if test -d conf$$.dir; then
7686
 
  rm -f conf$$.dir/conf$$.file
7687
 
else
7688
 
  rm -f conf$$.dir
7689
 
  mkdir conf$$.dir 2>/dev/null
7690
 
fi
7691
 
if (echo >conf$$.file) 2>/dev/null; then
7692
 
  if ln -s conf$$.file conf$$ 2>/dev/null; then
7693
 
    as_ln_s='ln -s'
7694
 
    # ... but there are two gotchas:
7695
 
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7696
 
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7697
 
    # In both cases, we have to default to `cp -pR'.
7698
 
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7699
 
      as_ln_s='cp -pR'
7700
 
  elif ln conf$$.file conf$$ 2>/dev/null; then
7701
 
    as_ln_s=ln
7702
 
  else
7703
 
    as_ln_s='cp -pR'
7704
 
  fi
7705
 
else
7706
 
  as_ln_s='cp -pR'
7707
 
fi
7708
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7709
 
rmdir conf$$.dir 2>/dev/null
7710
 
 
7711
 
 
7712
 
# as_fn_mkdir_p
7713
 
# -------------
7714
 
# Create "$as_dir" as a directory, including parents if necessary.
7715
 
as_fn_mkdir_p ()
7716
 
{
7717
 
 
7718
 
  case $as_dir in #(
7719
 
  -*) as_dir=./$as_dir;;
7720
 
  esac
7721
 
  test -d "$as_dir" || eval $as_mkdir_p || {
7722
 
    as_dirs=
7723
 
    while :; do
7724
 
      case $as_dir in #(
7725
 
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7726
 
      *) as_qdir=$as_dir;;
7727
 
      esac
7728
 
      as_dirs="'$as_qdir' $as_dirs"
7729
 
      as_dir=`$as_dirname -- "$as_dir" ||
7730
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7731
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
7732
 
         X"$as_dir" : 'X\(//\)$' \| \
7733
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7734
 
$as_echo X"$as_dir" |
7735
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7736
 
            s//\1/
7737
 
            q
7738
 
          }
7739
 
          /^X\(\/\/\)[^/].*/{
7740
 
            s//\1/
7741
 
            q
7742
 
          }
7743
 
          /^X\(\/\/\)$/{
7744
 
            s//\1/
7745
 
            q
7746
 
          }
7747
 
          /^X\(\/\).*/{
7748
 
            s//\1/
7749
 
            q
7750
 
          }
7751
 
          s/.*/./; q'`
7752
 
      test -d "$as_dir" && break
7753
 
    done
7754
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
7755
 
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7756
 
 
7757
 
 
7758
 
} # as_fn_mkdir_p
7759
 
if mkdir -p . 2>/dev/null; then
7760
 
  as_mkdir_p='mkdir -p "$as_dir"'
7761
 
else
7762
 
  test -d ./-p && rmdir ./-p
7763
 
  as_mkdir_p=false
7764
 
fi
7765
 
 
7766
 
 
7767
 
# as_fn_executable_p FILE
7768
 
# -----------------------
7769
 
# Test if FILE is an executable regular file.
7770
 
as_fn_executable_p ()
7771
 
{
7772
 
  test -f "$1" && test -x "$1"
7773
 
} # as_fn_executable_p
7774
 
as_test_x='test -x'
7775
 
as_executable_p=as_fn_executable_p
7776
 
 
7777
 
# Sed expression to map a string onto a valid CPP name.
7778
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7779
 
 
7780
 
# Sed expression to map a string onto a valid variable name.
7781
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7782
 
 
7783
 
 
7784
 
exec 6>&1
7785
 
## ----------------------------------- ##
7786
 
## Main body of $CONFIG_STATUS script. ##
7787
 
## ----------------------------------- ##
7788
 
_ASEOF
7789
 
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7790
 
 
7791
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7792
 
# Save the log message, to keep $0 and so on meaningful, and to
7793
 
# report actual input values of CONFIG_FILES etc. instead of their
7794
 
# values after options handling.
7795
 
ac_log="
7796
 
This file was extended by pjproject $as_me 2.x, which was
7797
 
generated by GNU Autoconf 2.69.  Invocation command line was
7798
 
 
7799
 
  CONFIG_FILES    = $CONFIG_FILES
7800
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
7801
 
  CONFIG_LINKS    = $CONFIG_LINKS
7802
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
7803
 
  $ $0 $@
7804
 
 
7805
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
7806
 
"
7807
 
 
7808
 
_ACEOF
7809
 
 
7810
 
case $ac_config_files in *"
7811
 
"*) set x $ac_config_files; shift; ac_config_files=$*;;
7812
 
esac
7813
 
 
7814
 
case $ac_config_headers in *"
7815
 
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7816
 
esac
7817
 
 
7818
 
 
7819
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7820
 
# Files that config.status was made for.
7821
 
config_files="$ac_config_files"
7822
 
config_headers="$ac_config_headers"
7823
 
 
7824
 
_ACEOF
7825
 
 
7826
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7827
 
ac_cs_usage="\
7828
 
\`$as_me' instantiates files and other configuration actions
7829
 
from templates according to the current configuration.  Unless the files
7830
 
and actions are specified as TAGs, all are instantiated by default.
7831
 
 
7832
 
Usage: $0 [OPTION]... [TAG]...
7833
 
 
7834
 
  -h, --help       print this help, then exit
7835
 
  -V, --version    print version number and configuration settings, then exit
7836
 
      --config     print configuration, then exit
7837
 
  -q, --quiet, --silent
7838
 
                   do not print progress messages
7839
 
  -d, --debug      don't remove temporary files
7840
 
      --recheck    update $as_me by reconfiguring in the same conditions
7841
 
      --file=FILE[:TEMPLATE]
7842
 
                   instantiate the configuration file FILE
7843
 
      --header=FILE[:TEMPLATE]
7844
 
                   instantiate the configuration header FILE
7845
 
 
7846
 
Configuration files:
7847
 
$config_files
7848
 
 
7849
 
Configuration headers:
7850
 
$config_headers
7851
 
 
7852
 
Report bugs to the package provider."
7853
 
 
7854
 
_ACEOF
7855
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7856
 
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7857
 
ac_cs_version="\\
7858
 
pjproject config.status 2.x
7859
 
configured by $0, generated by GNU Autoconf 2.69,
7860
 
  with options \\"\$ac_cs_config\\"
7861
 
 
7862
 
Copyright (C) 2012 Free Software Foundation, Inc.
7863
 
This config.status script is free software; the Free Software Foundation
7864
 
gives unlimited permission to copy, distribute and modify it."
7865
 
 
7866
 
ac_pwd='$ac_pwd'
7867
 
srcdir='$srcdir'
7868
 
test -n "\$AWK" || AWK=awk
7869
 
_ACEOF
7870
 
 
7871
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7872
 
# The default lists apply if the user does not specify any file.
7873
 
ac_need_defaults=:
7874
 
while test $# != 0
7875
 
do
7876
 
  case $1 in
7877
 
  --*=?*)
7878
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7879
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7880
 
    ac_shift=:
7881
 
    ;;
7882
 
  --*=)
7883
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7884
 
    ac_optarg=
7885
 
    ac_shift=:
7886
 
    ;;
7887
 
  *)
7888
 
    ac_option=$1
7889
 
    ac_optarg=$2
7890
 
    ac_shift=shift
7891
 
    ;;
7892
 
  esac
7893
 
 
7894
 
  case $ac_option in
7895
 
  # Handling of the options.
7896
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7897
 
    ac_cs_recheck=: ;;
7898
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7899
 
    $as_echo "$ac_cs_version"; exit ;;
7900
 
  --config | --confi | --conf | --con | --co | --c )
7901
 
    $as_echo "$ac_cs_config"; exit ;;
7902
 
  --debug | --debu | --deb | --de | --d | -d )
7903
 
    debug=: ;;
7904
 
  --file | --fil | --fi | --f )
7905
 
    $ac_shift
7906
 
    case $ac_optarg in
7907
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7908
 
    '') as_fn_error $? "missing file argument" ;;
7909
 
    esac
7910
 
    as_fn_append CONFIG_FILES " '$ac_optarg'"
7911
 
    ac_need_defaults=false;;
7912
 
  --header | --heade | --head | --hea )
7913
 
    $ac_shift
7914
 
    case $ac_optarg in
7915
 
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7916
 
    esac
7917
 
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7918
 
    ac_need_defaults=false;;
7919
 
  --he | --h)
7920
 
    # Conflict between --help and --header
7921
 
    as_fn_error $? "ambiguous option: \`$1'
7922
 
Try \`$0 --help' for more information.";;
7923
 
  --help | --hel | -h )
7924
 
    $as_echo "$ac_cs_usage"; exit ;;
7925
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7926
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7927
 
    ac_cs_silent=: ;;
7928
 
 
7929
 
  # This is an error.
7930
 
  -*) as_fn_error $? "unrecognized option: \`$1'
7931
 
Try \`$0 --help' for more information." ;;
7932
 
 
7933
 
  *) as_fn_append ac_config_targets " $1"
7934
 
     ac_need_defaults=false ;;
7935
 
 
7936
 
  esac
7937
 
  shift
7938
 
done
7939
 
 
7940
 
ac_configure_extra_args=
7941
 
 
7942
 
if $ac_cs_silent; then
7943
 
  exec 6>/dev/null
7944
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
7945
 
fi
7946
 
 
7947
 
_ACEOF
7948
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7949
 
if \$ac_cs_recheck; then
7950
 
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7951
 
  shift
7952
 
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7953
 
  CONFIG_SHELL='$SHELL'
7954
 
  export CONFIG_SHELL
7955
 
  exec "\$@"
7956
 
fi
7957
 
 
7958
 
_ACEOF
7959
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7960
 
exec 5>>config.log
7961
 
{
7962
 
  echo
7963
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7964
 
## Running $as_me. ##
7965
 
_ASBOX
7966
 
  $as_echo "$ac_log"
7967
 
} >&5
7968
 
 
7969
 
_ACEOF
7970
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7971
 
_ACEOF
7972
 
 
7973
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7974
 
 
7975
 
# Handling of arguments.
7976
 
for ac_config_target in $ac_config_targets
7977
 
do
7978
 
  case $ac_config_target in
7979
 
    "pjlib/include/pj/compat/os_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/os_auto.h" ;;
7980
 
    "pjlib/include/pj/compat/m_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjlib/include/pj/compat/m_auto.h" ;;
7981
 
    "pjmedia/include/pjmedia/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia/config_auto.h" ;;
7982
 
    "pjmedia/include/pjmedia-codec/config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS pjmedia/include/pjmedia-codec/config_auto.h" ;;
7983
 
    "pjsip/include/pjsip/sip_autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS pjsip/include/pjsip/sip_autoconf.h" ;;
7984
 
    "build.mak") CONFIG_FILES="$CONFIG_FILES build.mak" ;;
7985
 
    "build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES build/os-auto.mak" ;;
7986
 
    "build/cc-auto.mak") CONFIG_FILES="$CONFIG_FILES build/cc-auto.mak" ;;
7987
 
    "pjlib/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib/build/os-auto.mak" ;;
7988
 
    "pjlib-util/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjlib-util/build/os-auto.mak" ;;
7989
 
    "pjmedia/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjmedia/build/os-auto.mak" ;;
7990
 
    "pjsip/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES pjsip/build/os-auto.mak" ;;
7991
 
    "third_party/build/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/os-auto.mak" ;;
7992
 
    "third_party/build/portaudio/os-auto.mak") CONFIG_FILES="$CONFIG_FILES third_party/build/portaudio/os-auto.mak" ;;
7993
 
 
7994
 
  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7995
 
  esac
7996
 
done
7997
 
 
7998
 
 
7999
 
# If the user did not use the arguments to specify the items to instantiate,
8000
 
# then the envvar interface is used.  Set only those that are not.
8001
 
# We use the long form for the default assignment because of an extremely
8002
 
# bizarre bug on SunOS 4.1.3.
8003
 
if $ac_need_defaults; then
8004
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8005
 
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8006
 
fi
8007
 
 
8008
 
# Have a temporary directory for convenience.  Make it in the build tree
8009
 
# simply because there is no reason against having it here, and in addition,
8010
 
# creating and moving files from /tmp can sometimes cause problems.
8011
 
# Hook for its removal unless debugging.
8012
 
# Note that there is a small window in which the directory will not be cleaned:
8013
 
# after its creation but before its name has been assigned to `$tmp'.
8014
 
$debug ||
8015
 
{
8016
 
  tmp= ac_tmp=
8017
 
  trap 'exit_status=$?
8018
 
  : "${ac_tmp:=$tmp}"
8019
 
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8020
 
' 0
8021
 
  trap 'as_fn_exit 1' 1 2 13 15
8022
 
}
8023
 
# Create a (secure) tmp directory for tmp files.
8024
 
 
8025
 
{
8026
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8027
 
  test -d "$tmp"
8028
 
}  ||
8029
 
{
8030
 
  tmp=./conf$$-$RANDOM
8031
 
  (umask 077 && mkdir "$tmp")
8032
 
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8033
 
ac_tmp=$tmp
8034
 
 
8035
 
# Set up the scripts for CONFIG_FILES section.
8036
 
# No need to generate them if there are no CONFIG_FILES.
8037
 
# This happens for instance with `./config.status config.h'.
8038
 
if test -n "$CONFIG_FILES"; then
8039
 
 
8040
 
 
8041
 
ac_cr=`echo X | tr X '\015'`
8042
 
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8043
 
# But we know of no other shell where ac_cr would be empty at this
8044
 
# point, so we can use a bashism as a fallback.
8045
 
if test "x$ac_cr" = x; then
8046
 
  eval ac_cr=\$\'\\r\'
8047
 
fi
8048
 
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8049
 
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8050
 
  ac_cs_awk_cr='\\r'
8051
 
else
8052
 
  ac_cs_awk_cr=$ac_cr
8053
 
fi
8054
 
 
8055
 
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8056
 
_ACEOF
8057
 
 
8058
 
 
8059
 
{
8060
 
  echo "cat >conf$$subs.awk <<_ACEOF" &&
8061
 
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8062
 
  echo "_ACEOF"
8063
 
} >conf$$subs.sh ||
8064
 
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8065
 
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8066
 
ac_delim='%!_!# '
8067
 
for ac_last_try in false false false false false :; do
8068
 
  . ./conf$$subs.sh ||
8069
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8070
 
 
8071
 
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8072
 
  if test $ac_delim_n = $ac_delim_num; then
8073
 
    break
8074
 
  elif $ac_last_try; then
8075
 
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8076
 
  else
8077
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8078
 
  fi
8079
 
done
8080
 
rm -f conf$$subs.sh
8081
 
 
8082
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8083
 
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8084
 
_ACEOF
8085
 
sed -n '
8086
 
h
8087
 
s/^/S["/; s/!.*/"]=/
8088
 
p
8089
 
g
8090
 
s/^[^!]*!//
8091
 
:repl
8092
 
t repl
8093
 
s/'"$ac_delim"'$//
8094
 
t delim
8095
 
:nl
8096
 
h
8097
 
s/\(.\{148\}\)..*/\1/
8098
 
t more1
8099
 
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8100
 
p
8101
 
n
8102
 
b repl
8103
 
:more1
8104
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8105
 
p
8106
 
g
8107
 
s/.\{148\}//
8108
 
t nl
8109
 
:delim
8110
 
h
8111
 
s/\(.\{148\}\)..*/\1/
8112
 
t more2
8113
 
s/["\\]/\\&/g; s/^/"/; s/$/"/
8114
 
p
8115
 
b
8116
 
:more2
8117
 
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8118
 
p
8119
 
g
8120
 
s/.\{148\}//
8121
 
t delim
8122
 
' <conf$$subs.awk | sed '
8123
 
/^[^""]/{
8124
 
  N
8125
 
  s/\n//
8126
 
}
8127
 
' >>$CONFIG_STATUS || ac_write_fail=1
8128
 
rm -f conf$$subs.awk
8129
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8130
 
_ACAWK
8131
 
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8132
 
  for (key in S) S_is_set[key] = 1
8133
 
  FS = ""
8134
 
 
8135
 
}
8136
 
{
8137
 
  line = $ 0
8138
 
  nfields = split(line, field, "@")
8139
 
  substed = 0
8140
 
  len = length(field[1])
8141
 
  for (i = 2; i < nfields; i++) {
8142
 
    key = field[i]
8143
 
    keylen = length(key)
8144
 
    if (S_is_set[key]) {
8145
 
      value = S[key]
8146
 
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8147
 
      len += length(value) + length(field[++i])
8148
 
      substed = 1
8149
 
    } else
8150
 
      len += 1 + keylen
8151
 
  }
8152
 
 
8153
 
  print line
8154
 
}
8155
 
 
8156
 
_ACAWK
8157
 
_ACEOF
8158
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8159
 
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8160
 
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8161
 
else
8162
 
  cat
8163
 
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8164
 
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8165
 
_ACEOF
8166
 
 
8167
 
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8168
 
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8169
 
# trailing colons and then remove the whole line if VPATH becomes empty
8170
 
# (actually we leave an empty line to preserve line numbers).
8171
 
if test "x$srcdir" = x.; then
8172
 
  ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
8173
 
h
8174
 
s///
8175
 
s/^/:/
8176
 
s/[      ]*$/:/
8177
 
s/:\$(srcdir):/:/g
8178
 
s/:\${srcdir}:/:/g
8179
 
s/:@srcdir@:/:/g
8180
 
s/^:*//
8181
 
s/:*$//
8182
 
x
8183
 
s/\(=[   ]*\).*/\1/
8184
 
G
8185
 
s/\n//
8186
 
s/^[^=]*=[       ]*$//
8187
 
}'
8188
 
fi
8189
 
 
8190
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8191
 
fi # test -n "$CONFIG_FILES"
8192
 
 
8193
 
# Set up the scripts for CONFIG_HEADERS section.
8194
 
# No need to generate them if there are no CONFIG_HEADERS.
8195
 
# This happens for instance with `./config.status Makefile'.
8196
 
if test -n "$CONFIG_HEADERS"; then
8197
 
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8198
 
BEGIN {
8199
 
_ACEOF
8200
 
 
8201
 
# Transform confdefs.h into an awk script `defines.awk', embedded as
8202
 
# here-document in config.status, that substitutes the proper values into
8203
 
# config.h.in to produce config.h.
8204
 
 
8205
 
# Create a delimiter string that does not exist in confdefs.h, to ease
8206
 
# handling of long lines.
8207
 
ac_delim='%!_!# '
8208
 
for ac_last_try in false false :; do
8209
 
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8210
 
  if test -z "$ac_tt"; then
8211
 
    break
8212
 
  elif $ac_last_try; then
8213
 
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8214
 
  else
8215
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8216
 
  fi
8217
 
done
8218
 
 
8219
 
# For the awk script, D is an array of macro values keyed by name,
8220
 
# likewise P contains macro parameters if any.  Preserve backslash
8221
 
# newline sequences.
8222
 
 
8223
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8224
 
sed -n '
8225
 
s/.\{148\}/&'"$ac_delim"'/g
8226
 
t rset
8227
 
:rset
8228
 
s/^[     ]*#[    ]*define[       ][      ]*/ /
8229
 
t def
8230
 
d
8231
 
:def
8232
 
s/\\$//
8233
 
t bsnl
8234
 
s/["\\]/\\&/g
8235
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8236
 
D["\1"]=" \3"/p
8237
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
8238
 
d
8239
 
:bsnl
8240
 
s/["\\]/\\&/g
8241
 
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
8242
 
D["\1"]=" \3\\\\\\n"\\/p
8243
 
t cont
8244
 
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8245
 
t cont
8246
 
d
8247
 
:cont
8248
 
n
8249
 
s/.\{148\}/&'"$ac_delim"'/g
8250
 
t clear
8251
 
:clear
8252
 
s/\\$//
8253
 
t bsnlc
8254
 
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8255
 
d
8256
 
:bsnlc
8257
 
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8258
 
b cont
8259
 
' <confdefs.h | sed '
8260
 
s/'"$ac_delim"'/"\\\
8261
 
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8262
 
 
8263
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8264
 
  for (key in D) D_is_set[key] = 1
8265
 
  FS = ""
8266
 
}
8267
 
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8268
 
  line = \$ 0
8269
 
  split(line, arg, " ")
8270
 
  if (arg[1] == "#") {
8271
 
    defundef = arg[2]
8272
 
    mac1 = arg[3]
8273
 
  } else {
8274
 
    defundef = substr(arg[1], 2)
8275
 
    mac1 = arg[2]
8276
 
  }
8277
 
  split(mac1, mac2, "(") #)
8278
 
  macro = mac2[1]
8279
 
  prefix = substr(line, 1, index(line, defundef) - 1)
8280
 
  if (D_is_set[macro]) {
8281
 
    # Preserve the white space surrounding the "#".
8282
 
    print prefix "define", macro P[macro] D[macro]
8283
 
    next
8284
 
  } else {
8285
 
    # Replace #undef with comments.  This is necessary, for example,
8286
 
    # in the case of _POSIX_SOURCE, which is predefined and required
8287
 
    # on some systems where configure will not decide to define it.
8288
 
    if (defundef == "undef") {
8289
 
      print "/*", prefix defundef, macro, "*/"
8290
 
      next
8291
 
    }
8292
 
  }
8293
 
}
8294
 
{ print }
8295
 
_ACAWK
8296
 
_ACEOF
8297
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8298
 
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8299
 
fi # test -n "$CONFIG_HEADERS"
8300
 
 
8301
 
 
8302
 
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
8303
 
shift
8304
 
for ac_tag
8305
 
do
8306
 
  case $ac_tag in
8307
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
8308
 
  esac
8309
 
  case $ac_mode$ac_tag in
8310
 
  :[FHL]*:*);;
8311
 
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8312
 
  :[FH]-) ac_tag=-:-;;
8313
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8314
 
  esac
8315
 
  ac_save_IFS=$IFS
8316
 
  IFS=:
8317
 
  set x $ac_tag
8318
 
  IFS=$ac_save_IFS
8319
 
  shift
8320
 
  ac_file=$1
8321
 
  shift
8322
 
 
8323
 
  case $ac_mode in
8324
 
  :L) ac_source=$1;;
8325
 
  :[FH])
8326
 
    ac_file_inputs=
8327
 
    for ac_f
8328
 
    do
8329
 
      case $ac_f in
8330
 
      -) ac_f="$ac_tmp/stdin";;
8331
 
      *) # Look for the file first in the build tree, then in the source tree
8332
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
8333
 
         # because $ac_f cannot contain `:'.
8334
 
         test -f "$ac_f" ||
8335
 
           case $ac_f in
8336
 
           [\\/$]*) false;;
8337
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8338
 
           esac ||
8339
 
           as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8340
 
      esac
8341
 
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8342
 
      as_fn_append ac_file_inputs " '$ac_f'"
8343
 
    done
8344
 
 
8345
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
8346
 
    # use $as_me), people would be surprised to read:
8347
 
    #    /* config.h.  Generated by config.status.  */
8348
 
    configure_input='Generated from '`
8349
 
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8350
 
        `' by configure.'
8351
 
    if test x"$ac_file" != x-; then
8352
 
      configure_input="$ac_file.  $configure_input"
8353
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8354
 
$as_echo "$as_me: creating $ac_file" >&6;}
8355
 
    fi
8356
 
    # Neutralize special characters interpreted by sed in replacement strings.
8357
 
    case $configure_input in #(
8358
 
    *\&* | *\|* | *\\* )
8359
 
       ac_sed_conf_input=`$as_echo "$configure_input" |
8360
 
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8361
 
    *) ac_sed_conf_input=$configure_input;;
8362
 
    esac
8363
 
 
8364
 
    case $ac_tag in
8365
 
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8366
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8367
 
    esac
8368
 
    ;;
8369
 
  esac
8370
 
 
8371
 
  ac_dir=`$as_dirname -- "$ac_file" ||
8372
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8373
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
8374
 
         X"$ac_file" : 'X\(//\)$' \| \
8375
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8376
 
$as_echo X"$ac_file" |
8377
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8378
 
            s//\1/
8379
 
            q
8380
 
          }
8381
 
          /^X\(\/\/\)[^/].*/{
8382
 
            s//\1/
8383
 
            q
8384
 
          }
8385
 
          /^X\(\/\/\)$/{
8386
 
            s//\1/
8387
 
            q
8388
 
          }
8389
 
          /^X\(\/\).*/{
8390
 
            s//\1/
8391
 
            q
8392
 
          }
8393
 
          s/.*/./; q'`
8394
 
  as_dir="$ac_dir"; as_fn_mkdir_p
8395
 
  ac_builddir=.
8396
 
 
8397
 
case "$ac_dir" in
8398
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8399
 
*)
8400
 
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8401
 
  # A ".." for each directory in $ac_dir_suffix.
8402
 
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8403
 
  case $ac_top_builddir_sub in
8404
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8405
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8406
 
  esac ;;
8407
 
esac
8408
 
ac_abs_top_builddir=$ac_pwd
8409
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8410
 
# for backward compatibility:
8411
 
ac_top_builddir=$ac_top_build_prefix
8412
 
 
8413
 
case $srcdir in
8414
 
  .)  # We are building in place.
8415
 
    ac_srcdir=.
8416
 
    ac_top_srcdir=$ac_top_builddir_sub
8417
 
    ac_abs_top_srcdir=$ac_pwd ;;
8418
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
8419
 
    ac_srcdir=$srcdir$ac_dir_suffix;
8420
 
    ac_top_srcdir=$srcdir
8421
 
    ac_abs_top_srcdir=$srcdir ;;
8422
 
  *) # Relative name.
8423
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8424
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
8425
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8426
 
esac
8427
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8428
 
 
8429
 
 
8430
 
  case $ac_mode in
8431
 
  :F)
8432
 
  #
8433
 
  # CONFIG_FILE
8434
 
  #
8435
 
 
8436
 
_ACEOF
8437
 
 
8438
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8439
 
# If the template does not know about datarootdir, expand it.
8440
 
# FIXME: This hack should be removed a few years after 2.60.
8441
 
ac_datarootdir_hack=; ac_datarootdir_seen=
8442
 
ac_sed_dataroot='
8443
 
/datarootdir/ {
8444
 
  p
8445
 
  q
8446
 
}
8447
 
/@datadir@/p
8448
 
/@docdir@/p
8449
 
/@infodir@/p
8450
 
/@localedir@/p
8451
 
/@mandir@/p'
8452
 
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8453
 
*datarootdir*) ac_datarootdir_seen=yes;;
8454
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8455
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8456
 
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8457
 
_ACEOF
8458
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8459
 
  ac_datarootdir_hack='
8460
 
  s&@datadir@&$datadir&g
8461
 
  s&@docdir@&$docdir&g
8462
 
  s&@infodir@&$infodir&g
8463
 
  s&@localedir@&$localedir&g
8464
 
  s&@mandir@&$mandir&g
8465
 
  s&\\\${datarootdir}&$datarootdir&g' ;;
8466
 
esac
8467
 
_ACEOF
8468
 
 
8469
 
# Neutralize VPATH when `$srcdir' = `.'.
8470
 
# Shell code in configure.ac might set extrasub.
8471
 
# FIXME: do we really want to maintain this feature?
8472
 
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8473
 
ac_sed_extra="$ac_vpsub
8474
 
$extrasub
8475
 
_ACEOF
8476
 
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8477
 
:t
8478
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8479
 
s|@configure_input@|$ac_sed_conf_input|;t t
8480
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
8481
 
s&@top_build_prefix@&$ac_top_build_prefix&;t t
8482
 
s&@srcdir@&$ac_srcdir&;t t
8483
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
8484
 
s&@top_srcdir@&$ac_top_srcdir&;t t
8485
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8486
 
s&@builddir@&$ac_builddir&;t t
8487
 
s&@abs_builddir@&$ac_abs_builddir&;t t
8488
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8489
 
$ac_datarootdir_hack
8490
 
"
8491
 
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8492
 
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8493
 
 
8494
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8495
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8496
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
8497
 
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8498
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8499
 
which seems to be undefined.  Please make sure it is defined" >&5
8500
 
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8501
 
which seems to be undefined.  Please make sure it is defined" >&2;}
8502
 
 
8503
 
  rm -f "$ac_tmp/stdin"
8504
 
  case $ac_file in
8505
 
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8506
 
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8507
 
  esac \
8508
 
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8509
 
 ;;
8510
 
  :H)
8511
 
  #
8512
 
  # CONFIG_HEADER
8513
 
  #
8514
 
  if test x"$ac_file" != x-; then
8515
 
    {
8516
 
      $as_echo "/* $configure_input  */" \
8517
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8518
 
    } >"$ac_tmp/config.h" \
8519
 
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8520
 
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8521
 
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8522
 
$as_echo "$as_me: $ac_file is unchanged" >&6;}
8523
 
    else
8524
 
      rm -f "$ac_file"
8525
 
      mv "$ac_tmp/config.h" "$ac_file" \
8526
 
        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8527
 
    fi
8528
 
  else
8529
 
    $as_echo "/* $configure_input  */" \
8530
 
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8531
 
      || as_fn_error $? "could not create -" "$LINENO" 5
8532
 
  fi
8533
 
 ;;
8534
 
 
8535
 
 
8536
 
  esac
8537
 
 
8538
 
done # for ac_tag
8539
 
 
8540
 
 
8541
 
as_fn_exit 0
8542
 
_ACEOF
8543
 
ac_clean_files=$ac_clean_files_save
8544
 
 
8545
 
test $ac_write_fail = 0 ||
8546
 
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8547
 
 
8548
 
 
8549
 
# configure is writing to config.log, and then calls config.status.
8550
 
# config.status does its own redirection, appending to config.log.
8551
 
# Unfortunately, on DOS this fails, as config.log is still kept open
8552
 
# by configure, so config.status won't be able to write to it; its
8553
 
# output is simply discarded.  So we exec the FD to /dev/null,
8554
 
# effectively closing config.log, so it can be properly (re)opened and
8555
 
# appended to by config.status.  When coming back to configure, we
8556
 
# need to make the FD available again.
8557
 
if test "$no_create" != yes; then
8558
 
  ac_cs_success=:
8559
 
  ac_config_status_args=
8560
 
  test "$silent" = yes &&
8561
 
    ac_config_status_args="$ac_config_status_args --quiet"
8562
 
  exec 5>/dev/null
8563
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8564
 
  exec 5>>config.log
8565
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8566
 
  # would make configure fail if this is the last instruction.
8567
 
  $ac_cs_success || as_fn_exit 1
8568
 
fi
8569
 
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8570
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8571
 
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8572
 
fi
8573
 
 
8574
 
 
8575
 
 
8576
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
8577
 
 
8578
 
Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
8579
 
 
8580
 
Further customizations can be put in:
8581
 
  - 'user.mak'
8582
 
  - 'pjlib/include/pj/config_site.h'
8583
 
 
8584
 
The next step now is to run 'make dep' and 'make'.
8585
 
" >&5
8586
 
$as_echo "
8587
 
 
8588
 
Configurations for current target have been written to 'build.mak', and 'os-auto.mak' in various build directories, and pjlib/include/pj/compat/os_auto.h.
8589
 
 
8590
 
Further customizations can be put in:
8591
 
  - 'user.mak'
8592
 
  - 'pjlib/include/pj/config_site.h'
8593
 
 
8594
 
The next step now is to run 'make dep' and 'make'.
8595
 
" >&6; }