~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Elliot Murphy
  • Date: 2008-07-15 20:57:53 UTC
  • mto: This revision was merged to the branch mainline in revision 171.
  • Revision ID: elliot@elliotmurphy.com-20080715205753-kakkixzy829k53pw
new port number from IANA

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    awk -F. '{printf "%d%0.2d%0.2d", $1, $2, $3}'`
36
36
 
37
37
# The port should be constant for a LONG time
38
 
MYSQL_TCP_PORT_DEFAULT=3306
 
38
MYSQL_TCP_PORT_DEFAULT=4427
39
39
 
40
40
dnl Include m4 
41
41
sinclude(config/ac-macros/alloca.m4)
534
534
 
535
535
AC_ARG_WITH([tcp-port],
536
536
    [AS_HELP_STRING([--with-tcp-port=port-number],
537
 
            [Which port to use for Drizzle services @<:@default=3306@:>@])],
 
537
            [Which port to use for Drizzle services @<:@default=4427@:>@])],
538
538
    [ MYSQL_TCP_PORT=$withval ],
539
539
    [ MYSQL_TCP_PORT=$MYSQL_TCP_PORT_DEFAULT
540
540
      # if we actually defaulted (as opposed to the pathological case of
546
546
      # testing for MYSQL_TCP_PORT==MYSQL_TCP_PORT_DEFAULT would make a
547
547
      # a port of MYSQL_TCP_PORT_DEFAULT magic even if the builder did not
548
548
      # intend it to mean "use the default, in fact, look up a good default
549
 
      # from /etc/services if you can", but really, really meant 3306 when
550
 
      # they passed in 3306. When they pass in a specific value, let them
 
549
      # from /etc/services if you can", but really, really meant 4427 when
 
550
      # they passed in 4427. When they pass in a specific value, let them
551
551
      # have it; don't second guess user and think we know better, this will
552
552
      # just make people cross.  this makes the the logic work like this
553
553
      # (which is complicated enough):
555
555
      # - if a port was set during build, use that as a default.
556
556
      #
557
557
      # - otherwise, try to look up a port in /etc/services; if that fails,
558
 
      #   use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 3306)
 
558
      #   use MYSQL_TCP_PORT_DEFAULT (at the time of this writing 4427)
559
559
      #
560
560
      # - allow the MYSQL_TCP_PORT environment variable to override that.
561
561
      #